setup.py 2.01 KB
Newer Older
1
#!/usr/bin/env python3
2 3 4

from pathlib import Path

5 6
from setuptools import setup

Christophe Benz's avatar
Christophe Benz committed
7
script_dir = Path(__file__).parent
8

9
# Gets the long description from the README.md file
Christophe Benz's avatar
Christophe Benz committed
10 11 12 13 14 15
readme_filepath = script_dir / 'README.md'
with readme_filepath.open('rt', encoding='utf-8') as fd:
    LONG_DESCRIPTION = fd.read()

with (script_dir / 'validata_ui' / 'VERSION').open('rt', encoding='utf-8') as fd:
    VERSION = fd.read()
16 17 18


setup(
19
    name='validata_ui',
20
    version=VERSION,
21 22 23 24 25 26

    description='Validata Web UI',
    long_description=LONG_DESCRIPTION,
    long_description_content_type="text/markdown",

    url='https://git.opendatafrance.net/validata/validata-ui',
27

28
    author='Validata team',
29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
    author_email='admin-validata@jailbreak.paris',

    license='AGPLv3',

    # See https://pypi.python.org/pypi?%3Aaction=list_classifiers
    classifiers=[
        # How mature is this project? Common values are
        #   3 - Alpha
        #   4 - Beta
        #   5 - Production/Stable
        'Development Status :: 5 - Production/Stable',

        # Indicate who your project is intended for
        'Intended Audience :: Developers',

        'Topic :: Software Development :: Libraries :: Python Modules',
        'Operating System :: OS Independent',

        # Pick your license as you wish (should match "license" above)
        'License :: OSI Approved :: GNU Affero General Public License v3',

        # Specify the Python versions you support here. In particular, ensure
        # that you indicate whether you support Python 2, Python 3 or both.
        'Programming Language :: Python :: 3',
    ],
54

55
    packages=['validata_ui'],
56 57
    zip_safe=True,

58
    install_requires=[
59 60
        'backports-datetime-fromisoformat',

Pierre Dittgen's avatar
Pierre Dittgen committed
61
        'cachecontrol',
62
        'commonmark',
Pierre Dittgen's avatar
Pierre Dittgen committed
63
        'ezodf',
64
        'flask',
65
        'lxml',
66
        'python-dotenv',
Pierre Dittgen's avatar
Pierre Dittgen committed
67 68
        'requests',
        'toml',
69

70
        'tabulator',
71

72
        'opendataschema >= 0.5.2, < 0.6',
Christophe Benz's avatar
Christophe Benz committed
73
        'validata_core >= 0.3.5, < 0.4',
74
    ],
Christophe Benz's avatar
Christophe Benz committed
75 76 77 78

    extras_require={
        'matomo': ["Flask-Matomo"],
    },
79
)