-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
37 lines (31 loc) · 1.05 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
from setuptools import setup, find_packages
import subprocess
import os
DIRECTORY = os.path.dirname(__file__)
REQUIREMENTS = open(os.path.join(DIRECTORY, "requirements.txt")).read().split()
VERSION = subprocess.run(
['git', 'describe', '--tags'],
stdout=subprocess.PIPE,).stdout.decode("utf-8").strip()
assert "." in VERSION
READ_ME = open(os.path.join(DIRECTORY, "README.rst")).read()
setup(
name="balance_service",
version=VERSION,
author="Calenzo",
author_email="[email protected]",
license="MIT License",
description=READ_ME,
long_description="Readme description",
long_description_content_type="text/x-rst",
install_requires=REQUIREMENTS,
package_dir={"": "src"},
packages=find_packages(where="src"),
url="https://pypi.org/project/balance-service",
classifiers=[
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Natural Language :: English",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
]
)