Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mark this library as obsolete #11

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
23 changes: 2 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
@@ -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.
13 changes: 12 additions & 1 deletion dependency_injection.py
Original file line number Diff line number Diff line change
@@ -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
------------
Expand Down Expand Up @@ -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,):
Expand Down
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]

Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
setup(name='dependency_injection',
author='Chad Whitacre et al.',
author_email='[email protected]',
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',
Expand Down