forked from python-semantic-release/python-semantic-release
- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
Latest commit
52 lines (44 loc) · 1.29 KB
/
Copy pathsetup.py
File metadata and controls
52 lines (44 loc) · 1.29 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
importre
fromsetuptoolsimportfind_packages, setup
importsys
def_read_long_description():
try:
withopen('readme.rst') asfd:
returnfd.read()
exceptException:
returnNone
withopen('semantic_release/__init__.py', 'r') asfd:
version=re.search(
r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]',
fd.read(),
re.MULTILINE
).group(1)
withopen('requirements/base.txt', 'r') asfd:
requirements=fd.read().strip().split('\n')
try:
fromsemantic_releaseimportsetup_hook
setup_hook(sys.argv)
exceptImportError:
pass
setup(
name='python-semantic-release',
version=version,
url='http://github.com/relekang/python-semantic-release',
author='Rolf Erik Lekang',
author_email='me@rolflekang.com',
description='Automatic semantic versioning for python projects',
long_description=_read_long_description(),
packages=find_packages(exclude='tests'),
license='MIT',
install_requires=requirements,
entry_points='''
[console_scripts]
semantic-release=semantic_release.cli:main
''',
include_package_data=True,
classifiers=[
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
]
)