-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
61 lines (55 loc) · 1.84 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
import setuptools
import re
# To use a consistent encoding
from codecs import open
import os
here = os.path.abspath(os.path.dirname(__file__))
verstr = 'unknown'
VERSIONFILE = "pybomwater/_version.py"
with open(VERSIONFILE, "r")as f:
verstrline = f.read().strip()
pattern = re.compile(r"__version__ = ['\"](.*)['\"]")
mo = pattern.search(verstrline)
if mo:
verstr = mo.group(1)
else:
raise RuntimeError("Unable to find version string in %s." % (VERSIONFILE,))
with open("README.md", "r") as fh:
long_description = fh.read()
CLASSIFIERS = ['Development Status :: 3 - Alpha',
'Intended Audience :: Science/Research',
'Topic :: Scientific/Engineering :: Hydrology',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python'
]
setuptools.setup(
name='pybomwater', # package names need not start with 'py'
version=verstr,
description='A tool for requesting data from BoM Water Data service.',
long_description=long_description,
long_description_content_type="text/markdown",
author='Andrew Freebairn',
author_email='andrew.freebairn@csiro.au',
# packages = setuptools.find_packages(),
packages=['pybomwater'],
install_requires=[
'requests',
'iso8601',
'wheel',
'pytz',
'json5',
'xmltodict',
'pandas',
'geojson',
'shapely',
],
classifiers=CLASSIFIERS,
url='https://github.com/csiro-hydroinformatics/pybomwater',
zip_safe=False)
# https://packaging.python.org/tutorials/packaging-projects/
#python setup.py sdist bdist_wheel
#while venv is active `poetry publish`
#twine upload --repository testpypi dist/*
# or for actual pypi use the following
#twine upload --repository pypi dist/*