This repository was archived by the owner on Jan 9, 2025. It is now read-only.
forked from sclorg/spec2scl
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
63 lines (53 loc) · 2.05 KB
/
setup.py
File metadata and controls
63 lines (53 loc) · 2.05 KB
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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
from spec2scl.version import version
try:
from setuptools import setup, find_packages
from setuptools.command.test import test as TestCommand
except:
from distutils.core import setup, find_packages
if sys.version_info < (2, 7):
install_requires = ['jinja2', 'argparse']
else:
install_requires = ['jinja2']
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = ['tests']
self.test_suite = True
def run_tests(self):
# import here, cause outside the eggs aren't loaded
import pytest
errno = pytest.main(self.test_args)
sys.exit(errno)
description = """spec2scl is a tool to convert RPM specfiles to SCL-style specfiles."""
setup(
name='spec2scl',
version=version,
description="Convert RPM specfiles to SCL-style.",
long_description=description,
keywords='rpm, spec, specfile, convert, scl, dsc',
author='Slavek Kabrda, Robert Kuska, Iryna Shcherbina',
author_email='slavek@redhat.com, rkuska@redhat.com, ishcherb@redhat.com',
url='https://bitbucket.org/bkabrda/spec2scl/',
license='MIT',
packages=find_packages(exclude=['tests']),
package_data={'spec2scl': ['templates/*.spec']},
setup_requires=['pytest',
'flexmock >= 0.9.3'
] + install_requires,
install_requires=install_requires,
cmdclass={'test': PyTest},
entry_points={'console_scripts': ['spec2scl = spec2scl.bin:main']},
classifiers=['Development Status :: 4 - Beta',
'Environment :: Console',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'License :: OSI Approved :: MIT License',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python',
'Topic :: Software Development :: Build Tools',
'Topic :: System :: Software Distribution',
]
)