Skip to content
Snippets Groups Projects
setup.py 8.71 KiB
Newer Older
  • Learn to ignore specific revisions
  • Thomas Wöhlke's avatar
    Thomas Wöhlke committed
    import os
    
    thomaswoehlke's avatar
    thomaswoehlke committed
    from setuptools import find_packages, setup
    
    thomaswoehlke's avatar
    thomaswoehlke committed
    
    
    thomaswoehlke's avatar
    thomaswoehlke committed
    version = '0.0.20'
    
    thomaswoehlke's avatar
    thomaswoehlke committed
    
    
    thomaswoehlke's avatar
    thomaswoehlke committed
    needs_pytest = {'pytest', 'test', 'ptr'}.intersection(sys.argv)
    pytest_runner = ['pytest-runner'] if needs_pytest else []
    
    thomaswoehlke's avatar
    thomaswoehlke committed
    history = open("docs" + os.sep + "BACKLOG.md").read()
    
    
    keywords_list = [
        "virus",
        "pandemic",
        "covid19",
        "corona",
        "who",
        "rki",
        "ecdc",
        "deaths",
        "cases",
        "vaccination",
        "data",
        "statistic",
        "python",
        "flask",
        "celery",
        "sqlalchemy",
        "postgresql"
    ]
    
    
    thomaswoehlke's avatar
    thomaswoehlke committed
    requires_setup = [
    
    Thomas Wöhlke's avatar
    Thomas Wöhlke committed
        "appdirs==1.4.4",
    
    thomaswoehlke's avatar
    thomaswoehlke committed
    	"argparse==1.4.0",
    
    thomaswoehlke's avatar
    thomaswoehlke committed
    	"build==0.3.1.post1",
    
    thomaswoehlke's avatar
    thomaswoehlke committed
    	"certifi==2020.12.5",
    	"cfgv==3.2.0",
    	"chardet==3.0.4",
    	"click==7.1.2",
    	"distlib==0.3.1",
    	"filelock==3.0.12",
    	"identify==1.5.14",
    	"idna==2.10",
    	"nodeenv==1.5.0",
    
    thomaswoehlke's avatar
    thomaswoehlke committed
    	"packaging==20.0",
    
    thomaswoehlke's avatar
    thomaswoehlke committed
    	"pbr==3.1.1",
    
    thomaswoehlke's avatar
    thomaswoehlke committed
    	"pep517==0.10.0",
    
    thomaswoehlke's avatar
    thomaswoehlke committed
    	"pip-licenses==3.3.0",
    	"pip-tools==5.5.0",
    
    thomaswoehlke's avatar
    thomaswoehlke committed
    	"pipenv==2020.11.15",
    	"pre-commit==2.10.1",
    	"ptable==0.9.2",
    	"pyaml==20.4.0",
    	"pyparsing==2.4.6",
    	"python-dotenv==0.15.0",
    	"python-magic==0.4.22",
    	"pytoolbox==14.0.0",
    	"pytz==2021.1",
    	"pyyaml==5.4.1",
    	"requests==2.25.1",
    
    thomaswoehlke's avatar
    thomaswoehlke committed
    	"six==1.13.0",
    
    thomaswoehlke's avatar
    thomaswoehlke committed
    	"toml==0.10.2",
    	"urllib3==1.26.3",
    	"venv-run==0.1.0",
    	"virtualenv-clone==0.5.4",
    
    thomaswoehlke's avatar
    thomaswoehlke committed
    	"virtualenv==20.4.2",
    
    thomaswoehlke's avatar
    thomaswoehlke committed
    	"wheel==0.36.2",
    
    Thomas Wöhlke's avatar
    Thomas Wöhlke committed
        "alembic==1.5.5",
    
    thomaswoehlke's avatar
    thomaswoehlke committed
    	"appdirs==1.4.4",
    	"attrs==20.3.0",
    	"click==7.1.2",
    	"distlib==0.3.1",
    	"filelock==3.0.12",
    	"flask-db==0.3.0",
    	"flask-fixtures==0.3.8",
    
    thomaswoehlke's avatar
    thomaswoehlke committed
    	"flask-sqlalchemy==2.5.1",
    
    thomaswoehlke's avatar
    thomaswoehlke committed
    	"flask==1.1.2",
    	"itsdangerous==1.1.0",
    	"jaraco.context==4.0.0",
    	"jaraco.functools==3.2.1",
    	"jinja2==2.11.3",
    	"mako==1.1.4",
    	"markupsafe==1.1.1",
    	"mirakuru==2.3.0",
    	"more-itertools==8.7.0",
    
    thomaswoehlke's avatar
    thomaswoehlke committed
    	"packaging==20.0",
    
    thomaswoehlke's avatar
    thomaswoehlke committed
    	"pluggy==0.13.1",
    	"port-for==0.4",
    	"psutil==5.8.0",
    	"py==1.10.0",
    	"pyparsing==2.4.7",
    	"pytest-enabler==1.2.0",
    	"pytest-flask-sqlalchemy==1.0.2",
    
    thomaswoehlke's avatar
    thomaswoehlke committed
    	"pytest-flask==1.2.0",
    
    thomaswoehlke's avatar
    thomaswoehlke committed
    	"pytest-mock==3.5.1",
    	"pytest-postgresql==2.6.1",
    	"pytest-runner==5.3.0",
    	"pytest-venv==0.2.1",
    	"pytest==5.3.2",
    	"python-dateutil==2.8.1",
    	"python-editor==1.0.4",
    
    thomaswoehlke's avatar
    thomaswoehlke committed
    	"six==1.13.0",
    
    thomaswoehlke's avatar
    thomaswoehlke committed
    	"sqlalchemy-utils==0.36.8",
    
    thomaswoehlke's avatar
    thomaswoehlke committed
    	"sqlalchemy==1.4.5",
    
    thomaswoehlke's avatar
    thomaswoehlke committed
    	"toml==0.10.2",
    
    thomaswoehlke's avatar
    thomaswoehlke committed
    	"virtualenv==20.4.2",
    
    thomaswoehlke's avatar
    thomaswoehlke committed
    	"wcwidth==0.2.5",
    	"werkzeug==1.0.1",
    ]
    
    thomaswoehlke's avatar
    thomaswoehlke committed
    	"babel==2.9.0",
    	"certifi==2020.12.5",
    	"cffi==1.14.5",
    	"chardet==3.0.4",
    	"cryptography==3.4.7",
    	"docutils==0.16",
    	"github3.py==2.0.0",
    	"httplib2==0.19.0",
    	"idna==2.10",
    	"imagesize==1.2.0",
    	"jinja2==2.11.3",
    	"jwcrypto==0.8",
    	"markdown==3.3.3",
    	"markupsafe==1.1.1",
    
    thomaswoehlke's avatar
    thomaswoehlke committed
    	"packaging==20.0",
    
    thomaswoehlke's avatar
    thomaswoehlke committed
    	"pbr==5.5.1",
    	"plantuml-gentools==0.1.2",
    	"plantuml-markdown==3.4.2",
    	"plantuml-wrapper==0.1.0",
    	"plantuml==0.3.0",
    
    thomaswoehlke's avatar
    thomaswoehlke committed
    	"py2puml==0.4.0",
    
    thomaswoehlke's avatar
    thomaswoehlke committed
    	"pycparser==2.20",
    	"pygments==2.8.0",
    	"pyparsing==2.4.6",
    	"python-dateutil==2.8.1",
    	"pytz==2021.1",
    	"requests==2.25.1",
    
    thomaswoehlke's avatar
    thomaswoehlke committed
    	"six==1.13.0",
    
    thomaswoehlke's avatar
    thomaswoehlke committed
    	"snowballstemmer==2.1.0",
    	"speaklater==1.3",
    	"sphinx==3.4.3",
    	"sphinxcontrib-applehelp==1.0.2",
    	"sphinxcontrib-devhelp==1.0.2",
    	"sphinxcontrib-github==0.1.3",
    	"sphinxcontrib-gravizo==0.0.4",
    	"sphinxcontrib-htmlhelp==1.0.3",
    	"sphinxcontrib-jsmath==1.0.1",
    	"sphinxcontrib-log-cabinet==1.0.1",
    
    thomaswoehlke's avatar
    thomaswoehlke committed
    	"sphinxcontrib-plantuml==0.20.1",
    
    thomaswoehlke's avatar
    thomaswoehlke committed
    	"sphinxcontrib-qthelp==1.0.3",
    	"sphinxcontrib-serializinghtml==1.1.4",
    	"tokenize-rt==4.1.0",
    	"uritemplate==3.0.1",
    	"urllib3==1.26.3",
    
    ]
    
    dotenv_require = [
        "python-dotenv==0.15.0"
    ]
    
    requires_extras = {
        "docs": requires_docs,
        "tests": requires_test,
        "dotenv": dotenv_require,
        "all": []
    }
    
    
    thomaswoehlke's avatar
    thomaswoehlke committed
    requires_install = [
    
    thomaswoehlke's avatar
    thomaswoehlke committed
    	"alabaster==0.7.12",
    
    thomaswoehlke's avatar
    thomaswoehlke committed
    	"alembic==1.5.4",
    	"amqp==5.0.5",
    	"appdirs==1.4.4",
    	"argparse==1.4.0",
    	"attrs==19.3.0",
    	"babel==2.9.0",
    	"billiard==3.6.3.0",
    	"blinker==1.4",
    
    thomaswoehlke's avatar
    thomaswoehlke committed
    	"build==0.3.1.post1",
    
    thomaswoehlke's avatar
    thomaswoehlke committed
    	"celery[redis]==5.0.5",
    	"certifi==2020.12.5",
    
    thomaswoehlke's avatar
    thomaswoehlke committed
    	"cffi==1.14.5",
    
    thomaswoehlke's avatar
    thomaswoehlke committed
    	"cfgv==3.2.0",
    	"chardet==3.0.4",
    	"click-didyoumean==0.0.3",
    	"click-plugins==1.1.1",
    	"click-repl==0.1.6",
    	"click==7.1.2",
    
    thomaswoehlke's avatar
    thomaswoehlke committed
    	"cryptography==3.4.7",
    	"cx-oracle==8.1.0",
    
    thomaswoehlke's avatar
    thomaswoehlke committed
    	"cycler==0.10.0",
    	"distlib==0.3.1",
    	"docutils==0.16",
    	"dominate==2.6.0",
    	"filelock==3.0.12",
    	"flask-admin==1.5.7",
    	"flask-babel==2.0.0",
    	"flask-bs4==4.5.3.0",
    	"flask-cors==3.0.10",
    	"flask-db==0.3.0",
    	"flask-fixtures==0.3.8",
    	"flask-pluginkit==3.6.0",
    	"flask-redisboard==0.2.0",
    
    thomaswoehlke's avatar
    thomaswoehlke committed
    	"flask-sqlalchemy==2.5.1",
    
    thomaswoehlke's avatar
    thomaswoehlke committed
    	"flask-whooshalchemy3==0.2.0",
    	"flask-wtf==0.14.3",
    	"flask==1.1.2",
    
    thomaswoehlke's avatar
    thomaswoehlke committed
    	"github3.py==2.0.0",
    
    thomaswoehlke's avatar
    thomaswoehlke committed
    	"httplib2==0.19.0",
    	"identify==1.5.13",
    	"idna==2.10",
    	"imagesize==1.2.0",
    	"itsdangerous==1.1.0",
    	"jaraco.context==4.0.0",
    	"jaraco.functools==3.2.1",
    	"jinja2==2.11.3",
    	"joblib==1.0.1",
    	"jsonpatch==1.28",
    	"jsonpointer==2.0",
    
    thomaswoehlke's avatar
    thomaswoehlke committed
    	"jwcrypto==0.8",
    
    thomaswoehlke's avatar
    thomaswoehlke committed
    	"kiwisolver==1.3.1",
    	"kombu==5.0.2",
    	"llvmlite==0.35.0",
    	"mako==1.1.4",
    	"markdown==3.3.3",
    	"markupsafe==1.1.1",
    	"matplotlib==3.3.4",
    	"mirakuru==2.3.0",
    	"more-itertools==8.0.2",
    	"nodeenv==1.5.0",
    	"numba==0.52.0",
    	"numpy==1.20.1",
    	"pandas==1.2.2",
    	"pbr==3.1.1",
    
    thomaswoehlke's avatar
    thomaswoehlke committed
    	"pep517==0.10.0",
    
    thomaswoehlke's avatar
    thomaswoehlke committed
    	"pillow==8.2.0",
    
    thomaswoehlke's avatar
    thomaswoehlke committed
    	"pip-licenses==3.3.0",
    	"pip-tools==5.5.0",
    
    thomaswoehlke's avatar
    thomaswoehlke committed
    	"pipenv==2020.11.15",
    	"plantuml-gentools==0.1.2",
    	"plantuml-markdown==3.4.2",
    	"plantuml-wrapper==0.1.0",
    	"plantuml==0.3.0",
    	"pluggy==0.13.1",
    	"port-for==0.4",
    	"pre-commit==2.10.1",
    	"prettytable==2.0.0",
    	"prompt-toolkit==3.0.16",
    	"psutil==5.8.0",
    
    thomaswoehlke's avatar
    thomaswoehlke committed
    	"psycopg2-binary==2.8.6",
    
    thomaswoehlke's avatar
    thomaswoehlke committed
    	"ptable==0.9.2",
    
    thomaswoehlke's avatar
    thomaswoehlke committed
    	"py2puml==0.4.0",
    
    thomaswoehlke's avatar
    thomaswoehlke committed
    	"py==1.8.1",
    	"pyaml==20.4.0",
    
    thomaswoehlke's avatar
    thomaswoehlke committed
    	"pycparser==2.20",
    
    thomaswoehlke's avatar
    thomaswoehlke committed
    	"pyecharts-extras==0.0.5",
    	"pyecharts==1.9.0",
    	"pygments==2.8.0",
    	"pynndescent==0.5.2",
    	"pyparsing==2.4.6",
    	"pytest-enabler==1.2.0",
    	"pytest-flask-sqlalchemy==1.0.2",
    
    thomaswoehlke's avatar
    thomaswoehlke committed
    	"pytest-flask==1.2.0",
    
    thomaswoehlke's avatar
    thomaswoehlke committed
    	"pytest-mock==3.5.1",
    	"pytest-postgresql==2.6.1",
    	"pytest-runner==5.3.0",
    	"pytest-venv==0.2.1",
    	"pytest==5.3.2",
    	"python-dateutil==2.8.1",
    	"python-dotenv==0.15.0",
    	"python-editor==1.0.4",
    	"python-magic==0.4.22",
    	"pytoolbox==14.0.0",
    	"pytz==2020.5",
    	"pyyaml==5.4.1",
    	"pyzmq==22.0.3",
    	"redis==3.5.3",
    	"requests==2.25.1",
    	"scikit-learn==0.24.1",
    	"scipy==1.6.0",
    	"semver==2.13.0",
    	"simplejson==3.17.2",
    
    thomaswoehlke's avatar
    thomaswoehlke committed
    	"six==1.13.0",
    
    thomaswoehlke's avatar
    thomaswoehlke committed
    	"snowballstemmer==2.1.0",
    	"speaklater==1.3",
    	"sphinx==3.4.3",
    	"sphinxcontrib-applehelp==1.0.2",
    	"sphinxcontrib-devhelp==1.0.2",
    
    thomaswoehlke's avatar
    thomaswoehlke committed
    	"sphinxcontrib-github==0.1.3",
    
    thomaswoehlke's avatar
    thomaswoehlke committed
    	"sphinxcontrib-gravizo==0.0.4",
    	"sphinxcontrib-htmlhelp==1.0.3",
    	"sphinxcontrib-jsmath==1.0.1",
    	"sphinxcontrib-log-cabinet==1.0.1",
    
    thomaswoehlke's avatar
    thomaswoehlke committed
    	"sphinxcontrib-plantuml==0.20.1",
    
    thomaswoehlke's avatar
    thomaswoehlke committed
    	"sphinxcontrib-qthelp==1.0.3",
    	"sphinxcontrib-serializinghtml==1.1.4",
    	"sqlalchemy-utils==0.36.8",
    
    thomaswoehlke's avatar
    thomaswoehlke committed
    	"sqlalchemy==1.4.5",
    
    thomaswoehlke's avatar
    thomaswoehlke committed
    	"statisticaldiagrams==20.5",
    	"threadpoolctl==2.1.0",
    	"tokenize-rt==4.1.0",
    	"toml==0.10.2",
    	"torch==1.7.1",
    	"torchfile==0.1.0",
    	"tornado==6.1",
    	"typing-extensions==3.7.4.3",
    
    thomaswoehlke's avatar
    thomaswoehlke committed
    	"uritemplate==3.0.1",
    
    thomaswoehlke's avatar
    thomaswoehlke committed
    	"urllib3==1.26.3",
    	"venv-run==0.1.0",
    	"vine==5.0.0",
    	"virtualenv-clone==0.5.4",
    
    thomaswoehlke's avatar
    thomaswoehlke committed
    	"virtualenv==20.4.2",
    
    thomaswoehlke's avatar
    thomaswoehlke committed
    	"visdom==0.1.8.9",
    	"visitor==0.1.3",
    	"wcwidth==0.1.8",
    	"websocket-client==0.57.0",
    	"werkzeug==1.0.1",
    	"wget==3.2",
    	"wheel==0.36.2",
    	"whoosh==2.7.4",
    	"wtforms==2.3.3",
    ] + pytest_runner
    
    
    
    for reqs in requires_extras.values():
        requires_extras["all"].extend(reqs)
    
    keywords = ""
    for kw in keywords_list:
        keywords += " " + kw
    
    packages = find_packages()
    
    
    thomaswoehlke's avatar
    thomaswoehlke committed
    setup(
    
    thomaswoehlke's avatar
    thomaswoehlke committed
        name='flask-covid19',
    
    thomaswoehlke's avatar
    thomaswoehlke committed
        version=version,
    
    Thomas Wöhlke's avatar
    Thomas Wöhlke committed
        url='https://github.com/thomaswoehlke/covid19python.git',
    
    Thomas Wöhlke's avatar
    Thomas Wöhlke committed
        license='GNU General Public License v3 (GPLv3)',
        author='Thomas Woehlke',
        author_email='thomas.woehlke@gmail.com',
        description='Covid19 Data Aggregation - also a Project to learn Python Flask, SQLAlchemy, Celery et al.',
    
        classifiers=[
            "Environment :: Web Environment",
            "Intended Audience :: Developers",
            "License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
            "Operating System :: POSIX :: Linux",
    
    Thomas Wöhlke's avatar
    Thomas Wöhlke committed
            "Operating System :: Microsoft :: Windows :: Windows 10",
    
            "Programming Language :: Python",
            "Programming Language :: Python :: 3",
            "Programming Language :: Python :: 3.8",
            "Development Status :: 3 - Alpha",
            "Natural Language :: German",
            "Natural Language :: English",
            "Topic :: Internet :: WWW/HTTP :: Dynamic Content",
            "Topic :: Internet :: WWW/HTTP :: WSGI :: Application",
            "Topic :: Internet :: WWW/HTTP :: WSGI :: Middleware",
            "Topic :: Software Development :: Libraries :: Python Modules",
    
    Thomas Wöhlke's avatar
    Thomas Wöhlke committed
            "Topic :: Database :: Frontends",
            "Framework :: Flask",
    
    thomaswoehlke's avatar
    thomaswoehlke committed
        ],
    
    thomaswoehlke's avatar
    thomaswoehlke committed
        long_description=readme + history,
    
        long_description_content_type="text/markdown",
        keywords=keywords,
        packages=packages,
        zip_safe=False,
        include_package_data=True,
        entry_points={},
        extras_require=requires_extras,
    
    thomaswoehlke's avatar
    thomaswoehlke committed
        install_requires=requires_install,
        setup_requires=requires_setup,
    
    Thomas Wöhlke's avatar
    Thomas Wöhlke committed
        scripts=[
    
    Thomas Wöhlke's avatar
    Thomas Wöhlke committed
            'scripts'+os.sep+'script_setup_requirements.py',
            'scripts'+os.sep+'script_npm_install.py',
            'scripts'+os.sep+'script_get_python_requirements_from_txt.py',
    
    Thomas Wöhlke's avatar
    Thomas Wöhlke committed
        ],
    
    thomaswoehlke's avatar
    thomaswoehlke committed
    )