-
Notifications
You must be signed in to change notification settings - Fork 10
/
setup.py
executable file
·79 lines (70 loc) · 2.49 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
#!/usr/bin/env python
import re
from pathlib import Path
from setuptools import find_packages, setup
def read(*parts):
file_path = Path(__file__).parent.joinpath(*parts)
with open(file_path) as f:
return f.read()
def find_version(*parts):
version_file = read(*parts)
version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]", version_file, re.M)
if version_match:
return str(version_match.group(1))
raise RuntimeError("Unable to find version string.")
tests_require = [
"django-environ >= 0.4.5",
"psycopg2-binary >= 2.8.4",
"lxml >= 4.5.0",
"pytest >= 6.2.3",
"pytest-django >= 4.1.0",
"pytest-cov >= 2.11.1",
]
setup(
name="django-gisserver",
version=find_version("gisserver", "__init__.py"),
license="Mozilla Public License 2.0",
install_requires=[
"Django >= 3.2",
"defusedxml >= 0.6.0",
"lru_dict >= 1.1.7",
"orjson >= 2.4.0",
],
tests_require=tests_require,
extras_require={
"tests": tests_require,
},
requires=["Django (>=3.2)"],
description="Django speaking WFS 2.0 (exposing GeoDjango model fields)",
long_description=read("README.md"),
long_description_content_type="text/markdown",
author="Diederik van der Boor",
author_email="[email protected]",
url="https://github.com/amsterdam/django-gisserver",
packages=find_packages(exclude=("tests*", "example*"), include=("gisserver*")),
include_package_data=True,
zip_safe=False,
classifiers=[
"Development Status :: 4 - Beta",
"Environment :: Web Environment",
"Intended Audience :: Developers",
"License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Framework :: Django",
"Framework :: Django :: 3.2",
"Framework :: Django :: 4.0",
"Framework :: Django :: 4.2",
"Framework :: Django :: 5.0",
"Framework :: Django :: 5.1",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
"Topic :: Software Development :: Libraries :: Application Frameworks",
"Topic :: Software Development :: Libraries :: Python Modules",
],
python_requires=">=3.8",
)