Skip to content

Commit

Permalink
allow anonymous uploads
Browse files Browse the repository at this point in the history
  • Loading branch information
mam10eks committed Dec 2, 2024
1 parent 858ea2e commit 1b9d246
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion python-client/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
build-pypi-package: run-tests
python3 -m build --sdist .
python3 -m build --wheel .
twine upload dist/tira-0.0.137-py3-none-any.whl dist/tira-0.0.137.tar.gz
twine upload dist/tira-0.0.138-py3-none-any.whl dist/tira-0.0.138.tar.gz

run-tests:
docker run -u root --rm -v /var/run/docker.sock:/var/run/docker.sock -v ${PWD}:/app -w /app --entrypoint pytest webis/tira:python-client-dev-0.0.5
Expand Down
2 changes: 1 addition & 1 deletion python-client/tira/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.0.137"
__version__ = "0.0.138"
3 changes: 1 addition & 2 deletions python-client/tira/rest_api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -784,8 +784,7 @@ def upload_run_anonymous(self, file_path: Path, dataset_id: str):
resp = requests.post(
url=f"{self.base_url}/api/v1/anonymous-uploads/{upload_to_tira['dataset_id']}",
files=files,
headers=headers,
verify=False,
headers=headers
)

if resp.status_code not in {200, 202}:
Expand Down

0 comments on commit 1b9d246

Please sign in to comment.