-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
63 lines (50 loc) · 1.64 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Note: To use the "upload" functionality of this file, you must:
# $ pip install twine
import io
import os
from setuptools import find_packages, setup
# Package meta-data.
NAME = "safitty"
DESCRIPTION = "Safitty. Wrapper on JSON/YAML configs for Python."
URL = "https://github.com/TezRomacH/safitty"
EMAIL = "[email protected]"
AUTHOR = "Roman Tezikov"
REQUIRES_PYTHON = ">=3.6.0"
PROJECT_ROOT = os.path.abspath(os.path.dirname(__file__))
def load_requirements():
with open(os.path.join(PROJECT_ROOT, "requirements.txt"), "r") as f:
return f.read()
def load_readme():
readme_path = os.path.join(PROJECT_ROOT, "README.md")
with io.open(readme_path, encoding="utf-8") as f:
return "\n" + f.read()
def load_version():
context = {}
with open(os.path.join(PROJECT_ROOT, NAME, "__version__.py")) as f:
exec(f.read(), context)
return context["__version__"]
setup(
name=NAME,
version=load_version(),
description=DESCRIPTION,
long_description=load_readme(),
long_description_content_type="text/markdown",
author=AUTHOR,
author_email=EMAIL,
python_requires=REQUIRES_PYTHON,
url=URL,
packages=find_packages(exclude=["tests", "examples"]),
install_requires=load_requirements(),
include_package_data=True,
license="MIT",
classifiers=[
"License :: OSI Approved :: MIT License",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Programming Language :: Python",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7"
]
)