-
Notifications
You must be signed in to change notification settings - Fork 11
/
setup.py
81 lines (64 loc) · 1.96 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
76
77
78
79
80
81
"""
plydata
=======
plydata is a library that provides a grammar for data manipulation.
The grammar consists of verbs that can be applied to pandas
dataframes or database tables. It is based on the R package dplyr
"""
from setuptools import setup, find_packages
import versioneer
__author__ = 'Hassan Kibirige'
__email__ = 'has2k1@gmail.com'
__description__ = "Functions for manipulating Data in Python"
__license__ = 'BSD (3-clause)'
__url__ = 'https://github.com/has2k1/plydata'
__classifiers__ = [
'Intended Audience :: Science/Research',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python :: 3 :: Only',
'Topic :: Scientific/Engineering :: Information Analysis'
]
def check_dependencies():
"""
Check for system level dependencies
"""
pass
def get_required_packages():
"""
Return required packages
Plus any version tests and warnings
"""
install_requires = ['pandas >= 1.4.0']
return install_requires
def get_package_data():
"""
Return package data
For example:
{'': ['*.txt', '*.rst'],
'hello': ['*.msg']}
means:
- If any package contains *.txt or *.rst files,
include them
- And include any *.msg files found in
the 'hello' package, too:
"""
csv_data = ['data/*.csv']
package_data = {'plydata': csv_data}
return package_data
if __name__ == '__main__':
check_dependencies()
setup(name='plydata',
maintainer=__author__,
maintainer_email=__email__,
description=__description__,
long_description=__doc__,
license=__license__,
version=versioneer.get_version(),
cmdclass=versioneer.get_cmdclass(),
url=__url__,
python_requires='>=3.8',
install_requires=get_required_packages(),
packages=find_packages(),
package_data=get_package_data(),
classifiers=__classifiers__,
zip_safe=False)