-
Notifications
You must be signed in to change notification settings - Fork 34
/
Copy pathsetup.py
executable file
·75 lines (66 loc) · 1.82 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
import os
from setuptools import setup, find_packages
install_requires = [
"beautifulsoup4>=4.11.0,<5.0",
"Django>=3.2,<4.3",
"django-cors-headers",
"dj-database-url>=2.1,<3",
"django-localflavor>=4.0,<5.0",
"djangorestframework>=3.14,<4.0",
"pytz>=2024.2,<2025.0",
"requests>=2.31,<3",
]
setup_requires = [
"cfgov-setup==1.2",
"setuptools-git-version==1.0.3",
]
testing_extras = [
"coverage>=7.4,<8",
"model_bakery>=1.17.0,<2",
]
docs_extras = [
"mkdocs==0.17.5",
"mkDOCter==1.0.5",
]
def read_file(filename):
"""Read a file into a string"""
path = os.path.abspath(os.path.dirname(__file__))
filepath = os.path.join(path, filename)
try:
return open(filepath).read()
except IOError:
return ""
setup(
name="owning-a-home-api",
author="CFPB",
author_email="[email protected]",
version_format="{tag}.dev{commitcount}+{gitsha}",
maintainer="cfpb",
maintainer_email="[email protected]",
packages=find_packages(),
package_data={
"countylimits": [
"data/base_data/*.csv",
"data/test/*.csv",
"data_collection/*.txt",
"fixtures/*.json",
],
},
include_package_data=True,
description="Owning a home api",
classifiers=[
"Topic :: Internet :: WWW/HTTP",
"Intended Audience :: Developers",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Framework :: Django",
"Development Status :: 5 - Production/Stable",
"Operating System :: OS Independent",
],
long_description=read_file("README.md"),
zip_safe=False,
python_requires=">=3.6",
install_requires=install_requires,
setup_requires=setup_requires,
extras_require={"docs": docs_extras, "testing": testing_extras},
)