forked from carl24k/fight-churn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
56 lines (53 loc) · 2.06 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
import setuptools
import pkg_resources
import pathlib
# https://stackoverflow.com/questions/49689880/proper-way-to-parse-requirements-file-after-pip-upgrade-to-pip-10-x-x
with pathlib.Path('requirements.txt').open() as requirements_txt:
install_requires = [
str(requirement)
for requirement
in pkg_resources.parse_requirements(requirements_txt)
]
with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()
setuptools.setup(
name="fightchurn",
version="1.0.5",
author="Carl Gold",
author_email="[email protected]",
description="Code from the book Fighting Churn With Data",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/carl24k/fight-churn",
project_urls={
"Bug Tracker": "https://github.com/carl24k/fight-churn/issues",
},
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
package_data={'fightchurn' : ['fightchurn/listings/conf/*.json',
'fightchurn/listings/*/*.sql',
'fightchurn/datagen/*/*.csv',
'fightchurn/datagen/*/*.sql']},
include_package_data=True,
packages=['fightchurn',
'fightchurn.listings',
'fightchurn.listings.conf',
'fightchurn.listings.chap3',
'fightchurn.listings.chap5',
'fightchurn.listings.chap6',
'fightchurn.listings.chap7',
'fightchurn.listings.chap8',
'fightchurn.listings.chap9',
'fightchurn.listings.chap10',
'fightchurn.datagen',
'fightchurn.datagen.conf',
'fightchurn.datagen.schema'],
scripts=['fightchurn/run_churn_listing.py',
'fightchurn/datagen/churndb.py',
'fightchurn/datagen/churnsim.py'],
python_requires=">=3.9",
install_requires= install_requires
)