From 2bdfa97065a695f1facc149aaa74f49a033fc1ce Mon Sep 17 00:00:00 2001 From: "Oriol.Tinto" <oriol.tinto@physik.uni-muenchen.de> Date: Mon, 17 Apr 2023 11:59:10 +0000 Subject: [PATCH] Fix CI publishing. --- .gitlab-ci.yml | 4 ++-- VERSION | 2 +- enstools/encoding/variable_encoding.py | 13 +++++++++++++ 3 files changed, 16 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a01dc6a..c4d80d9 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -27,7 +27,7 @@ deploy-to-testpypi: script: - pip install twine - python setup.py sdist bdist_wheel - - twine upload -u $PYPI_TEST_USER -p $PYPI_TEST_PASSWORD --repository-url https://test.pypi.org/legacy/ --skip-existing dist/* + - twine upload -u "__token__" -p "$PYPI_TEST_PASSWORD" --repository-url https://test.pypi.org/legacy/ --skip-existing dist/* install-from-testpypi: stage: test_install @@ -55,4 +55,4 @@ deploy-to-pypi: script: - pip install twine - python setup.py sdist bdist_wheel - - twine upload -u $PYPI_USERNAME -p $PYPI_PASSWORD --skip-existing dist/* \ No newline at end of file + - twine upload -u "__token__" -p "$PYPI_PASSWORD" --skip-existing dist/* \ No newline at end of file diff --git a/VERSION b/VERSION index f416694..16df2af 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -2023.4 \ No newline at end of file +2023.4.1 \ No newline at end of file diff --git a/enstools/encoding/variable_encoding.py b/enstools/encoding/variable_encoding.py index b9ef7f3..9691946 100644 --- a/enstools/encoding/variable_encoding.py +++ b/enstools/encoding/variable_encoding.py @@ -54,6 +54,19 @@ class Encoding(_Mapping): def __repr__(self): return f"{self.__class__.__name__}({self.to_string()})" + + def set_chunk_sizes(self, chunk_sizes: tuple) -> None: + """ + Method to add chunksizes into the encoding dictionary. + Parameters + ---------- + chunk_sizes + + Returns + ------- + + """ + self._kwargs["chunksizes"] = chunk_sizes def set_chunk_sizes(self, chunk_sizes: tuple) -> None: """ -- GitLab