From b3873af43bd0b75df51a0f87137b77dde0693436 Mon Sep 17 00:00:00 2001 From: Changaco Date: Wed, 26 May 2021 12:12:23 +0200 Subject: [PATCH] mark this library as obsolete --- README.md | 23 ++--------------------- dependency_injection.py | 13 ++++++++++++- docs/conf.py | 2 +- setup.py | 4 ++-- 4 files changed, 17 insertions(+), 25 deletions(-) diff --git a/README.md b/README.md index 452079f..1a9c1a0 100644 --- a/README.md +++ b/README.md @@ -1,22 +1,3 @@ -## Documentation +## This library is obsolete -Please refer to the [documentation web page](https://dependency-injection-py.readthedocs.org/). - -## Running the tests - -`tox` has to be installed in order to run the tests: - - pip install tox - -To run the tests: - - tox - -If you don't have all the needed Python interpreters installed on your system -but a Docker client available, here you go: - - ./run-tests-with-docker - -You can also pass arguments to `tox`, e.g.: - - ./run-tests-with-docker -e py26 +You should use the standard [`inspect.signature()` function](https://docs.python.org/3/library/inspect.html#introspecting-callables-with-the-signature-object) introduced in Python 3.3 instead. diff --git a/dependency_injection.py b/dependency_injection.py index 6b5da7b..a0f77c4 100644 --- a/dependency_injection.py +++ b/dependency_injection.py @@ -1,6 +1,10 @@ """This Python library defines a helper for building a dependency injection framework. +.. warning:: This library is obsolete, you should use the standard `inspect.signature() function`_ introduced in Python 3.3 instead. + +.. _inspect.signature() function: https://docs.python.org/3/library/inspect.html#introspecting-callables-with-the-signature-object + Installation ------------ @@ -49,9 +53,16 @@ import sys from collections import namedtuple +import warnings + + +warnings.warn(DeprecationWarning( + "This module is obsolete, you should use the standard `inspect.signature()` " + "function introduced in Python 3.3 instead." +)) -__version__ = '1.2.0-dev' +__version__ = '1.2.1' CLASSY_TYPES = (type(object),) if sys.version_info < (3,): diff --git a/docs/conf.py b/docs/conf.py index 25f165a..946db44 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -48,7 +48,7 @@ # built documents. # # The full version, including alpha/beta/rc tags. -release = '1.2.0-dev' +release = '1.2.1' # The short X.Y version. version = release.split('-', 1)[0] diff --git a/setup.py b/setup.py index c3ba4da..9b4da22 100644 --- a/setup.py +++ b/setup.py @@ -4,9 +4,9 @@ setup(name='dependency_injection', author='Chad Whitacre et al.', author_email='team@aspen.io', - description='This library defines a helper for building a dependency injection framework.', + description='This library is obsolete.', url='https://dependency-injection-py.readthedocs.org/', - version='1.2.0-dev', + version='1.2.1', py_modules=['dependency_injection'], classifiers=[ 'Development Status :: 5 - Production/Stable',