Skip to content

Commit

Permalink
Removed usage of deprecated pkg_resources jazzband#541
Browse files Browse the repository at this point in the history
  • Loading branch information
Smurf2-pluto committed Nov 14, 2023
1 parent 83601b9 commit 4711968
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
8 changes: 3 additions & 5 deletions polymorphic/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@
Please see LICENSE and AUTHORS for more information.
"""

import pkg_resources
VERSION = "3.1.0"

try:
__version__ = pkg_resources.require("django-polymorphic")[0].version
except pkg_resources.DistributionNotFound:
__version__ = None # for RTD among others
# version synonym for backwards compatibility
__version__ = VERSION
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = django-polymorphic
version = 3.1.0
version = attr: polymorphic.VERSION
description = Seamless polymorphic inheritance for Django models
long_description = file:README.rst
author = Bert Constantin
Expand Down

0 comments on commit 4711968

Please sign in to comment.