1
0
mirror of https://github.com/quay/quay.git synced 2026-10-23 09:49:06 +03:00
Files
quay/setup.py
Ryan Wallace 090ab14d96 QUAYIO-1725: fix(setup.py): remove whitelist (#5833)
* fix(setup.py): remove whitelist

* fix: avoid accidental exclusions
2026-04-29 16:29:15 -04:00

47 lines
1.2 KiB
Python

import os
from setuptools import find_packages, setup
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():
line = line.strip()
if (
line
and not line.startswith("#")
and not line.startswith("git+")
and "@" not in line
and line.split("==")[0] not in ("setuptools", "wheel")
):
install_requires.append(line)
setup(
name="quay",
version="3.13",
description="Quay Modules",
author="Quay Team",
author_email="",
url="https://github.com/quay/quay",
packages=find_packages(
exclude=[
"test",
"test.*",
"*.test",
"*.test.*",
"*.tests",
"*.tests.*",
"web",
"web.*",
"conf",
"conf.*",
"static",
"static.*",
"initdb",
],
),
install_requires=install_requires,
)