In the course, clean up how execution errors are processed, i.e. use exceptions rather than integer return codes to indicate errors. Signed-off-by: Nils Philippsen <nils@redhat.com>
46 lines
1.6 KiB
Python
46 lines
1.6 KiB
Python
import os.path
|
|
|
|
from setuptools import setup
|
|
|
|
|
|
HERE = os.path.dirname(__file__)
|
|
with open(os.path.join(HERE, 'requirements.txt'), 'r') as f:
|
|
INSTALL_REQUIRES = [x.strip() for x in f.readlines()]
|
|
with open(os.path.join(HERE, 'test_requirements.txt'), 'r') as f:
|
|
TESTS_REQUIRE = [x.strip() for x in f.readlines()]
|
|
|
|
|
|
setup(
|
|
name='distgit-bugzilla-sync',
|
|
version='0.1',
|
|
description='script to set default assignee, CC list from component owners',
|
|
# Possible options are at https://pypi.python.org/pypi?%3Aaction=list_classifiers
|
|
classifiers=[
|
|
'Development Status :: 3 - Alpha',
|
|
'Intended Audience :: Developers',
|
|
'Intended Audience :: System Administrators',
|
|
'License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)',
|
|
'Operating System :: POSIX :: Linux',
|
|
'Programming Language :: Python :: 3',
|
|
'Programming Language :: Python :: 3.6',
|
|
'Programming Language :: Python :: 3.7',
|
|
'Programming Language :: Python :: 3.8',
|
|
'Topic :: Software Development :: Bug Tracking',
|
|
],
|
|
license='GPLv2+',
|
|
maintainer='Fedora Infrastructure Team',
|
|
maintainer_email='infrastructure@lists.fedoraproject.org',
|
|
platforms=['Fedora', 'GNU/Linux'],
|
|
url='https://pagure.io/Fedora-Infra/distgit-bugzilla-sync',
|
|
keywords='fedora',
|
|
packages=['distgit_bugzilla_sync'],
|
|
include_package_data=True,
|
|
zip_safe=False,
|
|
install_requires=INSTALL_REQUIRES,
|
|
tests_require=TESTS_REQUIRE,
|
|
entry_points={
|
|
'console_scripts': [
|
|
'distgit-bugzilla-sync = distgit_bugzilla_sync.script:DistgitBugzillaSync.main',
|
|
],
|
|
},
|
|
)
|