-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
51 lines (42 loc) · 1.51 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
import os
from setuptools import find_packages, setup
import uk_geo_utils
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
def _get_description():
try:
path = os.path.join(os.path.dirname(__file__), "README.md")
with open(path, encoding="utf-8") as f:
return f.read()
except IOError:
return ""
def get_version():
return uk_geo_utils.__version__
setup(
name="uk_geo_utils",
version=get_version(),
author="chris48s",
license="MIT",
url="https://github.com/DemocracyClub/uk-geo-utils",
packages=find_packages(),
include_package_data=True,
description="Django app for working with OS Addressbase, ONSUD and ONSPD",
long_description=_get_description(),
long_description_content_type="text/markdown",
install_requires=["Django>=4.2", "psycopg2-binary", "psutil"],
extras_require={"development": ["coveralls", "mkdocs", "ruff==0.6.2"]},
classifiers=[
"Framework :: Django",
"Framework :: Django :: 4.2",
"Framework :: Django :: 5.1",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.12",
],
project_urls={
"Documentation": "https://democracyclub.github.io/uk-geo-utils/",
"Source": "https://github.com/DemocracyClub/uk-geo-utils",
},
)