-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
54 lines (43 loc) · 1.53 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 re
from pathlib import Path
import setuptools
with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()
def get_version():
text = open(Path(__file__).parent / "cishouseholds" / "__init__.py").read()
match = re.compile(r"^__version__\s*\=\s*[\"\']([^\s\'\"]+)", re.M).search(text)
return match.group(1)
def read_requirements(file):
with open(file) as f:
return f.read().splitlines()
requires = read_requirements("requirements.txt")
dev_requires = [
"pre-commit==2.12.1",
"detect-secrets==1.0.3",
"pytest>=3.6,<4",
"bump2version==1.0.1",
"chispa==0.8.2",
"pytest-regressions==2.2.0",
"pandas>=1.0.0",
"sphinx==4.4.0",
"pydata-sphinx-theme==0.7.2",
] + requires
setuptools.setup(
name="cishouseholds",
version=get_version(),
author="CIS development team",
author_email="[email protected]",
description="Data engineering pipeline for the Office for National Statistics COVID-19 Infection Survey (CIS)",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/ONS-SST/cis_households",
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
packages=setuptools.find_packages(exclude="tests"),
python_requires="==3.6.8",
install_requires=requires,
extras_require={"dev": dev_requires, "ci": dev_requires + ["pyspark==2.4.1", "pytest-cov", "coverage"]},
)