diff --git a/MANIFEST.in b/MANIFEST.in index 0355770..92655ac 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,2 +1,3 @@ include LICENCE.txt -recursive-include test *.py +graft test +prune **/__pycache__ diff --git a/README.rst b/README.rst index 0970a68..b766b03 100644 --- a/README.rst +++ b/README.rst @@ -1,5 +1,3 @@ -.. image:: https://travis-ci.org/todofixthis/class-registry.svg?branch=master - :target: https://travis-ci.org/todofixthis/class-registry .. image:: https://readthedocs.org/projects/class-registry/badge/?version=latest :target: http://class-registry.readthedocs.io/ @@ -74,8 +72,10 @@ ClassRegistry is known to be compatible with the following Python versions: - 3.9 .. note:: - ClassRegistry's code is pretty simple, so it's likely to be compatible with - versions not listed here; there's just no test coverage to prove it 😇 + I'm only one person, so to keep from getting overwhelmed, I'm only committing + to supporting the 3 most recent versions of Python. ClassRegistry's code is + pretty simple, so it's likely to be compatible with versions not listed here; + there just won't be any test coverage to prove it 😇 Installation ------------ @@ -87,7 +87,8 @@ Install the latest stable version via pip:: .. important:: Make sure to install `phx-class-registry`, **not** `class-registry`. I created the latter at a previous job years ago, and after I left they never - touched that project again — so in the end I had to fork it 🤷 + touched that project again and stopped responding to my emails — so in the + end I had to fork it 🤷 Running Unit Tests ------------------ @@ -95,7 +96,11 @@ Install the package with the ``test-runner`` extra to set up the necessary dependencies, and then you can run the tests with the ``tox`` command:: pip install -e .[test-runner] - tox -p all + tox -p + +To run tests in the current virtualenv:: + + python -m unittest Documentation ------------- diff --git a/pyproject.toml b/pyproject.toml index 47f786c..076eccb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -2,7 +2,7 @@ [project] name = "phx-class-registry" -version = "4.0.4" +version = "4.0.5" description = "Factory+Registry pattern for Python classes" readme = "README.rst" requires-python = ">= 3" @@ -35,4 +35,5 @@ classifiers = [ [project.urls] Documentation = "https://class-registry.readthedocs.io/" Changelog = "https://github.com/todofixthis/class-registry/releases" +Issues = "https://github.com/todofixthis/class-registry/issues" Repository = "https://github.com/todofixthis/class-registry" diff --git a/test/auto_register_test.py b/test/test_auto_register.py similarity index 100% rename from test/auto_register_test.py rename to test/test_auto_register.py diff --git a/test/cache_test.py b/test/test_cache.py similarity index 100% rename from test/cache_test.py rename to test/test_cache.py diff --git a/test/entry_points_test.py b/test/test_entry_points.py similarity index 100% rename from test/entry_points_test.py rename to test/test_entry_points.py diff --git a/test/patcher_test.py b/test/test_patcher.py similarity index 100% rename from test/patcher_test.py rename to test/test_patcher.py diff --git a/test/registry_test.py b/test/test_registry.py similarity index 100% rename from test/registry_test.py rename to test/test_registry.py diff --git a/tox.ini b/tox.ini index 428abf2..aefb8bb 100644 --- a/tox.ini +++ b/tox.ini @@ -1,2 +1,5 @@ [tox] envlist = py3{11,10,9} + +[testenv] +commands = python -m unittest