data_pipeline_api 0.7.6__tar.gz → 0.7.7__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: data-pipeline-api
3
- Version: 0.7.6
3
+ Version: 0.7.7
4
4
  Summary: Python api to interact with the Fair Data Pipeline
5
5
  Home-page: https://www.fairdatapipeline.org/
6
6
  License: GNU General Public License v3.0
@@ -10,7 +10,6 @@ Author-email: ryan.field@glasgow.ac.uk
10
10
  Requires-Python: >=3.7.1,<3.11
11
11
  Classifier: License :: Other/Proprietary License
12
12
  Classifier: Programming Language :: Python :: 3
13
- Classifier: Programming Language :: Python :: 3.10
14
13
  Classifier: Programming Language :: Python :: 3.8
15
14
  Classifier: Programming Language :: Python :: 3.9
16
15
  Requires-Dist: PyYAML (>=6.0,<7.0)
@@ -225,7 +225,9 @@ def post_storage_root(
225
225
  """
226
226
  if "local" in data and data["local"]:
227
227
  data["root"] = "file://" + data["root"]
228
- if data["root"][-1] != "/":
228
+ if data["root"][-1] != os.sep:
229
+ data["root"] = data["root"] + os.sep
230
+ elif data["root"][-1] != "/":
229
231
  data["root"] = data["root"] + "/"
230
232
  return post_entry(url, "storage_root", data, token, api_version)
231
233
 
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "data_pipeline_api"
3
- version = "0.7.6"
3
+ version = "0.7.7"
4
4
  description = "Python api to interact with the Fair Data Pipeline"
5
5
  authors = [
6
6
  "Ryan J Field <ryan.field@glasgow.ac.uk>",
@@ -16,7 +16,7 @@ install_requires = \
16
16
 
17
17
  setup_kwargs = {
18
18
  'name': 'data-pipeline-api',
19
- 'version': '0.7.6',
19
+ 'version': '0.7.7',
20
20
  'description': 'Python api to interact with the Fair Data Pipeline',
21
21
  'long_description': "# pyDataPipeline\n\n[![pyDataPipeline](https://github.com/FAIRDataPipeline/pyDataPipeline/actions/workflows/pyDataPipeline.yaml/badge.svg?branch=dev)](https://github.com/FAIRDataPipeline/pyDataPipeline/actions/workflows/pyDataPipeline.yaml)\n[![codecov](https://codecov.io/gh/FAIRDataPipeline/pyDataPipeline/branch/dev/graph/badge.svg?token=Eax5AmrDxx)](https://codecov.io/gh/FAIRDataPipeline/pyDataPipeline)\n[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.5562602.svg)](https://doi.org/10.5281/zenodo.5562602)\n[![CII Best Practices](https://bestpractices.coreinfrastructure.org/projects/5461/badge)](https://bestpractices.coreinfrastructure.org/projects/5461)\n\nWelcome to pyDataPipeline a Python api to interact with the Fair Data Pipeline.\n\nFull documention of the pyDataPipeline is avaialable at [https://www.fairdatapipeline.org/pyDataPipeline/](https://www.fairdatapipeline.org/pyDataPipeline/)\n\n## Installation\npyDataPipeline can be installed from PyPi:\n```\npip3 install data-pipeline-api\n```\n\nOr from the Repository:\n```\ngit clone https://github.com/FAIRDataPipeline/pythonFDP.git\n\ngit checkout dev\n\npip3 install -e .\n```\n**NB. PyDataPipeline requires Python3.**\n\n## Example submission_script\n\nAssume FDP_CONFIG_DIR, storage_locations and objects have been set by CLI tool\n\n```\nimport os\nimport fairdatapipeline as pipeline\n\ntoken = os.environ['FDP_LOCAL_TOKEN']\nconfig_dir = os.environ['FDP_CONFIG_DIR']\nconfig_path = os.path.join(config_dir, 'config.yaml')\nscript_path = os.path.join(config_dir, 'script.sh')\n\nhandle = pipeline.initialise(token, config_path, script_path)\n\npipeline.finalise(token, handle)\n\n```\n\n## SEIRS Model Example\n\nThe SEIRS Model Example is available at: [https://www.fairdatapipeline.org/pyDataPipeline/examples/SEIRS.html](https://www.fairdatapipeline.org/pyDataPipeline/examples/SEIRS.html)\n",
22
22
  'author': 'Ryan J Field',