1
0
mirror of https://github.com/quay/quay.git synced 2026-01-26 06:21:37 +03:00
Files
quay/setup.py
Marcus Kok ba02111743 cherrypick: 3.9 cherry pick (PROJQUAY-0000) (#3988)
updating hack script for gathering python dependencies on konflux
2025-06-05 09:21:57 -04:00

93 lines
2.0 KiB
Python

from setuptools import setup
import os
# File used to export Quay modules to be used in other projects.
# Current modules exported to support reuse of database models.
# Modules and dependencies are exported via whitelist - only the
# required modules are exported for efficiency.
# The only Quay dependencies that will be exported with package
packages = [
"alembic",
"Authlib",
"bitmath",
"boto3",
"bcrypt",
"botocore",
"cachetools",
"cryptography",
"Deprecated",
"elasticsearch",
"Flask",
"hashids",
"jsonschema",
"keystoneauth1",
"peewee",
"pymemcache",
"PyYAML",
"redis",
"rehash",
"six",
"SQLAlchemy",
"stripe",
"tldextract",
"toposort",
"tzlocal",
"beautifulsoup4",
"bintrees",
"geoip2",
"gevent",
"greenlet",
"gunicorn",
"Jinja2",
"mixpanel",
"netaddr",
"psutil",
"PyJWT",
"pyOpenSSL",
"raven",
"requests",
"Werkzeug",
"xhtml2pdf",
]
# Pull dependency versions from requirements.txt
# Exclude dependencies built directly from source, none are required
quay_root = os.path.dirname(os.path.realpath(__file__))
requirementPath = quay_root + "/requirements.txt"
install_requires = []
if os.path.isfile(requirementPath):
with open(requirementPath) as f:
for line in f.read().splitlines():
if not line.startswith("git") and line.split("==")[0] in packages:
install_requires.append(line)
setup(
name="quay",
version="3.7",
description="Quay Modules",
author="Quay Team",
author_email="",
url="https://github.com/quay/quay",
packages=[
"features",
"auth",
"data",
"data.model",
"data.model.oci",
"data.registry_model",
"data.secscan_model",
"util",
"util.security",
"util.metrics",
"image",
"image.docker",
"image.oci",
"image.docker.schema2",
"image.shared",
"digest",
"oauth",
],
install_requires=install_requires,
)