Skip to content

Commit

Permalink
Add version_info checks again, pending migration to pyproject
Browse files Browse the repository at this point in the history
  • Loading branch information
rdimaio committed Nov 28, 2024
1 parent 47a3849 commit e62bb6d
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
3 changes: 0 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"

[project]
requires-python = ">=3.9"

[tool.pytest.ini_options]
pythonpath = [
".",
Expand Down
4 changes: 4 additions & 0 deletions setup_rucio.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@

from setuptools import find_packages, setup

if sys.version_info < (3, 9): # noqa: UP036 (pending https://github.com/rucio/rucio/issues/6971)
print('ERROR: Rucio Server requires at least Python 3.9 to run.')
sys.exit(1)

try:
from setuputil import get_rucio_version, match_define_requirements, server_requirements_table
except ImportError:
Expand Down
4 changes: 4 additions & 0 deletions setup_rucio_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@

from setuptools import setup

if sys.version_info < (3, 9): # noqa: UP036 (pending https://github.com/rucio/rucio/issues/6971)
print('ERROR: Rucio Client requires at least Python 3.9 to run.')
sys.exit(1)

try:
from setuputil import clients_requirements_table, get_rucio_version, match_define_requirements
except ImportError:
Expand Down
4 changes: 4 additions & 0 deletions setup_webui.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@

from setuptools import setup

if sys.version_info < (3, 9): # noqa: UP036 (pending https://github.com/rucio/rucio/issues/6971)
print('ERROR: Rucio Server requires at least Python 3.9 to run.')
sys.exit(1)

try:
from setuputil import get_rucio_version
except ImportError:
Expand Down

0 comments on commit e62bb6d

Please sign in to comment.