All checks were successful
Run tests and linters / test (pull_request) Successful in 2m48s
These requirements are no longer needed. Move pytest and munch to devel reqs, because they are only needed for tests. Related: #306 Co-authored-by: Kamil Páral <kparal@redhat.com>
68 lines
1.7 KiB
Python
68 lines
1.7 KiB
Python
"""Install the application"""
|
|
|
|
import codecs
|
|
import os
|
|
from setuptools import setup, Command # type: ignore
|
|
|
|
import versioneer
|
|
|
|
here = os.path.abspath(os.path.dirname(__file__))
|
|
|
|
|
|
class PyTest(Command):
|
|
user_options = [] # type: ignore
|
|
|
|
def initialize_options(self):
|
|
pass
|
|
|
|
def finalize_options(self):
|
|
pass
|
|
|
|
def run(self):
|
|
import subprocess
|
|
|
|
errno = subprocess.call(["pytest-3"])
|
|
raise SystemExit(errno)
|
|
|
|
|
|
def read(*parts):
|
|
return codecs.open(os.path.join(here, *parts), "r").read()
|
|
|
|
|
|
setup(
|
|
name="blockerbugs",
|
|
version=versioneer.get_version(),
|
|
description="Web application for tracking blocker and nth bugs in Fedora releases",
|
|
author="Tim Flink",
|
|
author_email="tflink@fedoraproject.org",
|
|
license="GPLv2+",
|
|
url="https://forge.fedoraproject.org/quality/blockerbugs",
|
|
packages=[
|
|
"blockerbugs",
|
|
"blockerbugs.controllers",
|
|
"blockerbugs.util",
|
|
"blockerbugs.models",
|
|
"blockerbugs.controllers.api",
|
|
"blockerbugs.controllers.admin",
|
|
],
|
|
package_dir={"blockerbugs": "blockerbugs"},
|
|
entry_points=dict(console_scripts=["blockerbugs=blockerbugs.cli:main"]),
|
|
include_package_data=True,
|
|
cmdclass=versioneer.get_cmdclass({"test": PyTest}),
|
|
install_requires=[
|
|
"alembic",
|
|
"Flask-Admin",
|
|
"Flask-SQLAlchemy",
|
|
"Flask-WTF",
|
|
"flask-oidc",
|
|
"Flask",
|
|
"iso8601",
|
|
"Jinja2",
|
|
# bugzilla 3.2.0 because of API auth changes:
|
|
# https://listman.redhat.com/archives/bugzilla-announce-list/2022-February/msg00000.html
|
|
"python-bugzilla >= 3.2.0",
|
|
"SQLAlchemy",
|
|
"Werkzeug",
|
|
"WTForms",
|
|
],
|
|
)
|