-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
56 lines (45 loc) · 1.67 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
#!/usr/bin/env python
import sys
from setuptools import setup, find_packages
from setuptools.command.test import test as TestCommand
if sys.version_info < (3, 3):
sys.exit('Sorry, Python < 3.3 is not supported')
class PyTest(TestCommand):
user_options = [('pytest-args=', 'a', "Arguments to pass to py.test")]
def initialize_options(self):
TestCommand.initialize_options(self)
self.pytest_args = []
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
import pytest
args = self.pytest_args if isinstance(self.pytest_args, list) else [self.pytest_args]
errno = pytest.main(args)
sys.exit(errno)
setup(
name='pymultigen',
version='0.2.0',
description='Multi-file frontend for single-file code generators.',
long_description=open('README.rst').read(),
keywords='code generator jinja multi-file',
url='https://github.com/moltob/pymultigen',
author='Mike Pagel',
author_email='[email protected]',
packages=find_packages(exclude=['tests']),
install_requires=[],
tests_require=['pytest', 'jinja2', 'autopep8'], # optional packages tested
cmdclass={'test': PyTest},
license='MIT License',
classifiers=[
'Development Status :: 4 - Beta',
'Programming Language :: Python',
'Programming Language :: Python :: 3 :: Only',
'Operating System :: OS Independent',
'Intended Audience :: Developers',
'Topic :: Software Development',
'Topic :: Software Development :: Libraries',
'License :: OSI Approved :: MIT License',
]
)