Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions CONTRIBUTING.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ In order to add a feature to ``python-ndb``:
documentation (in ``docs/``).

- The feature must work fully on the following CPython versions: 2.7, 3.6
3.7, 3.8, and 3.9 on both UNIX and Windows.
3.7, 3.8, 3.9 and 3.10 on both UNIX and Windows.

- The feature must not add unnecessary dependencies (where
"unnecessary" is of course subjective, but new dependencies should
Expand Down Expand Up @@ -72,7 +72,7 @@ We use `nox <https://nox.readthedocs.io/en/latest/>`__ to instrument our tests.

- To test your changes, run unit tests with ``nox``::

$ nox -s unit-3.7
$ nox -s unit-3.10
$ nox -s unit-3.6
$ ...

Expand Down Expand Up @@ -278,12 +278,14 @@ We support:
- `Python 3.7`_
- `Python 3.8`_
- `Python 3.9`_
- `Python 3.10`_

.. _Python 2.7: https://docs.python.org/2.7/
.. _Python 3.6: https://docs.python.org/3.6/
.. _Python 3.7: https://docs.python.org/3.7/
.. _Python 3.8: https://docs.python.org/3.8/
.. _Python 3.9: https://docs.python.org/3.9/
.. _Python 3.10: https://docs.python.org/3.10/


Supported versions can be found in our ``noxfile.py`` `config`_.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ run on other Python platforms as well.
GA

### Officially Supported Python Versions
Python 2.7 & Python 3.6, 3.7, 3.8, 3.9
Python 2.7 & Python 3.6, 3.7, 3.8, 3.9, 3.10
7 changes: 3 additions & 4 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
LOCAL_DEPS = ("google-api-core", "google-cloud-core")
NOX_DIR = os.path.abspath(os.path.dirname(__file__))
DEFAULT_INTERPRETER = "3.8"
ALL_INTERPRETERS = ("2.7", "3.6", "3.7", "3.8", "3.9")
PY3_INTERPRETERS = ("3.6", "3.7", "3.8", "3.9")
ALL_INTERPRETERS = ("2.7", "3.6", "3.7", "3.8", "3.9", "3.10")
PY3_INTERPRETERS = ("3.6", "3.7", "3.8", "3.9", "3.10")
MAJOR_INTERPRETERS = ("2.7", "3.8")
CURRENT_DIRECTORY = pathlib.Path(__file__).parent.absolute()

Expand Down Expand Up @@ -59,6 +59,7 @@ def unit(session):
[
"--cov=google.cloud.ndb",
"--cov=unit",
"--cov-append",
"--cov-config",
get_path(".coveragerc"),
"--cov-report=term-missing",
Expand All @@ -76,8 +77,6 @@ def unit(session):
def cover(session):
# Install all dependencies.
session.install("coverage")
# THis variable is used to skip coverage by Python version
session.env["PY_VERSION"] = session.python[0]
# Run coverage report.
session.run("coverage", "report", "--fail-under=100", "--show-missing")
# Erase cached coverage data.
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ def main():
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.7",
"Operating System :: OS Independent",
Expand Down