Skip to content

Commit

Permalink
Merge branch 'develop' into feature/b-and-i-24-14
Browse files Browse the repository at this point in the history
 * Resolve outstanding conflicts and prior bad merges.
  • Loading branch information
felliott committed Aug 16, 2024
2 parents 9d02957 + 3920a29 commit c468eaa
Show file tree
Hide file tree
Showing 23 changed files with 8 additions and 184 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
uses: actions/cache@v2
with:
path: ~/.cache
key: reqs_${{ hashFiles('**/requirements.txt') }}
key: reqs_${{ hashFiles('**/pyproject.toml') }}
restore-keys: reqs
- run: |
mkdir -p ~/.cache/downloads
Expand Down
1 change: 0 additions & 1 deletion addons/bitbucket/requirements.txt

This file was deleted.

5 changes: 0 additions & 5 deletions addons/boa/requirements.txt

This file was deleted.

1 change: 0 additions & 1 deletion addons/box/requirements.txt

This file was deleted.

3 changes: 0 additions & 3 deletions addons/dataverse/requirements.txt

This file was deleted.

1 change: 0 additions & 1 deletion addons/dropbox/requirements.txt

This file was deleted.

1 change: 0 additions & 1 deletion addons/figshare/requirements.txt

This file was deleted.

3 changes: 0 additions & 3 deletions addons/github/requirements.txt

This file was deleted.

1 change: 0 additions & 1 deletion addons/gitlab/requirements.txt

This file was deleted.

2 changes: 0 additions & 2 deletions addons/mendeley/requirements.txt

This file was deleted.

Empty file removed addons/onedrive/requirements.txt
Empty file.
2 changes: 0 additions & 2 deletions addons/owncloud/requirements.txt

This file was deleted.

1 change: 0 additions & 1 deletion addons/s3/requirements.txt

This file was deleted.

1 change: 0 additions & 1 deletion addons/twofactor/requirements.txt

This file was deleted.

1 change: 0 additions & 1 deletion addons/wiki/requirements.txt

This file was deleted.

1 change: 0 additions & 1 deletion addons/zotero/requirements.txt

This file was deleted.

4 changes: 2 additions & 2 deletions api/base/utils.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from furl import furl
from urllib.parse import urlunsplit, urlsplit, parse_qs, urlencode, quote
from urllib.parse import urlunsplit, urlsplit, parse_qs, urlencode
from packaging.version import Version
from hashids import Hashids

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

Expand Down
2 changes: 1 addition & 1 deletion api_tests/nodes/views/test_node_draft_registration_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ def test_type_is_draft_registrations(self, app, user, metaschema_open_ended, url
assert res.status_code == 409

def test_admin_can_create_draft(
self, app, user, project_public, url_draft_registrations, payload, metaschema_open_ended
self, app, user, project_public, url_draft_registrations, payload, metaschema_open_ended
):
res = app.post_json_api(
f'{url_draft_registrations}&embed=branched_from&embed=initiator',
Expand Down
2 changes: 1 addition & 1 deletion api_tests/users/views/test_user_draft_registration_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def test_cannot_access_other_users_draft_registration(self, app, user, other_adm
assert res.status_code == 403

def test_can_access_own_draft_registrations_with_guid(self, app, user, draft_registration):
url = '/{}users/{}/draft_registrations/'.format(API_BASE, user._id)
url = f'/{API_BASE}users/{user._id}/draft_registrations/'
res = app.get(url, auth=user.auth, expect_errors=True)
assert res.status_code == 200
assert len(res.json['data']) == 1
5 changes: 3 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -358,15 +358,16 @@ services:
- /bin/bash
- -c
- python -m venv /tmp/venv
&& /tmp/venv/bin/pip install poetry==1.8.0 &&
&& /tmp/venv/bin/pip install poetry==1.8.3 &&
/tmp/venv/bin/poetry install --no-root --without release --compile --sync &&
rm -rf /python3.12/* &&
cp -Rf -p /usr/local/lib/python3.12 /
restart: 'no'
environment:
DJANGO_SETTINGS_MODULE: api.base.settings
volumes:
- ./:/code:cached
- ./pyproject.toml:/code/pyproject.toml
- ./poetry.lock:/code/poetry.lock
- osf_requirements_3_12_vol:/python3.12

assets:
Expand Down
107 changes: 0 additions & 107 deletions requirements.txt

This file was deleted.

38 changes: 0 additions & 38 deletions requirements/dev.txt

This file was deleted.

8 changes: 0 additions & 8 deletions requirements/release.txt

This file was deleted.

0 comments on commit c468eaa

Please sign in to comment.