Skip to content

Commit 01f8114

Browse files
committed
Add setup.py
1 parent 5b3171b commit 01f8114

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed

setup.py

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
from os import path
2+
from setuptools import setup
3+
4+
long_description = open(
5+
path.join(path.dirname(__file__), 'README.md')
6+
).read().strip() if path.exists('README.md') else ''
7+
8+
_locals = {}
9+
with open("msrc.py") as f:
10+
for line in f.readlines():
11+
if line.startswith('__version_'):
12+
exec(line, None, _locals)
13+
14+
version = _locals['__version__']
15+
16+
install_requires = [
17+
"requests"
18+
]
19+
20+
setup(
21+
name="msrc",
22+
description="MSRC Search tool",
23+
license="MIT License",
24+
url="https://github.com/haginara/msrc-python",
25+
long_description=long_description,
26+
long_description_content_type='text/markdown',
27+
version=version,
28+
author='Jonghak Choi',
29+
author_email='[email protected]',
30+
install_requires=install_requires,
31+
entry_points={
32+
'console_scripts': [
33+
'msrc=msrc:main',
34+
]
35+
},
36+
py_modules=['msrc'],
37+
package_data={
38+
'': ['README.md', ]
39+
},
40+
include_package_data=True,
41+
classifiers=[
42+
"License :: OSI Approved :: MIT License",
43+
"Programming Language :: Python",
44+
"Programming Language :: Python :: 3",
45+
"Programming Language :: Python :: 3.6",
46+
"Programming Language :: Python :: 3.7",
47+
"Programming Language :: Python :: 3.8",
48+
]
49+
)

0 commit comments

Comments
 (0)