Skip to content
Snippets Groups Projects
Commit 9865dbb9 authored by Marco Del Tufo's avatar Marco Del Tufo
Browse files

Merge branch 'master' of https://sissource.ethz.ch/sispub/openbis

parents ba14c28e 3003c74b
No related branches found
No related tags found
1 merge request!40SSDM-13578 : 2PT : Database and V3 Implementation - include the new AFS "free"...
## Changes with pybis-1.35.11
- Improvements to dataset upload performance
## Changes with pybis-1.35.10 ## Changes with pybis-1.35.10
- Fixed issue with changing properties for linked datasets - Fixed issue with changing properties for linked datasets
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
name = "pybis" name = "pybis"
__author__ = "ID SIS • ETH Zürich" __author__ = "ID SIS • ETH Zürich"
__email__ = "openbis-support@id.ethz.ch" __email__ = "openbis-support@id.ethz.ch"
__version__ = "1.35.10" __version__ = "1.35.11"
from . import pybis from . import pybis
from .pybis import DataSet from .pybis import DataSet
......
...@@ -1245,9 +1245,14 @@ class DataSetUploadQueue: ...@@ -1245,9 +1245,14 @@ class DataSetUploadQueue:
file_size = os.path.getsize(filename) file_size = os.path.getsize(filename)
if self.multipart is True: if self.multipart is True:
file = {filename: open(filename, "rb")} from requests_toolbelt.multipart.encoder import MultipartEncoder
resp = requests.post(upload_url, files=file, verify=verify_certificates) with open(filename, "rb") as f:
resp.raise_for_status() m = MultipartEncoder(
fields={filename: (filename, f, 'application/octet-stream')})
headers = {'Content-Type': m.content_type}
r = requests.post(upload_url, data=m, headers=headers,
verify=verify_certificates)
r.raise_for_status()
else: else:
# upload the file to our DSS session workspace # upload the file to our DSS session workspace
with open(filename, "rb") as f: with open(filename, "rb") as f:
......
[metadata] [metadata]
name = PyBIS name = PyBIS
version = 1.35.10 version = 1.35.11
author = ID SIS • ETH Zürich author = ID SIS • ETH Zürich
author_email = openbis-support@id.ethz.ch author_email = openbis-support@id.ethz.ch
license = Apache Software License Version 2.0 license = Apache Software License Version 2.0
......
...@@ -26,7 +26,7 @@ with open("README.md", "r", encoding="utf-8") as fh: ...@@ -26,7 +26,7 @@ with open("README.md", "r", encoding="utf-8") as fh:
setup( setup(
name="PyBIS", name="PyBIS",
version="1.35.10", version="1.35.11",
author="ID SIS • ETH Zürich", author="ID SIS • ETH Zürich",
author_email="openbis-support@id.ethz.ch", author_email="openbis-support@id.ethz.ch",
description="openBIS connection and interaction, optimized for using with Jupyter", description="openBIS connection and interaction, optimized for using with Jupyter",
......
...@@ -27,7 +27,7 @@ class TestCase(testcase.TestCase): ...@@ -27,7 +27,7 @@ class TestCase(testcase.TestCase):
self.openbisController = self.createOpenbisController() self.openbisController = self.createOpenbisController()
self.openbisController.allUp() self.openbisController.allUp()
# run tests # run tests
util.executeCommand(['pytest', '--junitxml=test_results_pybis.xml', util.executeCommand(['pytest', '--verbose', '--junitxml=test_results_pybis.xml',
'api-openbis-python3-pybis/src/python/tests']) 'api-openbis-python3-pybis/src/python/tests'])
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* Added recursive search to object and data_set search commands * Added recursive search to object and data_set search commands
* Updated documentation regarding authentication * Updated documentation regarding authentication
* Added dataset ids to sample search results * Added dataset ids to sample search results
* changed pybis dependency to version == 1.35.10 * changed pybis dependency to version == 1.35.11
# New in version 0.4.1 # New in version 0.4.1
......
...@@ -14,6 +14,6 @@ ...@@ -14,6 +14,6 @@
# #
__author__ = "ID SIS • ETH Zürich" __author__ = "ID SIS • ETH Zürich"
__email__ = "openbis-support@id.ethz.ch" __email__ = "openbis-support@id.ethz.ch"
__version__ = "0.4.2rc5" __version__ = "0.4.2rc6"
from .dm import * from .dm import *
...@@ -31,7 +31,7 @@ data_files = [ ...@@ -31,7 +31,7 @@ data_files = [
setup( setup(
name="obis", name="obis",
version="0.4.2rc5", version="0.4.2rc6",
description="Local data management with assistance from OpenBIS.", description="Local data management with assistance from OpenBIS.",
long_description=long_description, long_description=long_description,
long_description_content_type="text/markdown", long_description_content_type="text/markdown",
...@@ -42,7 +42,7 @@ setup( ...@@ -42,7 +42,7 @@ setup(
packages=["obis", "obis.dm", "obis.dm.commands", "obis.scripts"], packages=["obis", "obis.dm", "obis.dm.commands", "obis.scripts"],
data_files=data_files, data_files=data_files,
package_data={"obis": ["dm/git-annex-attributes"]}, package_data={"obis": ["dm/git-annex-attributes"]},
install_requires=["pyOpenSSL", "pytest", "pybis==1.35.10", "click"], install_requires=["pyOpenSSL", "pytest", "pybis==1.35.11", "click"],
entry_points={"console_scripts": ["obis=obis.scripts.cli:main"]}, entry_points={"console_scripts": ["obis=obis.scripts.cli:main"]},
zip_safe=False, zip_safe=False,
python_requires=">=3.3", python_requires=">=3.3",
......
...@@ -1540,4 +1540,4 @@ pt.save() ...@@ -1540,4 +1540,4 @@ pt.save()
Currently, the value of the `custom_widget` key can be set to either Currently, the value of the `custom_widget` key can be set to either
- `Spreadsheet` (for tabular, Excel-like data) - `Spreadsheet` (for tabular, Excel-like data)
- `Word Processor` (for rich text data) - `Word Processor` (for rich text data)
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment