Update versions

This commit is contained in:
Roman Mogylatov 2021-09-30 20:24:53 -04:00
parent f82a6b5445
commit 08ea99759d
14 changed files with 100 additions and 100 deletions

View File

@ -261,7 +261,7 @@ You should see:
Content-Length: 844 Content-Length: 844
Content-Type: application/json; charset=utf-8 Content-Type: application/json; charset=utf-8
Date: Wed, 29 Jul 2020 21:01:50 GMT Date: Wed, 29 Jul 2020 21:01:50 GMT
Server: Python/3.8 aiohttp/3.6.2 Server: Python/3.9 aiohttp/3.6.2
{ {
"gifs": [], "gifs": [],
@ -605,7 +605,7 @@ You should see:
Content-Length: 492 Content-Length: 492
Content-Type: application/json; charset=utf-8 Content-Type: application/json; charset=utf-8
Date: Fri, 09 Oct 2020 01:35:48 GMT Date: Fri, 09 Oct 2020 01:35:48 GMT
Server: Python/3.8 aiohttp/3.6.2 Server: Python/3.9 aiohttp/3.6.2
{ {
"gifs": [ "gifs": [
@ -810,13 +810,13 @@ You should see:
.. code-block:: .. code-block::
platform darwin -- Python 3.8.3, pytest-5.4.3, py-1.9.0, pluggy-0.13.1 platform darwin -- Python 3.9, pytest-5.4.3, py-1.9.0, pluggy-0.13.1
plugins: cov-2.10.0, aiohttp-0.3.0, asyncio-0.14.0 plugins: cov-2.10.0, aiohttp-0.3.0, asyncio-0.14.0
collected 3 items collected 3 items
giphynavigator/tests.py ... [100%] giphynavigator/tests.py ... [100%]
---------- coverage: platform darwin, python 3.8.3-final-0 ----------- ---------- coverage: platform darwin, python 3.9 -----------
Name Stmts Miss Cover Name Stmts Miss Cover
--------------------------------------------------- ---------------------------------------------------
giphynavigator/__init__.py 0 0 100% giphynavigator/__init__.py 0 0 100%

View File

@ -129,7 +129,7 @@ Put next lines into the ``requirements.txt`` file:
pytest-cov pytest-cov
Second, we need to create the ``Dockerfile``. It will describe the daemon's build process and Second, we need to create the ``Dockerfile``. It will describe the daemon's build process and
specify how to run it. We will use ``python:3.8-buster`` as a base image. specify how to run it. We will use ``python:3.9-buster`` as a base image.
Put next lines into the ``Dockerfile`` file: Put next lines into the ``Dockerfile`` file:
@ -980,14 +980,14 @@ You should see:
.. code-block:: bash .. code-block:: bash
platform linux -- Python 3.8.3, pytest-6.0.1, py-1.9.0, pluggy-0.13.1 platform linux -- Python 3.9, pytest-6.0.1, py-1.9.0, pluggy-0.13.1
rootdir: /code rootdir: /code
plugins: asyncio-0.14.0, cov-2.10.0 plugins: asyncio-0.14.0, cov-2.10.0
collected 2 items collected 2 items
monitoringdaemon/tests.py .. [100%] monitoringdaemon/tests.py .. [100%]
----------- coverage: platform linux, python 3.8.3-final-0 ----------- ----------- coverage: platform linux, python 3.9 -----------
Name Stmts Miss Cover Name Stmts Miss Cover
---------------------------------------------------- ----------------------------------------------------
monitoringdaemon/__init__.py 0 0 100% monitoringdaemon/__init__.py 0 0 100%

View File

@ -1010,13 +1010,13 @@ You should see:
.. code-block:: .. code-block::
platform darwin -- Python 3.8.3, pytest-5.4.3, py-1.9.0, pluggy-0.13.1 platform darwin -- Python 3.9, pytest-5.4.3, py-1.9.0, pluggy-0.13.1
plugins: cov-2.10.0 plugins: cov-2.10.0
collected 2 items collected 2 items
movies/tests.py .. [100%] movies/tests.py .. [100%]
---------- coverage: platform darwin, python 3.8.5-final-0 ----------- ---------- coverage: platform darwin, python 3.9 -----------
Name Stmts Miss Cover Name Stmts Miss Cover
------------------------------------------ ------------------------------------------
movies/__init__.py 0 0 100% movies/__init__.py 0 0 100%

View File

@ -960,13 +960,13 @@ You should see:
.. code-block:: bash .. code-block:: bash
platform darwin -- Python 3.8.3, pytest-5.4.3, py-1.9.0, pluggy-0.13.1 platform darwin -- Python 3.9, pytest-5.4.3, py-1.9.0, pluggy-0.13.1
plugins: flask-1.0.0, cov-2.10.0 plugins: flask-1.0.0, cov-2.10.0
collected 2 items collected 2 items
githubnavigator/tests.py .. [100%] githubnavigator/tests.py .. [100%]
---------- coverage: platform darwin, python 3.8.3-final-0 ----------- ---------- coverage: platform darwin, python 3.9 -----------
Name Stmts Miss Cover Name Stmts Miss Cover
---------------------------------------------------- ----------------------------------------------------
githubnavigator/__init__.py 0 0 100% githubnavigator/__init__.py 0 0 100%

View File

@ -98,13 +98,13 @@ The output should be something like:
.. code-block:: .. code-block::
platform darwin -- Python 3.8.3, pytest-5.4.3, py-1.9.0, pluggy-0.13.1 platform darwin -- Python 3.9, pytest-5.4.3, py-1.9.0, pluggy-0.13.1
plugins: cov-2.10.0, aiohttp-0.3.0, asyncio-0.14.0 plugins: cov-2.10.0, aiohttp-0.3.0, asyncio-0.14.0
collected 3 items collected 3 items
giphynavigator/tests.py ... [100%] giphynavigator/tests.py ... [100%]
---------- coverage: platform darwin, python 3.8.3-final-0 ----------- ---------- coverage: platform darwin, python 3.9 -----------
Name Stmts Miss Cover Name Stmts Miss Cover
--------------------------------------------------- ---------------------------------------------------
giphynavigator/__init__.py 0 0 100% giphynavigator/__init__.py 0 0 100%

View File

@ -65,14 +65,14 @@ The output should be something like:
.. code-block:: .. code-block::
platform linux -- Python 3.8.3, pytest-6.0.1, py-1.9.0, pluggy-0.13.1 platform linux -- Python 3.9, pytest-6.0.1, py-1.9.0, pluggy-0.13.1
rootdir: /code rootdir: /code
plugins: asyncio-0.14.0, cov-2.10.0 plugins: asyncio-0.14.0, cov-2.10.0
collected 2 items collected 2 items
monitoringdaemon/tests.py .. [100%] monitoringdaemon/tests.py .. [100%]
----------- coverage: platform linux, python 3.8.3-final-0 ----------- ----------- coverage: platform linux, python 3.9 -----------
Name Stmts Miss Cover Name Stmts Miss Cover
---------------------------------------------------- ----------------------------------------------------
monitoringdaemon/__init__.py 0 0 100% monitoringdaemon/__init__.py 0 0 100%

View File

@ -1,4 +1,4 @@
FROM python:3.8-buster FROM python:3.9-buster
ENV PYTHONUNBUFFERED=1 ENV PYTHONUNBUFFERED=1

View File

@ -69,14 +69,14 @@ The output should be something like:
.. code-block:: .. code-block::
platform linux -- Python 3.8.6, pytest-6.2.1, py-1.10.0, pluggy-0.13.1 platform linux -- Python 3.9, pytest-6.2.1, py-1.10.0, pluggy-0.13.1
rootdir: /code rootdir: /code
plugins: cov-2.10.1, asyncio-0.14.0 plugins: cov-2.10.1, asyncio-0.14.0
collected 1 item collected 1 item
fastapiredis/tests.py . [100%] fastapiredis/tests.py . [100%]
----------- coverage: platform linux, python 3.8.6-final-0 ----------- ----------- coverage: platform linux, python 3.9 -----------
Name Stmts Miss Cover Name Stmts Miss Cover
------------------------------------------------- -------------------------------------------------
fastapiredis/__init__.py 0 0 100% fastapiredis/__init__.py 0 0 100%

View File

@ -101,13 +101,13 @@ The output should be something like:
.. code-block:: .. code-block::
platform darwin -- Python 3.8.3, pytest-5.4.3, py-1.9.0, pluggy-0.13.1 platform darwin -- Python 3.9, pytest-5.4.3, py-1.9.0, pluggy-0.13.1
plugins: cov-2.10.0, asyncio-0.14.0 plugins: cov-2.10.0, asyncio-0.14.0
collected 3 items collected 3 items
giphynavigator/tests.py ... [100%] giphynavigator/tests.py ... [100%]
---------- coverage: platform darwin, python 3.8.3-final-0 ----------- ---------- coverage: platform darwin, python 3.9 -----------
Name Stmts Miss Cover Name Stmts Miss Cover
--------------------------------------------------- ---------------------------------------------------
giphynavigator/__init__.py 0 0 100% giphynavigator/__init__.py 0 0 100%

View File

@ -81,13 +81,13 @@ The output should be something like:
.. code-block:: .. code-block::
platform darwin -- Python 3.8.3, pytest-5.4.3, py-1.9.0, pluggy-0.13.1 platform darwin -- Python 3.9, pytest-5.4.3, py-1.9.0, pluggy-0.13.1
plugins: flask-1.0.0, cov-2.10.0 plugins: flask-1.0.0, cov-2.10.0
collected 2 items collected 2 items
githubnavigator/tests.py .. [100%] githubnavigator/tests.py .. [100%]
---------- coverage: platform darwin, python 3.8.3-final-0 ----------- ---------- coverage: platform darwin, python 3.9 -----------
Name Stmts Miss Cover Name Stmts Miss Cover
---------------------------------------------------- ----------------------------------------------------
githubnavigator/__init__.py 0 0 100% githubnavigator/__init__.py 0 0 100%

View File

@ -81,13 +81,13 @@ The output should be something like:
.. code-block:: .. code-block::
platform darwin -- Python 3.8.3, pytest-5.4.3, py-1.9.0, pluggy-0.13.1 platform darwin -- Python 3.9, pytest-5.4.3, py-1.9.0, pluggy-0.13.1
plugins: flask-1.0.0, cov-2.10.0 plugins: flask-1.0.0, cov-2.10.0
collected 2 items collected 2 items
githubnavigator/tests.py .. [100%] githubnavigator/tests.py .. [100%]
---------- coverage: platform darwin, python 3.8.3-final-0 ----------- ---------- coverage: platform darwin, python 3.9 -----------
Name Stmts Miss Cover Name Stmts Miss Cover
---------------------------------------------------- ----------------------------------------------------
githubnavigator/__init__.py 0 0 100% githubnavigator/__init__.py 0 0 100%

View File

@ -58,13 +58,13 @@ The output should be something like:
.. code-block:: .. code-block::
platform darwin -- Python 3.8.3, pytest-5.4.3, py-1.9.0, pluggy-0.13.1 platform darwin -- Python 3.9, pytest-5.4.3, py-1.9.0, pluggy-0.13.1
plugins: cov-2.10.0 plugins: cov-2.10.0
collected 2 items collected 2 items
movies/tests.py .. [100%] movies/tests.py .. [100%]
---------- coverage: platform darwin, python 3.8.5-final-0 ----------- ---------- coverage: platform darwin, python 3.9 -----------
Name Stmts Miss Cover Name Stmts Miss Cover
------------------------------------------ ------------------------------------------
movies/__init__.py 0 0 100% movies/__init__.py 0 0 100%

View File

@ -98,13 +98,13 @@ The output should be something like:
.. code-block:: .. code-block::
platform darwin -- Python 3.9.5, pytest-6.2.2, py-1.10.0, pluggy-0.13.1 platform darwin -- Python 3.9, pytest-6.2.2, py-1.10.0, pluggy-0.13.1
plugins: cov-2.12.1, sanic-1.8.1, anyio-3.3.2 plugins: cov-2.12.1, sanic-1.8.1, anyio-3.3.2
collected 3 items collected 3 items
giphynavigator/tests.py ... [100%] giphynavigator/tests.py ... [100%]
---------- coverage: platform darwin, python 3.8.3-final-0 ----------- ---------- coverage: platform darwin, python 3.9 -----------
Name Stmts Miss Cover Name Stmts Miss Cover
--------------------------------------------------- ---------------------------------------------------
giphynavigator/__init__.py 0 0 100% giphynavigator/__init__.py 0 0 100%

144
setup.py
View File

@ -8,111 +8,111 @@ from setuptools import setup, Extension
# Defining setup variables: # Defining setup variables:
defined_macros = dict() defined_macros = dict()
defined_macros['CYTHON_CLINE_IN_TRACEBACK'] = 0 defined_macros["CYTHON_CLINE_IN_TRACEBACK"] = 0
# Getting description: # Getting description:
with open('README.rst') as readme_file: with open("README.rst") as readme_file:
description = readme_file.read() description = readme_file.read()
# Getting requirements: # Getting requirements:
with open('requirements.txt') as requirements_file: with open("requirements.txt") as requirements_file:
requirements = requirements_file.readlines() requirements = requirements_file.readlines()
# Getting version: # Getting version:
with open('src/dependency_injector/__init__.py') as init_file: with open("src/dependency_injector/__init__.py") as init_file:
version = re.search('__version__ = \'(.*?)\'', init_file.read()).group(1) version = re.search("__version__ = \"(.*?)\"", init_file.read()).group(1)
# Adding debug options: # Adding debug options:
if os.environ.get('DEPENDENCY_INJECTOR_DEBUG_MODE') == '1': if os.environ.get("DEPENDENCY_INJECTOR_DEBUG_MODE") == "1":
defined_macros['CYTHON_TRACE'] = 1 defined_macros["CYTHON_TRACE"] = 1
defined_macros['CYTHON_TRACE_NOGIL'] = 1 defined_macros["CYTHON_TRACE_NOGIL"] = 1
defined_macros['CYTHON_CLINE_IN_TRACEBACK'] = 1 defined_macros["CYTHON_CLINE_IN_TRACEBACK"] = 1
setup(name='dependency-injector', setup(name="dependency-injector",
version=version, version=version,
description='Dependency injection framework for Python', description="Dependency injection framework for Python",
long_description=description, long_description=description,
author='Roman Mogylatov', author="Roman Mogylatov",
author_email='rmogilatov@gmail.com', author_email="rmogilatov@gmail.com",
maintainer='Roman Mogylatov', maintainer="Roman Mogylatov",
maintainer_email='rmogilatov@gmail.com', maintainer_email="rmogilatov@gmail.com",
url='https://github.com/ets-labs/python-dependency-injector', url="https://github.com/ets-labs/python-dependency-injector",
download_url='https://pypi.python.org/pypi/dependency_injector', download_url="https://pypi.python.org/pypi/dependency_injector",
packages=[ packages=[
'dependency_injector', "dependency_injector",
'dependency_injector.ext', "dependency_injector.ext",
], ],
package_dir={ package_dir={
'': 'src', "": "src",
}, },
package_data={ package_data={
'dependency_injector': ['*.pxd', '*.pyi', 'py.typed'], "dependency_injector": ["*.pxd", "*.pyi", "py.typed"],
}, },
ext_modules=[ ext_modules=[
Extension('dependency_injector.containers', Extension("dependency_injector.containers",
['src/dependency_injector/containers.c'], ["src/dependency_injector/containers.c"],
define_macros=list(defined_macros.items()), define_macros=list(defined_macros.items()),
extra_compile_args=['-O2']), extra_compile_args=["-O2"]),
Extension('dependency_injector.providers', Extension("dependency_injector.providers",
['src/dependency_injector/providers.c'], ["src/dependency_injector/providers.c"],
define_macros=list(defined_macros.items()), define_macros=list(defined_macros.items()),
extra_compile_args=['-O2']), extra_compile_args=["-O2"]),
], ],
install_requires=requirements, install_requires=requirements,
extras_require={ extras_require={
'yaml': [ "yaml": [
'pyyaml', "pyyaml",
], ],
'pydantic': [ "pydantic": [
'pydantic', "pydantic",
], ],
'flask': [ "flask": [
'flask', "flask",
], ],
'aiohttp': [ "aiohttp": [
'aiohttp', "aiohttp",
], ],
}, },
zip_safe=True, zip_safe=True,
license='BSD New', license="BSD New",
platforms=['any'], platforms=["any"],
keywords=[ keywords=[
'Dependency injection', "Dependency injection",
'DI', "DI",
'Inversion of Control', "Inversion of Control",
'IoC', "IoC",
'Factory', "Factory",
'Singleton', "Singleton",
'Design patterns', "Design patterns",
'Flask', "Flask",
], ],
classifiers=[ classifiers=[
'Development Status :: 5 - Production/Stable', "Development Status :: 5 - Production/Stable",
'Intended Audience :: Developers', "Intended Audience :: Developers",
'License :: OSI Approved :: BSD License', "License :: OSI Approved :: BSD License",
'Operating System :: OS Independent', "Operating System :: OS Independent",
'Programming Language :: Python', "Programming Language :: Python",
'Programming Language :: Python :: 2', "Programming Language :: Python :: 2",
'Programming Language :: Python :: 2.7', "Programming Language :: Python :: 2.7",
'Programming Language :: Python :: 3', "Programming Language :: Python :: 3",
'Programming Language :: Python :: 3.4', "Programming Language :: Python :: 3.4",
'Programming Language :: Python :: 3.5', "Programming Language :: Python :: 3.5",
'Programming Language :: Python :: 3.6', "Programming Language :: Python :: 3.6",
'Programming Language :: Python :: 3.7', "Programming Language :: Python :: 3.7",
'Programming Language :: Python :: 3.8', "Programming Language :: Python :: 3.8",
'Programming Language :: Python :: 3.9', "Programming Language :: Python :: 3.9",
'Programming Language :: Python :: Implementation :: CPython', "Programming Language :: Python :: Implementation :: CPython",
'Programming Language :: Python :: Implementation :: PyPy', "Programming Language :: Python :: Implementation :: PyPy",
'Framework :: AsyncIO', "Framework :: AsyncIO",
'Framework :: Bottle', "Framework :: Bottle",
'Framework :: Django', "Framework :: Django",
'Framework :: Flask', "Framework :: Flask",
'Framework :: Pylons', "Framework :: Pylons",
'Framework :: Pyramid', "Framework :: Pyramid",
'Framework :: Pytest', "Framework :: Pytest",
'Framework :: TurboGears', "Framework :: TurboGears",
'Topic :: Software Development', "Topic :: Software Development",
'Topic :: Software Development :: Libraries', "Topic :: Software Development :: Libraries",
'Topic :: Software Development :: Libraries :: Python Modules', "Topic :: Software Development :: Libraries :: Python Modules",
]) ])