Skip to content

Commit

Permalink
Require setuptools to install pkg_resources for Python 3.12+
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed Jun 15, 2023
1 parent 6c7afb3 commit f4a662c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,10 @@ def long_desc(root_path):
url='https://github.com/jazzband/django-model-utils',
packages=find_packages(exclude=['tests*']),
python_requires=">=3.7",
install_requires=['Django>=3.2'],
install_requires=[
'Django>=3.2',
'setuptools; python_version >= "3.12"', # For pkg_resources
],
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Web Environment',
Expand Down

0 comments on commit f4a662c

Please sign in to comment.