diff --git a/pagure-sync-bugzilla.py b/pagure_sync_bugzilla.py similarity index 100% rename from pagure-sync-bugzilla.py rename to pagure_sync_bugzilla.py diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..671e32b --- /dev/null +++ b/requirements.txt @@ -0,0 +1,6 @@ +bugzilla +dogpile.cache +python-fedora +PyYAML +requests +urllib3 diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..546e4b7 --- /dev/null +++ b/setup.py @@ -0,0 +1,46 @@ +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=[], + include_package_data=True, + zip_safe=False, + install_requires=INSTALL_REQUIRES, + tests_require=TESTS_REQUIRE, + entry_points={ + 'console_scripts': [ + 'distgit-bugzilla-sync = pagure_sync_bugzilla:main', + ], + }, +) diff --git a/test_requirements.txt b/test_requirements.txt new file mode 100644 index 0000000..28ecaca --- /dev/null +++ b/test_requirements.txt @@ -0,0 +1,2 @@ +flake8 +pytest