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
Pierre Dittgen's avatar
Pierre Dittgen committed
10
11
readme_filepath = script_dir / "README.md"
with readme_filepath.open("rt", encoding="utf-8") as fd:
Christophe Benz's avatar
Christophe Benz committed
12
13
    LONG_DESCRIPTION = fd.read()

14
setup(
Pierre Dittgen's avatar
Pierre Dittgen committed
15
    name="validata_ui",
Pierre Dittgen's avatar
Release    
Pierre Dittgen committed
16
    version="0.5.0a1",
Pierre Dittgen's avatar
Pierre Dittgen committed
17
    description="Validata Web UI",
18
19
    long_description=LONG_DESCRIPTION,
    long_description_content_type="text/markdown",
Pierre Dittgen's avatar
Pierre Dittgen committed
20
21
22
23
    url="https://git.opendatafrance.net/validata/validata-ui",
    author="Validata team",
    author_email="admin-validata@jailbreak.paris",
    license="AGPLv3",
24
25
26
27
28
29
    # 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
Pierre Dittgen's avatar
Pierre Dittgen committed
30
        "Development Status :: 5 - Production/Stable",
31
        # Indicate who your project is intended for
Pierre Dittgen's avatar
Pierre Dittgen committed
32
33
34
        "Intended Audience :: Developers",
        "Topic :: Software Development :: Libraries :: Python Modules",
        "Operating System :: OS Independent",
35
        # Pick your license as you wish (should match "license" above)
Pierre Dittgen's avatar
Pierre Dittgen committed
36
        "License :: OSI Approved :: GNU Affero General Public License v3",
37
38
        # Specify the Python versions you support here. In particular, ensure
        # that you indicate whether you support Python 2, Python 3 or both.
Pierre Dittgen's avatar
Pierre Dittgen committed
39
        "Programming Language :: Python :: 3",
40
    ],
41
42
43
44
    install_requires=[
        "commonmark",
        "ezodf",
        "flask",
Pierre Dittgen's avatar
Pierre Dittgen committed
45
        "frictionless >= 4.*",
46
47
48
49
50
51
52
53
        "lxml",
        "pydantic",
        "python-dotenv",
        "pyyaml",
        "requests",
        "requests_cache",
        "toml",
        "opendataschema",
Pierre Dittgen's avatar
Pierre Dittgen committed
54
        "validata_core >= 0.7.0a1",
55
56
57
58
59
60
    ],
    extras_require={
        "sentry": [
            "sentry-sdk[flask]",
        ]
    },
Pierre Dittgen's avatar
Pierre Dittgen committed
61
    packages=["validata_ui"],
62
    include_package_data=True,
63
    package_data={"validata_ui": ["templates/*", "static/*", "static/**/*"]},
64
    zip_safe=True,
65
)