forked from voxpupuli/pypuppetdb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
68 lines (58 loc) · 1.88 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
import sys
import os
import codecs
from setuptools import setup
from setuptools.command.test import test as TestCommand
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist upload')
sys.exit()
class Tox(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
#import here, cause outside the eggs aren't loaded
import tox
errno = tox.cmdline(self.test_args)
sys.exit(errno)
with codecs.open('README.rst', encoding='utf-8') as f:
README = f.read()
with codecs.open('CHANGELOG.rst', encoding='utf-8') as f:
CHANGELOG = f.read()
packages = [
'pypuppetdb',
'pypuppetdb.api',
]
setup(
name='pypuppetdb',
version='0.0.4',
author='Daniele Sluijters',
author_email='[email protected]',
packages=packages,
url='https://github.com/nedap/pypuppetdb',
license=open('LICENSE').read(),
description='Library for working with the PuppetDB REST API.',
long_description='\n'.join((README, CHANGELOG)),
package_data={'': ['LICENSE', 'CHANGELOG.rst', ], },
include_package_data=True,
keywords='puppet puppetdb',
tests_require=['tox'],
cmdclass={'test': Tox},
install_requires=[
"requests >= 1.2.3",
],
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'Natural Language :: English',
'License :: OSI Approved :: Apache Software License',
'Operating System :: POSIX',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Topic :: Software Development :: Libraries'
],
)