-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #298 from 4dn-dcic/python-3.12
Python 3.12
- Loading branch information
Showing
11 changed files
with
637 additions
and
345 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[tool.poetry] | ||
name = "dcicsnovault" | ||
version = "11.17.0" | ||
version = "11.18.0" | ||
description = "Storage support for 4DN Data Portals." | ||
authors = ["4DN-DCIC Team <[email protected]>"] | ||
license = "MIT" | ||
|
@@ -34,27 +34,34 @@ classifiers = [ | |
'Programming Language :: Python :: 3.9', | ||
'Programming Language :: Python :: 3.10', | ||
'Programming Language :: Python :: 3.11', | ||
'Programming Language :: Python :: 3.12' | ||
] | ||
|
||
[tool.poetry.dependencies] | ||
python = ">=3.8.1,<3.12" | ||
python = ">=3.9,<3.13" | ||
aws_requests_auth = "^0.4.1" | ||
boto3 = ">=1.28.62" # no particular version required, but this speeds up search | ||
botocore = ">=1.31.62" # no particular version required, but this speeds up search | ||
boto3 = "^1.34.136" | ||
botocore = "^1.34.136" | ||
elasticsearch = "7.13.4" # versions >= 7.14.0 lock out AWS ES | ||
elasticsearch_dsl = "^7.4.0" | ||
dcicutils = "^8.11.0" | ||
future = ">=0.15.2,<1" | ||
#python-3.12 elasticsearch = "^7.17.9" | ||
#python-3.12 elasticsearch_dsl = "^7.4.1" | ||
dcicutils = "^8.13.0" | ||
future = "^0.18.3" | ||
html5lib = ">=1.1" # experimental, should be OK now that we're not using moto server | ||
humanfriendly = "^1.44.9" | ||
netaddr = ">=0.8.0,<1" | ||
numpy = "^1.26.4" | ||
passlib = "^1.7.4" | ||
pillow = "^9.5.0" | ||
pmdarima = "^2.0.4" | ||
psutil = "^5.9.0" | ||
psycopg2-binary = "^2.9.1" | ||
PyBrowserID = ">=0.10.0,<1" | ||
pyjwt = "^2.6.0" | ||
pyramid = "1.10.4" | ||
#pyramid = "^2.0.2" | ||
#pyramid = "1.10.4" | ||
pyramid = "1.10.8" | ||
pyramid-multiauth = ">=0.9.0,<1" | ||
pyramid-retry = "^1.0" | ||
pyramid-tm = "^2.5" | ||
|
@@ -75,7 +82,7 @@ subprocess_middleware = ">=0.3,<1" | |
# TODO: Investigate whether a major version upgrade is allowable for 'transaction'. | ||
transaction = "^3.0.1" | ||
# TODO: Investigate whether a major version upgrade is allowable for 'venusian'. | ||
venusian = "^1.2.0" | ||
venusian = "^3.1.0" | ||
WebOb = "^1.8.7" | ||
WebTest = "^2.0.35" | ||
WSGIProxy2 = "0.4.2" | ||
|
@@ -86,8 +93,8 @@ xlrd = "^1.0.0" | |
jsonschema = {extras = ["format-nongpl"], version = "^4.19.0"} | ||
|
||
[tool.poetry.dev-dependencies] | ||
boto3-stubs = ">=1.28.62" # no particular version required, but this speeds up search | ||
botocore-stubs = ">=1.31.62" # no particular version required, but this speeds up search | ||
boto3-stubs = "^1.34.136" | ||
botocore-stubs = "^1.34.136" | ||
coverage = ">=6.2" | ||
codacy-coverage = ">=1.3.11" | ||
# When we add coverage, this must be loaded manually in GA workflow for coverage because a dependency on 2to3 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Note that pyramid.compat disappeared with pyramid 2.0.2, during move to Python 3.12, | ||
# though went back to pyramid 1.10.8 subsequently, will run into this eventually. | ||
|
||
from urllib.parse import unquote_to_bytes | ||
|
||
text_type = str | ||
|
||
|
||
def ascii_native_(s): | ||
if isinstance(s, text_type): | ||
s = s.encode('ascii') | ||
return str(s, 'ascii', 'strict') | ||
|
||
|
||
def native_(s, encoding='latin-1', errors='strict'): | ||
""" If ``s`` is an instance of ``text_type``, return | ||
``s``, otherwise return ``str(s, encoding, errors)``""" | ||
if isinstance(s, text_type): | ||
return s | ||
return str(s, encoding, errors) | ||
|
||
|
||
def unquote_bytes_to_wsgi(bytestring): | ||
return unquote_to_bytes(bytestring).decode('latin-1') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters