forked from mc706/changelog-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
60 lines (55 loc) · 1.69 KB
/
setup.py
File metadata and controls
60 lines (55 loc) · 1.69 KB
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
51
52
53
54
55
56
57
58
59
60
from setuptools import setup, find_packages
import os
VERSION_FILE = 'src/changelog/_version.py'
with open(VERSION_FILE, 'r') as vf:
value = vf.read()
v = value.split('=')[1].strip().strip('"')
try:
from pypandoc import convert
read_md = lambda f: convert(f, 'rst')
except ImportError:
print("warning: pypandoc module not found, could not convert Markdown to RST")
read_md = lambda f: open(f, 'r').read()
dev_requirements = [
'prospector',
'twine',
'coverage',
'invoke',
'wheel',
'mock'
]
setup(
name='changelog-cli',
description='Command line interface for managing CHANGELOG.md files',
long_description=read_md("README.md"),
version=os.getenv('MODULE_VERSION_ID', v),
author='Ryan McDevitt',
author_email='mcdevitt.ryan@gmail.com',
packages=find_packages('src'),
package_dir={'': 'src'},
url='https://github.com/mc706/changelog-cli',
install_requires=[
'click'
],
extras_require={'dev': dev_requirements},
entry_points={
'console_scripts': [
'changelog=changelog.commands:cli',
'cl=changelog.commands:cli'
]
},
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Console',
'Intended Audience :: Developers',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Topic :: Documentation',
'Topic :: Software Development :: Build Tools',
'Topic :: Software Development :: Documentation',
'Topic :: Utilities',
]
)