-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
47 lines (44 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
import re
import os
from setuptools import setup
def get_version():
data = open('rpmbuild_chain/rpmbuild_chain.py', 'r').read()
m = re.search('^__version__ = [\'"]([^\'"]+)[\'"]', data, re.M)
if m:
return m.group(1)
else:
raise RuntimeError('Unable to find version string')
here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, 'README.rst'), encoding='utf-8') as f:
long_description = f.read()
setup(
name='rpmbuild-chain',
version=get_version(),
description='Build a series of SRPMs with rpmbuild',
long_description=long_description,
url='https://github.com/jwmullally/rpmbuild-chain',
author='Joseph Mullally',
author_email='[email protected]',
license='MIT',
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Topic :: Software Development :: Build Tools',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
],
packages=['rpmbuild_chain'],
install_requires=[
],
test_suite='nose.collector',
tests_require=[
'nose',
],
entry_points={
'console_scripts': [
'rpmbuild-chain = rpmbuild_chain.rpmbuild_chain:cli'
]
},
)