-
-
Notifications
You must be signed in to change notification settings - Fork 103
/
setup.py
47 lines (40 loc) · 1.4 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
import pathlib
from setuptools import setup, find_packages
HERE = pathlib.Path(__file__).parent.resolve()
PACKAGE_NAME = "dython"
AUTHOR = "Shaked Zychlinski"
AUTHOR_EMAIL = "[email protected]"
URL = "http://shakedzy.xyz/dython"
DOWNLOAD_URL = "https://pypi.org/project/dython/"
LICENSE = "MIT"
VERSION = (HERE / "VERSION").read_text(encoding="utf8").strip()
DESCRIPTION = "A set of data tools in Python"
LONG_DESCRIPTION = (HERE / "README.md").read_text(encoding="utf8")
LONG_DESC_TYPE = "text/markdown"
requirements = (HERE / "requirements.txt").read_text(encoding="utf8")
INSTALL_REQUIRES = [s.strip() for s in requirements.split("\n")]
dev_requirements = (HERE / "dev_requirements.txt").read_text(encoding="utf8")
EXTRAS_REQUIRE = {"dev": [s.strip() for s in dev_requirements.split("\n")]}
min_minor = 9
max_minor = 12
CLASSIFIERS = [
f"Programming Language :: Python :: 3.{str(v)}" for v in range(min_minor, max_minor+1)
]
PYTHON_REQUIRES = f">=3.{min_minor}"
setup(
name=PACKAGE_NAME,
version=VERSION,
description=DESCRIPTION,
long_description=LONG_DESCRIPTION,
long_description_content_type=LONG_DESC_TYPE,
author=AUTHOR,
license=LICENSE,
author_email=AUTHOR_EMAIL,
url=URL,
download_url=DOWNLOAD_URL,
python_requires=PYTHON_REQUIRES,
install_requires=INSTALL_REQUIRES,
extras_require=EXTRAS_REQUIRE,
packages=find_packages(),
classifiers=CLASSIFIERS,
)