-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
45 lines (40 loc) · 1.48 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
import re
from setuptools import setup, find_packages
NAME = 'river_route'
DESCRIPTION = 'Perform river routing computations on large river networks'
URL = 'https://github.com/rileyhales/river-route'
AUTHOR = 'Riley Hales PhD'
REQUIRES_PYTHON = '>=3.12.0'
with open(f'./{NAME}/__metadata__.py') as f:
version_pattern = r'__version__ = [\'"](\d+\.\d+\.\d+)[\'"]'
VERSION = re.search(version_pattern, f.read()).group(1)
print(f'Version: {VERSION}')
with open('./requirements.txt') as f:
INSTALL_REQUIRES = f.read().splitlines()
setup(
name=NAME,
version=VERSION,
description=DESCRIPTION,
long_description_content_type='text/markdown',
author=AUTHOR,
python_requires=REQUIRES_PYTHON,
url=URL,
packages=find_packages(exclude=["tests", "*.tests", "*.tests.*", "tests.*"]),
install_requires=INSTALL_REQUIRES,
include_package_data=False,
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Science/Research',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.12',
'Topic :: Scientific/Engineering',
'Topic :: Scientific/Engineering :: Atmospheric Science',
'Topic :: Scientific/Engineering :: GIS',
'Topic :: Scientific/Engineering :: Hydrology',
'Topic :: Scientific/Engineering :: Mathematics',
],
entry_points={
'console_scripts': ['rr=river_route._cli:main', ]
},
)