Skip to content

Commit 716c769

Browse files
1 parent 217c597 commit 716c769

33 files changed

Lines changed: 23 additions & 3290 deletions

File tree

β€Žpackages/google-cloud-batch/CONTRIBUTING.rstβ€Ž

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -143,12 +143,12 @@ Running System Tests
143143
$ nox -s system
144144

145145
# Run a single system test
146-
$ nox -s system-3.8 -- -k <name of test>
146+
$ nox -s system- -- -k <name of test>
147147

148148

149149
.. note::
150150

151-
System tests are only configured to run under Python 3.8.
151+
System tests are only configured to run under Python.
152152
For expediency, we do not run them in older versions of Python 3.
153153

154154
This alone will not run the tests. You'll need to change some local
@@ -239,18 +239,6 @@ Supported versions can be found in our ``noxfile.py`` `config`_.
239239
.. _config: https://github.com/googleapis/python-batch/blob/main/noxfile.py
240240

241241

242-
We also explicitly decided to support Python 3 beginning with version 3.7.
243-
Reasons for this include:
244-
245-
- Encouraging use of newest versions of Python 3
246-
- Taking the lead of `prominent`_ open-source `projects`_
247-
- `Unicode literal support`_ which allows for a cleaner codebase that
248-
works in both Python 2 and Python 3
249-
250-
.. _prominent: https://docs.djangoproject.com/en/1.9/faq/install/#what-python-version-can-i-use-with-django
251-
.. _projects: http://flask.pocoo.org/docs/0.10/python3/
252-
.. _Unicode literal support: https://www.python.org/dev/peps/pep-0414/
253-
254242
**********
255243
Versioning
256244
**********

β€Žpackages/google-cloud-batch/README.rstβ€Ž

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
Python Client for Cloud Batch API
2-
=================================
1+
Python Client for Cloud Batch
2+
=============================
33

44
|preview| |pypi| |versions|
55

6-
`Cloud Batch API`_:
6+
`Cloud Batch`_:
77

88
- `Client Library Documentation`_
99
- `Product Documentation`_
@@ -14,7 +14,7 @@ Python Client for Cloud Batch API
1414
:target: https://pypi.org/project/google-cloud-batch/
1515
.. |versions| image:: https://img.shields.io/pypi/pyversions/google-cloud-batch.svg
1616
:target: https://pypi.org/project/google-cloud-batch/
17-
.. _Cloud Batch API: https://cloud.google.com/batch/docs
17+
.. _Cloud Batch: https://cloud.google.com/batch/docs
1818
.. _Client Library Documentation: https://cloud.google.com/python/docs/reference/batch/latest
1919
.. _Product Documentation: https://cloud.google.com/batch/docs
2020

@@ -25,12 +25,12 @@ In order to use this library, you first need to go through the following steps:
2525

2626
1. `Select or create a Cloud Platform project.`_
2727
2. `Enable billing for your project.`_
28-
3. `Enable the Cloud Batch API.`_
28+
3. `Enable the Cloud Batch.`_
2929
4. `Setup Authentication.`_
3030

3131
.. _Select or create a Cloud Platform project.: https://console.cloud.google.com/project
3232
.. _Enable billing for your project.: https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project
33-
.. _Enable the Cloud Batch API.: https://cloud.google.com/batch/docs
33+
.. _Enable the Cloud Batch.: https://cloud.google.com/batch/docs
3434
.. _Setup Authentication.: https://googleapis.dev/python/google-api-core/latest/auth.html
3535

3636
Installation
@@ -96,12 +96,12 @@ Windows
9696
Next Steps
9797
~~~~~~~~~~
9898

99-
- Read the `Client Library Documentation`_ for Cloud Batch API
99+
- Read the `Client Library Documentation`_ for Cloud Batch
100100
to see other available methods on the client.
101-
- Read the `Cloud Batch API Product documentation`_ to learn
101+
- Read the `Cloud Batch Product documentation`_ to learn
102102
more about the product and see How-to Guides.
103103
- View this `README`_ to see the full list of Cloud
104104
APIs that we cover.
105105

106-
.. _Cloud Batch API Product documentation: https://cloud.google.com/batch/docs
106+
.. _Cloud Batch Product documentation: https://cloud.google.com/batch/docs
107107
.. _README: https://github.com/googleapis/google-cloud-python/blob/main/README.rst
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../CHANGELOG.md

β€Žpackages/google-cloud-batch/docs/index.rstβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@ For a list of all ``google-cloud-batch`` releases:
3131
.. toctree::
3232
:maxdepth: 2
3333

34-
changelog
34+
CHANGELOG
File renamed without changes.

β€Žpackages/google-cloud-batch/noxfile.pyβ€Ž

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
ISORT_VERSION = "isort==5.10.1"
3131
LINT_PATHS = ["docs", "google", "tests", "noxfile.py", "setup.py"]
3232

33-
DEFAULT_PYTHON_VERSION = "3.8"
33+
DEFAULT_PYTHON_VERSION = "3.9"
3434

3535
UNIT_TEST_PYTHON_VERSIONS = ["3.7", "3.8", "3.9", "3.10", "3.11"]
3636
UNIT_TEST_STANDARD_DEPENDENCIES = [
@@ -46,7 +46,7 @@
4646
UNIT_TEST_EXTRAS = []
4747
UNIT_TEST_EXTRAS_BY_PYTHON = {}
4848

49-
SYSTEM_TEST_PYTHON_VERSIONS = ["3.8"]
49+
SYSTEM_TEST_PYTHON_VERSIONS = []
5050
SYSTEM_TEST_STANDARD_DEPENDENCIES = [
5151
"mock",
5252
"pytest",
@@ -273,7 +273,7 @@ def cover(session):
273273
session.run("coverage", "erase")
274274

275275

276-
@nox.session(python="3.9")
276+
@nox.session(python=DEFAULT_PYTHON_VERSION)
277277
def docs(session):
278278
"""Build the docs for this library."""
279279

@@ -299,7 +299,7 @@ def docs(session):
299299
)
300300

301301

302-
@nox.session(python="3.9")
302+
@nox.session(python=DEFAULT_PYTHON_VERSION)
303303
def docfx(session):
304304
"""Build the docfx yaml files for this library."""
305305

@@ -336,7 +336,7 @@ def docfx(session):
336336
)
337337

338338

339-
@nox.session(python=SYSTEM_TEST_PYTHON_VERSIONS)
339+
@nox.session(python="3.11")
340340
def prerelease_deps(session):
341341
"""Run all tests with prerelease versions of dependencies installed."""
342342

@@ -345,7 +345,9 @@ def prerelease_deps(session):
345345
unit_deps_all = UNIT_TEST_STANDARD_DEPENDENCIES + UNIT_TEST_EXTERNAL_DEPENDENCIES
346346
session.install(*unit_deps_all)
347347
system_deps_all = (
348-
SYSTEM_TEST_STANDARD_DEPENDENCIES + SYSTEM_TEST_EXTERNAL_DEPENDENCIES
348+
SYSTEM_TEST_STANDARD_DEPENDENCIES
349+
+ SYSTEM_TEST_EXTERNAL_DEPENDENCIES
350+
+ SYSTEM_TEST_EXTRAS
349351
)
350352
session.install(*system_deps_all)
351353

@@ -379,7 +381,6 @@ def prerelease_deps(session):
379381
"grpcio!=1.52.0rc1",
380382
"grpcio-status",
381383
"google-api-core",
382-
"google-auth",
383384
"proto-plus",
384385
"google-cloud-testutils",
385386
# dependencies of google-cloud-testutils"
@@ -392,6 +393,7 @@ def prerelease_deps(session):
392393
# Remaining dependencies
393394
other_deps = [
394395
"requests",
396+
"google-auth",
395397
]
396398
session.install(*other_deps)
397399

β€Žpackages/google-cloud-batch/samples/generated_samples/batch_v1_generated_batch_service_create_job_async.pyβ€Ž

Lines changed: 0 additions & 52 deletions
This file was deleted.

β€Žpackages/google-cloud-batch/samples/generated_samples/batch_v1_generated_batch_service_create_job_sync.pyβ€Ž

Lines changed: 0 additions & 52 deletions
This file was deleted.

β€Žpackages/google-cloud-batch/samples/generated_samples/batch_v1_generated_batch_service_delete_job_async.pyβ€Ž

Lines changed: 0 additions & 55 deletions
This file was deleted.

β€Žpackages/google-cloud-batch/samples/generated_samples/batch_v1_generated_batch_service_delete_job_sync.pyβ€Ž

Lines changed: 0 additions & 55 deletions
This file was deleted.

0 commit comments

Comments
Β (0)