Skip to content

Commit

Permalink
Merge branch 'master' into wekeo20
Browse files Browse the repository at this point in the history
  • Loading branch information
GermanoGuerrini committed Feb 26, 2024
2 parents 74791f4 + e89a2eb commit bf7e87d
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 8 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
fail-fast: false
matrix:
platform: ["ubuntu-latest", "macos-latest", "windows-latest"]
python-version: ["3.7", "3.8", "3.9"]
python-version: ["3.10", "3.11"]

name: Python ${{ matrix.python-version }} on ${{ matrix.platform }}
runs-on: ${{ matrix.platform }}
Expand Down Expand Up @@ -68,7 +68,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
python-version: '3.10'

- name: Check that tag version matches code version
run: |
Expand All @@ -84,8 +84,10 @@ jobs:
pip install setuptools wheel twine
- name: Build and publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
TWINE_USERNAME: "__token__"
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
#TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
#TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python setup.py sdist
twine upload dist/*
4 changes: 4 additions & 0 deletions docs/source/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ Version 2.0
-----------
* Updated version compatible with HDA v2

Version 1.14
-------------
* The `download_dir` is created automatically

Version 1.13
-------------
* Minor documentation fixes
Expand Down
4 changes: 2 additions & 2 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
copyright = "2023, ECMWF"
author = "ECMWF"

release = "1.13"
version = "1.13"
release = "1.14"
version = "1.14"

# -- General configuration

Expand Down
4 changes: 3 additions & 1 deletion hda/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -719,8 +719,10 @@ def stream(self, download_id, size, download_dir):
"""
full = self.full_url(*[f"dataaccess/download/{download_id}"])

if download_dir is None or not os.path.exists(download_dir):
if download_dir is None:
download_dir = "."
else:
os.makedirs(download_dir, exist_ok=True)

logger.info(
"Downloading %s (%s)",
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def read(fname):
return io.open(file_path, encoding="utf-8").read()


version = "1.13"
version = "1.19"

setuptools.setup(
name="hda",
Expand Down

0 comments on commit bf7e87d

Please sign in to comment.