Skip to content

Commit 3920a29

Browse files
committed
Merge branch 'hotfix/24.05.3' into develop
2 parents 99d8b70 + 406c027 commit 3920a29

22 files changed

+462
-560
lines changed

.github/workflows/test-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
uses: actions/cache@v2
2222
with:
2323
path: ~/.cache
24-
key: reqs_${{ hashFiles('**/requirements.txt') }}
24+
key: reqs_${{ hashFiles('**/pyproject.toml') }}
2525
restore-keys: reqs
2626
- run: |
2727
mkdir -p ~/.cache/downloads

addons/bitbucket/requirements.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

addons/boa/requirements.txt

Lines changed: 0 additions & 5 deletions
This file was deleted.

addons/box/requirements.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

addons/dataverse/requirements.txt

Lines changed: 0 additions & 3 deletions
This file was deleted.

addons/dropbox/requirements.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

addons/figshare/requirements.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

addons/github/requirements.txt

Lines changed: 0 additions & 3 deletions
This file was deleted.

addons/gitlab/requirements.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

addons/mendeley/requirements.txt

Lines changed: 0 additions & 2 deletions
This file was deleted.

addons/onedrive/requirements.txt

Whitespace-only changes.

addons/owncloud/requirements.txt

Lines changed: 0 additions & 2 deletions
This file was deleted.

addons/s3/requirements.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

addons/twofactor/requirements.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

addons/wiki/requirements.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

addons/zotero/requirements.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

api/base/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from furl import furl
2-
from urllib.parse import urlunsplit, urlsplit, parse_qs, urlencode, quote
2+
from urllib.parse import urlunsplit, urlsplit, parse_qs, urlencode
33
from packaging.version import Version
44
from hashids import Hashids
55

@@ -236,7 +236,7 @@ def waterbutler_api_url_for(node_id, provider, path='/', _internal=False, base_u
236236
# NOTE: furl encoding to be verified later
237237
url = furl(website_settings.WATERBUTLER_INTERNAL_URL if _internal else (base_url or website_settings.WATERBUTLER_URL))
238238
segments = ['v1', 'resources', node_id, 'providers', provider] + path.split('/')[1:]
239-
url.add(path=[quote(x) for x in segments])
239+
url.add(path=segments)
240240
url.args.update(kwargs)
241241
return url.url
242242

poetry.lock

Lines changed: 416 additions & 367 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 43 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ packages = [{include = "osf"}]
1111
python = "^3.12"
1212
wheel = "0.42.0"
1313
invoke = "2.2.0"
14-
Werkzeug = "3.0.1"
14+
Werkzeug = "3.0.3"
1515
Flask = "3.0.2"
1616
Mako = "1.3.2"
1717
Markdown = "3.5.2"
@@ -55,8 +55,9 @@ oauthlib = "3.2.2"
5555
requests-oauthlib = "1.3.1"
5656
sentry-sdk = {version= "2.2.0", extras = ["django", "flask", "celery"]}
5757
django-redis = "5.4.0"
58+
5859
# API requirements
59-
Django = "4.2.13"
60+
Django = "4.2.15"
6061
djangorestframework = "3.15.1"
6162
django-cors-headers = "4.3.1"
6263
djangorestframework-bulk = "0.2.1"
@@ -69,38 +70,48 @@ django-timezone-field = "6.1.0" # pin to delay untested major version bump
6970
pyjwe = "1.0.0"
7071
# Required by pyjwe and ndg-httpsclient
7172
cryptography = "42.0.5"
72-
#rpds-py==0.18.0
7373
jsonschema = "4.21.1"
7474
django-guardian = "2.4.0"
75+
7576
# Admin requirements
77+
# fork to generate old webpack stats format so we don't have to upgrade admin's webpack
7678
django-webpack-loader = {git = "https://github.com/CenterForOpenScience/django-webpack-loader.git", rev = "af8438c2da909ec9f2188a6c07c9d2caad0f7e93"} # branch is feature/v1-webpack-stats
7779
django-sendgrid-v5 = "1.2.3" # metadata says python 3.10 not supported, but tests pass
7880

79-
# Analytics requirements
81+
# Analytics requirement
8082
keen = "0.7.0"
8183
geoip2 = "4.7.0"
84+
8285
# OSF models
8386
django-typed-models = "0.14.0"
8487
django-storages = "1.14.3"
8588
google-cloud-storage = "2.16.0" # dependency of django-storages, hard-pin to version
8689
django-dirtyfields = "1.9.2"
8790
django-extensions = "3.2.3"
8891
psycopg2 = "2.9.9"
92+
8993
# Reviews requirements
9094
transitions = "0.8.11"
95+
9196
# identifiers
9297
datacite = "1.1.3"
98+
9399
# metadata
94100
rdflib = "7.0.0"
101+
packaging = "^24.0"
102+
95103
colorlog = "6.8.2"
104+
96105
# Metrics
106+
# fork to pin installed version of elasticsearch-dsl
97107
django-elasticsearch-metrics = {git ="https://github.com/CenterForOpenScience/django-elasticsearch-metrics.git", rev = "f5b9312914154e213aa01731e934c593e3434269"} # branch is feature/pin-esdsl
108+
98109
# Impact Metrics CSV Export
99110
djangorestframework-csv = "3.0.2"
100111
gevent = "24.2.1"
101-
packaging = "^24.0"
102112

103113
[tool.poetry.group.dev.dependencies]
114+
# Requirements that are used in the development environment only
104115
pytest = "7.4.4"
105116
pytest-socket = "0.7.0"
106117
pytest-xdist = "3.5.0"
@@ -136,33 +147,52 @@ nplusone = "1.0.0"
136147
django-silk = "5.1.0"
137148

138149
[tool.poetry.group.addons.dependencies]
139-
# Requirements for the boa add-on
150+
## boa
140151
boa-api = "0.1.14"
141-
142-
# Requirements for running asyncio in celery, using 3.4.1 for Python 3.6 compatibility
152+
# Requirements for running asyncio in celery
143153
asgiref = "3.7.2"
154+
155+
## box
144156
boxsdk = "3.9.2"
145-
# Allow for optional timeout parameter.
146-
# https://github.com/IQSS/dataverse-client-python/pull/27
157+
158+
## dataverse
159+
# new features & dependency updates
147160
dataverse = {git = "https://github.com/CenterForOpenScience/dataverse-client-python.git", rev="2b3827578048e6df3818f82381c7ea9a2395e526"} # branch is feature/dv-client-updates
161+
162+
## dropbox
148163
dropbox = "11.36.2"
149164

165+
## github
150166
cachecontrol = "0.14.0"
151167
"github3.py" = "4.0.1"
152168
uritemplate = "4.1.1"
169+
170+
## gitlab
153171
python-gitlab = "4.4.0"
172+
173+
## mendeley
154174
# up-to-date with mendeley's master + add folder support and future dep updates
155175
mendeley = {git = "https://github.com/CenterForOpenScience/mendeley-python-sdk.git", rev="be8a811fa6c3b105d9f5c656cabb6b1ba855ed5b"} # branch is feature/osf-dep-updates
156-
# Requirements for the owncloud add-on
176+
177+
## owncloud
157178
pyocclient = "0.6.0"
179+
180+
## s3
158181
boto3 = "1.34.60"
182+
183+
## twofactor
159184
pyotp = "2.9.0"
185+
186+
## wiki
187+
# needs pymongo, but already installed in deps
188+
# was 4.6.3 in wiki requirements, but older version seems to work
189+
190+
## zotero
160191
Pyzotero = "1.5.18"
161192

162193
[tool.poetry.group.release.dependencies]
163-
# newrelic APM agent
194+
# Requirements to be installed on server deployments
164195
newrelic = "9.7.1"
165-
# uwsgi
166196
uwsgi = "2.0.24"
167197

168198

requirements.txt

Lines changed: 0 additions & 107 deletions
This file was deleted.

requirements/dev.txt

Lines changed: 0 additions & 38 deletions
This file was deleted.

requirements/release.txt

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)