-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
90 lines (83 loc) · 2.29 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
import os
import sys
from setuptools import find_packages, setup
from version import get_version
def get_long_description():
with open(
os.path.join(os.path.dirname(os.path.abspath(__file__)), "README.md"),
encoding="utf8",
) as fp:
return fp.read()
# Only install black on Python 3.6 or higher
maybe_black = []
if sys.version_info > (3, 6):
maybe_black = ["black"]
setup(
name="digital-land",
version=get_version(),
description="Data pipeline tools to collect data and process it into a dataset",
long_description=get_long_description(),
long_description_content_type="text/markdown",
author="MHCLG Digital Land Team",
author_email="DigitalLand@communities.gov.uk",
license="MIT",
url="https://github.com/digital-land/digital-land-python",
packages=find_packages(exclude="tests"),
package_data={"digital-land": ["templates/*.html"]},
include_package_data=True,
install_requires=[
"datasette",
"canonicaljson",
"click",
"cchardet",
"esridump",
"pandas",
"pyproj",
"requests",
"validators",
"xlrd==1.2.0",
"openpyxl",
"numpy<2",
"Shapely==2.0.2",
"SPARQLWrapper",
"geojson",
"spatialite",
"pyyaml",
"dataclasses-json",
"pydantic",
"json-stream",
"duckdb",
"dask",
"pyarrow",
"pygit2",
],
entry_points={"console_scripts": ["digital-land=digital_land.cli:cli"]},
setup_requires=["pytest-runner"],
extras_require={
"test": [
"coverage",
"flake8",
"pytest",
"coveralls",
"twine",
"responses",
"XlsxWriter",
"wasabi",
"pytest-mock",
"pre-commit",
"sphinx",
"sphinx-autobuild",
"sphinx_rtd_theme",
]
+ maybe_black
},
tests_require=["openregister[test]", "responses"],
classifiers=[
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Topic :: Database",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
],
)