forked from cfpb/owning-a-home-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·75 lines (66 loc) · 1.81 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.5.0,<4.9",
"Django>=1.11,<3.2",
"django-cors-headers",
"dj-database-url>=0.4.2,<1",
"django-localflavor>=1.1,<3.1",
"djangorestframework>=3.9.1,<4.0",
"requests>=2.18,<3",
]
setup_requires = [
"cfgov-setup==1.2",
"setuptools-git-version==1.0.3",
]
testing_extras = [
"coverage>=5.0,<6",
"mock==2.0.0",
"model_mommy>=1.6.0,<1.7",
]
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},
)