-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
65 lines (58 loc) · 2.13 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
from os import path
from setuptools import find_packages
from setuptools import setup
import re
# read the contents of your README file
this_directory = path.abspath(path.dirname(__file__))
with open(path.join(this_directory, "README.md"), encoding="utf-8") as f:
long_description = f.read()
# read the version from _version.py file
version_file = "./hdsr_fewspy/_version.py"
version_content = open(version_file, "rt").read()
version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]", version_content, flags=re.M)
if version_match:
version = version_match.group(1)
else:
raise RuntimeError("Unable to find version string in %s." % (version_file,))
install_requires = [
"requests",
"geopandas",
"pandas",
"hdsr-pygithub",
]
tests_require = [
"pytest",
]
setup(
name="hdsr_fewspy",
packages=find_packages(include=["hdsr_fewspy", "hdsr_fewspy.*"]),
version=version,
license="MIT",
description="A python project to request data (locations, time-series, etc.) from a HDSR FEWS PiWebService",
long_description_content_type="text/markdown",
long_description=long_description,
author="Renier Kramer",
author_email="[email protected]",
maintainer="Roger de Crook",
maintainer_email="[email protected]",
url="https://github.com/hdsr-mid/hdsr_fewspy",
download_url=f"https://github.com/hdsr-mid/hdsr_fewspy/archive/v{version}.tar.gz",
keywords=["hdsr", "fews", "api", "fewspy", "wis"],
zip_safe=False,
install_requires=install_requires,
tests_require=tests_require,
python_requires=">=3.7",
extras_require={"test": tests_require},
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Topic :: Software Development :: Build Tools",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
],
)