-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
44 lines (37 loc) · 1.38 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
import subprocess
from setuptools import setup
def readme():
with open("README.md") as f:
return f.read()
def get_version(variable):
cmd = ["./scripts/get_version.sh", variable]
run = subprocess.run(cmd, stdout=subprocess.PIPE, stderr=subprocess.DEVNULL)
return run.stdout.decode("utf-8").strip("\n")
setup(
name="git-substatus",
author="Metin Yazici",
version=get_version("__version__"),
description="Display the 'git status' in sub-directories",
long_description=readme(),
long_description_content_type="text/markdown",
keywords="git sub status fetch directory folder",
url="https://github.com/strboul/git-substatus",
python_requires=f">={get_version('__py_version__')}",
license="MIT",
packages=["git_substatus"],
entry_points={
"console_scripts": ["git-substatus=git_substatus.__main__:main"],
},
# Trove classifiers: https://pypi.org/classifiers/
classifiers=[
"Development Status :: 4 - Beta",
"Environment :: Console",
"Intended Audience :: Developers",
"Intended Audience :: System Administrators",
"License :: OSI Approved :: MIT License",
"Operating System :: MacOS",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX :: Linux",
f"Programming Language :: Python :: {get_version('__py_version__')}",
],
)