diff --git a/.readthedocs.yaml b/.readthedocs.yaml index aeb5d4e33..97d272a26 100755 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -8,7 +8,7 @@ version: 2 build: os: ubuntu-22.04 tools: - python: "3.7" + python: "3.10" jobs: post_checkout: - git fetch --unshallow || true diff --git a/doc/en/conf.py b/doc/en/conf.py index 9a314a11d..866b414be 100644 --- a/doc/en/conf.py +++ b/doc/en/conf.py @@ -39,6 +39,11 @@ def generate_news(): def setup(app): - app.add_stylesheet("icon.css") - app.add_stylesheet("news.css") + try: + app.add_css_file("icon.css") + app.add_css_file("news.css") + except AttributeError: + app.add_stylesheet("icon.css") + app.add_stylesheet("news.css") + generate_news() diff --git a/doc/en/getting_started.rst b/doc/en/getting_started.rst index 3a9bcc957..b99131afc 100644 --- a/doc/en/getting_started.rst +++ b/doc/en/getting_started.rst @@ -9,7 +9,7 @@ in your local environment! Supported Python Versions ========================= -Testplan is tested to work with Python 3.7 and 3.8, 3.10 and 3.11 so we recommend choosing one of those. +Testplan is tested to work with Python 3.10 and 3.11 so we recommend choosing one of those. Python 3.7 and 3.8 support is deprecated and will be removed soon. .. _install_testplan: @@ -22,7 +22,7 @@ Install from archive: .. code-block:: bash - python3.7 -m pip install https://github.com/morganstanley/testplan/releases/download/latest/testplan-21.9.29-py3-none-any.whl + python3.10 -m pip install https://github.com/morganstanley/testplan/releases/download/24.9.2/testplan-24.9.2-py3-none-any.whl Run testplan @@ -76,8 +76,8 @@ Also find all our downloadable examples :ref:`here `. Working with the source ----------------------- - -You will need a working python 3.7+ interrpreter preferably a venv, and for the interactive ui you need node installed. + +You will need a working python 3.10+ interpreter preferably a venv, and for the interactive ui you need node installed. We are using `doit `_ as the taskrunner ``doit list`` can show all the commands. .. code-block:: text diff --git a/doc/en/index.rst b/doc/en/index.rst index 3b45d27c9..bc45d0c13 100644 --- a/doc/en/index.rst +++ b/doc/en/index.rst @@ -1,3 +1,8 @@ +.. attention:: + + Support for Python 3.7 and 3.8 is deprecated and will be removed soon. + Please upgrade to Python 3.10 or 3.11. + .. raw:: html
diff --git a/doc/en/unittests.rst b/doc/en/unittests.rst index 9614cce2b..8e521966a 100644 --- a/doc/en/unittests.rst +++ b/doc/en/unittests.rst @@ -42,7 +42,7 @@ Python - unittest ================= ``unittest`` is the unit-testing framework built into the Python standard library, -see https://docs.python.org/3.7/library/unittest.html for more information. +see https://docs.python.org/3/library/unittest.html for more information. ``unittest`` testcases may be integrated with Testplan via the :py:class:`~testplan.testing.pyunit.PyUnit` test runner. Example can be found :ref:`here `. diff --git a/doc/newsfragments/3055_deprecated.py37_38_deprecated.rst b/doc/newsfragments/3055_deprecated.py37_38_deprecated.rst new file mode 100644 index 000000000..54b068e9a --- /dev/null +++ b/doc/newsfragments/3055_deprecated.py37_38_deprecated.rst @@ -0,0 +1 @@ +Support for Python 3.7 and 3.8 is deprecated and will be removed soon. \ No newline at end of file diff --git a/examples/Multitest/Parallel/parallel_tasks.py b/examples/Multitest/Parallel/parallel_tasks.py index e67d30484..6a896c65d 100644 --- a/examples/Multitest/Parallel/parallel_tasks.py +++ b/examples/Multitest/Parallel/parallel_tasks.py @@ -35,7 +35,7 @@ def __init__(self): # # Note that on Python 3 you can use the Barrier class from the standard # library: - # https://docs.python.org/3.7/library/threading.html#barrier-objects . + # https://docs.python.org/3/library/threading.html#barrier-objects . # Here we use a backported Barrier provided by Testplan, which works # on both Python 2 and 3. self._barrier = thread_utils.Barrier(2) diff --git a/examples/PyUnit/test_plan.py b/examples/PyUnit/test_plan.py index 8aa47c9f7..844c32107 100755 --- a/examples/PyUnit/test_plan.py +++ b/examples/PyUnit/test_plan.py @@ -29,7 +29,7 @@ class TestAlpha(unittest.TestCase): """ Minimal PyUnit testcase with a single trivial test method. For more information about the unittest library, see the [documentation]( - http://docs.python.org/2/library/unittest.html). + http://docs.python.org/3/library/unittest.html). """ def test_example(self): @@ -42,7 +42,7 @@ class TestBeta(unittest.TestCase): """ Minimal PyUnit testcase with a single trivial test method. For more information about the unittest library, see the [documentation]( - http://docs.python.org/2/library/unittest.html). + http://docs.python.org/3/library/unittest.html). """ def test_fails(self): diff --git a/testplan/testing/filtering.py b/testplan/testing/filtering.py index 1592130e6..e76022690 100644 --- a/testplan/testing/filtering.py +++ b/testplan/testing/filtering.py @@ -268,7 +268,7 @@ class Pattern(Filter): """ Base class for name based, glob style filtering. - https://docs.python.org/3.4/library/fnmatch.html + https://docs.python.org/3/library/fnmatch.html Examples: diff --git a/tests/unit/testplan/testing/test_pyunit.py b/tests/unit/testplan/testing/test_pyunit.py index 222f21855..925d74716 100644 --- a/tests/unit/testplan/testing/test_pyunit.py +++ b/tests/unit/testplan/testing/test_pyunit.py @@ -23,7 +23,7 @@ class Passing(unittest.TestCase): """ Minimal PyUnit testcase with a single trivial test method. For more information about the unittest library, see the [documentation]( - http://docs.python.org/2/library/unittest.html). + http://docs.python.org/3/library/unittest.html). """ def test_asserts(self):