Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify python version requirement #765

Merged
merged 1 commit into from
Jul 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
Aaron Ross <aaron@wawd.com>
Adam Endicott
Alex Stapleton <alex.stapleton@artfinder.com>
Alexandr Artemyev <mogost@gmail.com>
Alvaro Vega <avega@tid.es>
Andrew Frankel
Andrew Watts <andrewwatts@gmail.com>
Expand Down
18 changes: 1 addition & 17 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,26 +8,9 @@
import setuptools
import setuptools.command.test

try:
import platform
_pyimp = platform.python_implementation
except (AttributeError, ImportError):
def _pyimp():
return 'Python'

NAME = 'django-celery-beat'
PACKAGE = 'django_celery_beat'

E_UNSUPPORTED_PYTHON = f'{NAME} 1.0 requires %s %s or later!'

PYIMP = _pyimp()
PY38_OR_LESS = sys.version_info < (3, 8)
PYPY_VERSION = getattr(sys, 'pypy_version_info', None)
PYPY24_ATLEAST = PYPY_VERSION and PYPY_VERSION >= (2, 4)

if PY38_OR_LESS and not PYPY24_ATLEAST:
raise Exception(E_UNSUPPORTED_PYTHON % (PYIMP, '3.8'))

# -*- Classifiers -*-

classes = """
Expand Down Expand Up @@ -148,6 +131,7 @@ def run_tests(self):
url=meta['homepage'],
platforms=['any'],
license='BSD',
python_requires='>=3.8',
install_requires=reqs('default.txt') + reqs('runtime.txt'),
tests_require=reqs('test.txt') + reqs('test-django.txt'),
cmdclass={'test': pytest},
Expand Down