-
Notifications
You must be signed in to change notification settings - Fork 50
/
Copy pathsetup.py
60 lines (52 loc) · 1.69 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
'''
Utility functions for "Data Mining for Business Analytics: Concepts, Techniques, and
Applications in Python"
(c) 2019-2023 Galit Shmueli, Peter C. Bruce, Peter Gedeck
'''
from pathlib import Path
import setuptools
def getVersion():
f = Path(__file__).parent / 'src' / 'dmba' / 'version.py'
lines = f.read_text().split('\n')
version = [s for s in lines if '__version__' in s][0]
version = version.split('=')[1].strip().strip("'")
return version
long_description = Path("README.md").read_text()
setuptools.setup(
name="dmba",
version=getVersion(),
author="Peter Gedeck",
author_email="[email protected]",
description=("Utility functions for 'Data Mining for Business Analytics: "
"Concepts, Techniques, and Applications in Python'"),
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/gedeck/dmba",
packages=setuptools.find_packages("src"),
package_dir={'': 'src'},
package_data={
"dmba": ["csvFiles/*.csv.gz", "csvFiles/*.zip"],
},
install_requires=[
'graphviz',
'matplotlib',
'numpy',
'pandas',
'scikit-learn',
'scipy',
],
extras_require={
"ipython": ["ipython"],
},
classifiers=[
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
test_suite='nose.collector',
tests_require=['nose'],
)