-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
executable file
·47 lines (36 loc) · 1.38 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
from os import path
from setuptools import find_packages as _find_packages
from setuptools import setup as _setup
from dataherb.version import __version__
# read the contents of your README file
__CWD__ = path.abspath(path.dirname(__file__))
with open(path.join(__CWD__, "README.md"), encoding="utf-8") as fp:
PACKAGE_LONG_DESCRIPTION = fp.read()
PACKAGE_NAME = "dataherb"
PACKAGE_VERSION = __version__
PACKAGE_DESCRIPTION = "Get clean datasets from DataHerb to boost your data science and data analysis projects"
PACKAGE_URL = "https://github.com/DataHerb/dataherb-python"
def _requirements():
return [r for r in open("requirements.txt")]
def setup():
_setup(
name=PACKAGE_NAME,
version=PACKAGE_VERSION,
description=PACKAGE_DESCRIPTION,
long_description=PACKAGE_LONG_DESCRIPTION,
long_description_content_type="text/markdown",
url=PACKAGE_URL,
author="Lei Ma",
author_email="[email protected]",
license="MIT",
packages=_find_packages(exclude=("tests",)),
install_requires=_requirements(),
include_package_data=True,
entry_points={"console_scripts": ["dataherb=dataherb.command:dataherb"]},
test_suite="nose.collector",
tests_require=["nose"],
zip_safe=False,
)
if __name__ == "__main__":
setup()
print("Packages: ", _find_packages(exclude=("tests",)))