Skip to content

Commit

Permalink
Conditionally install setuptools for Python 3.12 and above
Browse files Browse the repository at this point in the history
  • Loading branch information
katdom13 committed Mar 5, 2024
1 parent 410e3d5 commit 32aa7d9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
from setuptools import setup, find_packages
from sys import version_info as PYTHON_VERSION


with open('README.rst') as file:
long_description = file.read()

install_requires = [
'wagtail>=5.2',
]

if (PYTHON_VERSION.major, PYTHON_VERSION.minor) >= (3, 12):
install_requires.append('setuptools>=69.1.1')

setup(
name='wagtail-robots',
Expand Down

0 comments on commit 32aa7d9

Please sign in to comment.