forked from azionaventures/aziona-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
58 lines (49 loc) · 1.72 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
#!/usr/bin/env python
import codecs
import os.path
import re
from setuptools import find_packages, setup
def find_version(*file_paths):
version_file = codecs.open(
os.path.join(os.path.abspath(os.path.dirname(__file__)), *file_paths), "r"
).read()
version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]", version_file, re.M)
if version_match:
return version_match.group(1)
raise RuntimeError("Unable to find version string.")
try:
from aziona.core.conf import const
name = const.getconst("NAME")
version = const.getconst("VERSION")
except Exception:
name = "aziona"
version = "dev"
with open("README.md", "r") as f:
long_description = f.read()
with open("requirements.txt", "r") as f:
requirements = f.read().split("\n")
setup(
name="aziona",
version=find_version("aziona", "__init__.py"),
author="Azionaventures",
description="aziona cli",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/azionaventures/aziona",
classifiers=[
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Operating System :: OS Independent",
],
packages=find_packages(exclude=["tests*"]),
install_requires=requirements,
include_package_data=True,
scripts=["bin/aziona", "bin/aziona-dependencies"],
setup_requires=["pytest-runner", "flake8"],
tests_require=["pytest"],
license="GPL-3.0 License",
python_requires=">= 3.6",
)