Skip to content

Commit

Permalink
actually tiktoken requires Py3.8+
Browse files Browse the repository at this point in the history
  • Loading branch information
smirolo committed Oct 1, 2024
1 parent 06d9b99 commit 99df175
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
7 changes: 5 additions & 2 deletions djaopsp/wsgi.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,11 @@ def save_coverage():
if os.getenv('DJANGO_COVERAGE'):
import atexit, sys
import coverage
cov = coverage.coverage(data_file=os.path.join(os.getenv('DJANGO_COVERAGE'),
".coverage.%d" % os.getpid()))
data_file=os.path.join(os.getenv('DJANGO_COVERAGE'),
".coverage.%d" % os.getpid())
cov = coverage.coverage(data_file=data_file)
sys.stderr.write("start recording coverage in %s\n" % str(data_file))
cov.set_option("run:relative_files", True)
cov.start()
atexit.register(save_coverage)

Expand Down
15 changes: 9 additions & 6 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# Requirements running on Python3.7
# Requirements running on Python3.10
#
# `tiktoken` (AI audits) requires Python>=3.8

Django==3.2.25
#djangorestframework==3.14.0
djangorestframework==3.12.4
Expand All @@ -9,7 +12,7 @@ djaodjin-survey==0.12.3
docutils==0.20.1 # Technically only needed for schema generation but
# djangorestframework will import regardless.
gunicorn==20.1.0
jinja2==3.1.2 # >=3.1 not available with Py36?
jinja2==3.1.2 # >=3.1 not available with Py36?
html5lib==1.1
monotonic==1.6
openpyxl==3.1.2
Expand All @@ -18,9 +21,9 @@ pytz==2023.3

# These have C/C++ components, they can be installed through the recent wheel
# pip feature or through the native package manager
cairocffi==1.3.0 # >=1.3.0 not available with Py36?
coverage==6.3.2 # >=6.3.2 not available with Py36?
cryptography==41.0.7 # 38.0.3 for pyOpenSSL 22.1.0 compatibility
cairocffi==1.3.0 # >=1.3.0 not available with Py36?
coverage==6.3.2 # >=6.3.2 not available with Py36?
cryptography==41.0.7 # 38.0.3 for pyOpenSSL 22.1.0 compatibility
psycopg2-binary==2.9.3
setproctitle==1.2.3

Expand Down Expand Up @@ -50,7 +53,7 @@ coreapi==2.3.3
drf-spectacular==0.27.2
Pygments==2.16.1
pyyaml==6.0
Sphinx==5.3.0
Sphinx==7.2.6 # Requires Python>=3.8?
sphinx_rtd_theme==2.0.0
sphinxcontrib-httpdomain==1.8.1
sphinxcontrib-websupport==1.2.4
Expand Down

0 comments on commit 99df175

Please sign in to comment.