| Total Complexity | 0 |
| Total Lines | 33 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | #!/usr/bin/env python |
||
| 2 | """ |
||
| 3 | Fake uWSGI |
||
| 4 | ============= |
||
| 5 | A Python module that attempts to fake out the uwsgi module exposed to uWSGI |
||
| 6 | application. |
||
| 7 | |||
| 8 | When testing applications outside uWSGI, for example Flask, this module can provide |
||
| 9 | some functionality of the uwsgi module. |
||
| 10 | |||
| 11 | See README.md for more information. |
||
| 12 | """ |
||
| 13 | import re |
||
| 14 | |||
| 15 | from setuptools import setup |
||
| 16 | |||
| 17 | with open("src/fake_uwsgi/__init__.py", encoding="utf8") as fp: |
||
| 18 | version = re.search(r'__version__ = "(.*?)"', fp.read()).group(1) |
||
| 19 | |||
| 20 | extra_requires = { |
||
| 21 | "deploy": ["twine"], |
||
| 22 | "dev": ["pre-commit"], |
||
| 23 | "lint": ["black", "flake8", "pylint", "yamllint"], |
||
| 24 | "test": ["coverage", "pytest", "pytest-cov", "pytest-xdist", "safety"], |
||
| 25 | } |
||
| 26 | |||
| 27 | setup( |
||
| 28 | version=version, |
||
| 29 | install_requires=[""], |
||
| 30 | extras_require=extra_requires, |
||
| 31 | zip_safe=False, |
||
| 32 | platforms="any", |
||
| 33 | ) |
||
| 34 |