mirror of
https://github.com/quay/quay.git
synced 2026-01-26 06:21:37 +03:00
Allows for exporting Quay modules via source to be reused in other tools. Current exported packages only support exporting database modules to keep package size low.
91 lines
2.0 KiB
Python
91 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",
|
|
"redlock",
|
|
"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",
|
|
"util",
|
|
"util.security",
|
|
"util.metrics",
|
|
"image",
|
|
"image.docker",
|
|
"image.docker.schema2",
|
|
"image.shared",
|
|
"digest",
|
|
"oauth",
|
|
],
|
|
install_requires=install_requires,
|
|
)
|