-
Notifications
You must be signed in to change notification settings - Fork 6
/
setup.py
50 lines (45 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
45
46
47
48
49
50
import os
import subprocess
import sys
import setuptools
from vstask.__version__ import VERSION
def changelog():
try:
p = subprocess.run([os.environ["SHELL"], 'bin/changelog'], capture_output=True, check=True)
log = p.stdout
if sys.version_info[0] == 3:
print(log)
log = log.decode()
return log
except subprocess.CalledProcessError:
print("Unable to generate changelog")
return ""
if __name__ == '__main__':
with open("README.md", "r") as fh:
long_description = fh.read()
long_description += changelog() + '\n'
setuptools.setup(
name="vstask",
version=VERSION,
author="Corey McCandless",
author_email="[email protected]",
description=(
"CLI for VSCode tasks"
),
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/cmccandless/vstask",
packages=setuptools.find_packages(),
classifiers=(
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
),
entry_points={
'console_scripts': [
'vstask = vstask.vstask:main'
],
},
install_requires=[],
include_package_data=True
)