-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathsetup.py
54 lines (47 loc) · 1.69 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
import os
from setuptools import setup, find_packages
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
# Parse the version
with open("bcdata/__init__.py", "r") as f:
for line in f:
if line.find("__version__") >= 0:
version = line.split("=")[1].strip()
version = version.strip('"')
version = version.strip("'")
break
# Get the long description from the relevant file
with open("README.md", encoding="utf-8") as f:
long_description = f.read()
setup(
name="bcdata",
version=version,
description="Python tools for quick access to DataBC geo-data available via WFS",
long_description=long_description,
long_description_content_type="text/markdown",
classifiers=[
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Topic :: Utilities",
"Topic :: Scientific/Engineering :: GIS",
],
keywords='gis geospatial data BC DataBC download "Britsh Columbia"',
author="Simon Norris",
author_email="snorris@hillcrestgeo.ca",
url="https://github.com/smnorris/bcdata",
license="Apache",
packages=find_packages(exclude=["ez_setup", "examples", "tests"]),
include_package_data=True,
zip_safe=False,
install_requires=read("requirements.txt").splitlines(),
extras_require={"test": ["pytest>=3"]},
entry_points="""
[console_scripts]
bcdata=bcdata.cli:cli
""",
)