-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
54 lines (49 loc) · 1.51 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
48
49
50
51
52
53
54
""" crmngr setup module. """
from pathlib import Path
import re
from setuptools import setup, find_packages
def find_version(source_file):
"""read __version__ from source file"""
with open(source_file) as version_file:
version_match = re.search(r"^__version__\s*=\s* ['\"]([^'\"]*)['\"]",
version_file.read(), re.M)
if version_match:
return version_match.group(1)
raise RuntimeError('Unable to find package version')
setup(
name='crmngr',
author='Andre Keller',
author_email='[email protected]',
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Console',
'Intended Audience :: System Administrators',
'License :: OSI Approved :: BSD License',
'Operating System :: Unix',
'Programming Language :: Python :: 3 :: Only',
'Topic :: System :: Systems Administration',
],
description='manage a r10k-style control repository',
entry_points={
'console_scripts': [
'crmngr = crmngr:main'
]
},
install_requires=[
'natsort>=4.0.0',
'requests>=2.1.0',
],
setup_requires=[
'pytest-runner',
],
tests_require=[
'pytest',
],
python_requires='>=3.4',
# BSD 3-Clause License:
# - http://opensource.org/licenses/BSD-3-Clause
license='BSD',
packages=find_packages(),
url='https://github.com/vshn/crmngr',
version=find_version(str(Path('./crmngr/version.py'))),
)