-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathsetup.py
60 lines (49 loc) · 1.9 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
#!/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, 5):
sys.exit('Sorry, Python < 3.5 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="pyecoregen",
version='0.5.1',
description="Model to text framework for PyEcore, including the Ecore to Python generator",
long_description=open('README.rst').read(),
keywords="model metamodel EMF Ecore code generator",
url="https://github.com/pyecore/pyecoregen",
author="Mike Pagel",
author_email="[email protected]",
packages=find_packages(exclude=['tests']),
package_data={'': ['README.rst', 'LICENSE'],
'pyecoregen': ['templates/*']},
include_package_data=True,
install_requires=['pyecore', 'pymultigen', 'jinja2', 'autopep8'],
tests_require=['pytest'],
cmdclass={'test': PyTest},
entry_points={'console_scripts': ['pyecoregen = pyecoregen.cli:main']},
license='BSD 3-Clause',
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 :: BSD License",
]
)