forked from PnX-SI/TaxHub
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
46 lines (42 loc) · 1.42 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
import setuptools
from pathlib import Path
root_dir = Path(__file__).absolute().parent
with (root_dir / "VERSION").open() as f:
version = f.read()
with (root_dir / "README.rst").open() as f:
long_description = f.read()
setuptools.setup(
name="taxhub",
description="Application web de gestion centralisée des taxons basée sur le référentiel TAXREF",
long_description=long_description,
long_description_content_type="text/x-rst",
maintainer="Parcs nationaux des Écrins et des Cévennes",
maintainer_email="geonature@ecrins-parcnational.fr",
url="https://github.com/PnX-SI/TaxHub",
version=version,
packages=setuptools.find_packages(where=".", include=["apptax*"]),
package_data={
"apptax": ["**/templates/**/*.html"],
"apptax.migrations": ["alembic.ini", "script.py.mako", "data/*.sql"],
"apptax.taxonomie.commands.migrate_taxref": ["data/*.sql", "data/*/*.sql"],
},
install_requires=(
list(open("requirements-common.in", "r")) + list(open("requirements-dependencies.in", "r"))
),
entry_points={
"alembic": [
"migrations = apptax.migrations:versions",
],
"flask.commands": [
"taxref = apptax.taxonomie.commands.taxref:taxref",
],
},
extras_require={
"tests": [
"pytest",
"pytest-flask",
"pytest-cov",
"schema",
],
},
)