forked from alefnula/tea
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
43 lines (38 loc) · 1.36 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
import io
import importlib.util
from pathlib import Path
from setuptools import setup, find_packages
author = "Viktor Kerkez"
author_email = "[email protected]"
def get_version():
"""Import the version module and get the project version from it."""
version_py = Path(__file__).parent / "tea" / "version.py"
spec = importlib.util.spec_from_file_location("version", version_py)
version = importlib.util.module_from_spec(spec)
spec.loader.exec_module(version)
return version.__version__
setup(
name="tea",
version=get_version(),
author=author,
author_email=author_email,
maintainer=author,
maintainer_email=author_email,
description="Set of utility python modules.",
long_description=io.open("README.md", "r", encoding="utf-8").read(),
long_description_content_type="text/markdown",
url="https://github.com/alefnula/tea",
platforms=["Windows", "POSIX", "MacOSX"],
classifiers=[
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
],
license="Apache-2.0",
packages=find_packages(),
include_package_data=True,
install_requires=io.open("requirements.txt").read().splitlines(),
scripts=[],
)