-
Notifications
You must be signed in to change notification settings - Fork 26
/
setup.py
41 lines (36 loc) · 1.16 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
#!/usr/bin/env python
# coding: utf-8
from setuptools import setup
import setuptools
import os
versions = list(filter(lambda x: x != "", os.popen(
"git tag -l").read().split("\n")))
version = versions[-1] if len(versions) > 0 else "UNTAGED-%s" % os.popen(
"git log --pretty=format:'%H'").read().split("\n")[0]
with open("README.md", "r") as fh:
long_description = fh.read()
with open("requirements.txt", "r") as fh:
requirements = fh.read().split("\n")
opts = {
'name': 'documentDownloader',
'version': version,
'author': 'OhYee',
'author_email': '[email protected]',
'url': 'https://github.com/OhYee/documentDownloader',
'description': u'book118文档下载器',
'long_description': long_description,
'long_description_content_type': "text/markdown",
'packages': setuptools.find_packages(),
'install_requires': requirements,
'entry_points': {
'console_scripts': [
'documentDownloader=book118:main',
]
},
'classifiers': [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
}
setup(**opts)