-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·42 lines (36 loc) · 1.05 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
from setuptools import setup, find_packages
import re
from pathlib import Path
PACKAGE_NAME = "covid19_forecaster"
HERE = Path(__file__).parent.absolute()
def find_version(*paths: str) -> str:
with HERE.joinpath(*paths).open("tr") as fp:
version_file = fp.read()
version_match = re.search(
r"^__version__ = ['\"]([^'\"]*)['\"]", version_file, re.M
)
if version_match:
return version_match.group(1)
raise RuntimeError("Unable to find version string.")
DESCRIPTION = (
"Forecasting the revenue impact of COVID-19"
" on the City of Philadelphia's finances"
)
setup(
name=PACKAGE_NAME,
version=find_version(PACKAGE_NAME, "__init__.py"),
author="Nick Hand",
maintainer="Nick Hand",
maintainer_email="[email protected]",
packages=find_packages(),
description=DESCRIPTION,
license="MIT",
python_requires=">=3.6",
install_requires=[
"pandas",
"fbprophet",
"phila-style",
"matplotlib",
"openpyxl",
],
)