Skip to content

Commit

Permalink
Try to work around issue with python 3.12 and pip.
Browse files Browse the repository at this point in the history
  • Loading branch information
coleifer committed May 10, 2024
1 parent 9772a69 commit 7d5dd30
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,13 @@ def _do_setup(c_extensions, sqlite_extensions):
else:
ext_modules = None

with open('peewee.py', 'rt') as fh:
version, = [l for l in fh.readlines() if l.startswith('__version__')]
version = re.search(r'\'([\d\.]+)\'', version).groups()

setup(
name='peewee',
version=__import__('peewee').__version__,
version=version,
description='a little orm',
long_description=readme,
author='Charles Leifer',
Expand Down

0 comments on commit 7d5dd30

Please sign in to comment.