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 2333d14
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import os
import platform
import re
import sys
import warnings
try:
Expand Down Expand Up @@ -145,9 +146,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 2333d14

Please sign in to comment.