From 8918d7f0313a805c6a21ede0384d0c3d9ee7ccd5 Mon Sep 17 00:00:00 2001 From: jeriedel <60488812+jeriedel@users.noreply.github.com> Date: Tue, 15 Nov 2022 10:30:04 +0100 Subject: [PATCH 01/13] Create publish-to-testpypi.yml --- .github/workflows/publish-to-testpypi.yml | 41 +++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .github/workflows/publish-to-testpypi.yml diff --git a/.github/workflows/publish-to-testpypi.yml b/.github/workflows/publish-to-testpypi.yml new file mode 100644 index 0000000..e7eb29c --- /dev/null +++ b/.github/workflows/publish-to-testpypi.yml @@ -0,0 +1,41 @@ +# This workflow will upload a Python Package using Twine when a release is created +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries + +# This workflow uses actions that are not certified by GitHub. +# They are provided by a third-party and are governed by +# separate terms of service, privacy policy, and support +# documentation. + +name: Publish to TestPyPI repository + +on: + push: + branches: + - 'main' + +permissions: + contents: read + +jobs: + deploy: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Set up Python + uses: actions/setup-python@v3 + with: + python-version: '3.x' + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install build + - name: Build package + run: python -m build + - name: Publish package + uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29 + with: + user: __token__ + password: ${{ secrets.TEST_PYPI_API_TOKEN }} + repository_url: https://test.pypi.org/legacy/ From f9091980b6bcef61769fc29b3c24a9d6f6ee8ef0 Mon Sep 17 00:00:00 2001 From: jeriedel <60488812+jeriedel@users.noreply.github.com> Date: Tue, 15 Nov 2022 10:30:46 +0100 Subject: [PATCH 02/13] Delete publish-to-package-index --- .github/workflows/publish-to-package-index | 36 ---------------------- 1 file changed, 36 deletions(-) delete mode 100644 .github/workflows/publish-to-package-index diff --git a/.github/workflows/publish-to-package-index b/.github/workflows/publish-to-package-index deleted file mode 100644 index a882141..0000000 --- a/.github/workflows/publish-to-package-index +++ /dev/null @@ -1,36 +0,0 @@ -name: Publish every push to the master branch on TestPyPI -on: push -jobs: - build-and-publish: - name: Build and publish - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@master - - name: Set up Python 3.9 - - uses: actions/setup-python@v3 - with: - python-version: "3.9" - - name: Install pypa/build - run: >- - python -m - pip install - build - --user - - name: Build a binary wheel and a source tarball - run: >- - python -m - build - --sdist - --wheel - --outdir dist/ - . - - name: Publish distribution to TestPyPI - uses: pypa/gh-action-pypi-publish@release/v1 - with: - password: ${{ secrets.TEST_PYPI_API_TOKEN }} - repository_url: https://test.pypi.org/legacy/ - - name: Publish distribution to PyPI - if: startsWith(github.ref, 'refs/tags') - uses: pypa/gh-action-pypi-publish@release/v1 - with: - password: ${{ secrets.PYPI_API_TOKEN }} From d19858e9725200ff4cb95f92cc1d95a8f8693d04 Mon Sep 17 00:00:00 2001 From: jeriedel <60488812+jeriedel@users.noreply.github.com> Date: Tue, 15 Nov 2022 10:35:58 +0100 Subject: [PATCH 03/13] Update setup.cfg --- setup.cfg | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/setup.cfg b/setup.cfg index c9c0836..a185b07 100644 --- a/setup.cfg +++ b/setup.cfg @@ -5,6 +5,8 @@ author = Jerome Riedel, Patrick Gelß, Burkhard Schmidt author_email = burkhard.schmidt@fu-berlin.de description = Numerical quantum mechanics of chain-like systems based on tensor trains license = GNU v3.0 +long_description = file: README.md +long_description_content_type = text/markdown [options] packages = find: @@ -14,4 +16,4 @@ install_requires = numpy>=1.21.2 scikit_tt @ git+https://github.com/PGelss/scikit_tt.git scipy>=1.7.1 - sympy>=1.9 \ No newline at end of file + sympy>=1.9 From 7c70d3eb060a91af50c9689c572845be60f9ccb8 Mon Sep 17 00:00:00 2001 From: jeriedel <60488812+jeriedel@users.noreply.github.com> Date: Tue, 15 Nov 2022 15:18:43 +0100 Subject: [PATCH 04/13] Update publish-to-testpypi.yml --- .github/workflows/publish-to-testpypi.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish-to-testpypi.yml b/.github/workflows/publish-to-testpypi.yml index e7eb29c..357e546 100644 --- a/.github/workflows/publish-to-testpypi.yml +++ b/.github/workflows/publish-to-testpypi.yml @@ -36,6 +36,6 @@ jobs: - name: Publish package uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29 with: - user: __token__ + user: wave_train password: ${{ secrets.TEST_PYPI_API_TOKEN }} repository_url: https://test.pypi.org/legacy/ From 49f4f8267007811f35373e411b8a6474672bc90d Mon Sep 17 00:00:00 2001 From: jeriedel <60488812+jeriedel@users.noreply.github.com> Date: Tue, 15 Nov 2022 15:22:14 +0100 Subject: [PATCH 05/13] Update publish-to-testpypi.yml --- .github/workflows/publish-to-testpypi.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish-to-testpypi.yml b/.github/workflows/publish-to-testpypi.yml index 357e546..e7eb29c 100644 --- a/.github/workflows/publish-to-testpypi.yml +++ b/.github/workflows/publish-to-testpypi.yml @@ -36,6 +36,6 @@ jobs: - name: Publish package uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29 with: - user: wave_train + user: __token__ password: ${{ secrets.TEST_PYPI_API_TOKEN }} repository_url: https://test.pypi.org/legacy/ From 960c3eb5171576d78b78d2daa77150edcc2a5ed2 Mon Sep 17 00:00:00 2001 From: jeriedel <60488812+jeriedel@users.noreply.github.com> Date: Tue, 15 Nov 2022 15:29:19 +0100 Subject: [PATCH 06/13] Update publish-to-testpypi.yml --- .github/workflows/publish-to-testpypi.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish-to-testpypi.yml b/.github/workflows/publish-to-testpypi.yml index e7eb29c..a57c6ea 100644 --- a/.github/workflows/publish-to-testpypi.yml +++ b/.github/workflows/publish-to-testpypi.yml @@ -34,7 +34,7 @@ jobs: - name: Build package run: python -m build - name: Publish package - uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29 + uses: pypa/gh-action-pypi-publish@release/v1 with: user: __token__ password: ${{ secrets.TEST_PYPI_API_TOKEN }} From 6765d127a8b806845efcc03f035e6e1901cdbf35 Mon Sep 17 00:00:00 2001 From: jeriedel <60488812+jeriedel@users.noreply.github.com> Date: Tue, 15 Nov 2022 15:36:29 +0100 Subject: [PATCH 07/13] Update publish-to-testpypi.yml --- .github/workflows/publish-to-testpypi.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish-to-testpypi.yml b/.github/workflows/publish-to-testpypi.yml index a57c6ea..a42b1b1 100644 --- a/.github/workflows/publish-to-testpypi.yml +++ b/.github/workflows/publish-to-testpypi.yml @@ -38,4 +38,4 @@ jobs: with: user: __token__ password: ${{ secrets.TEST_PYPI_API_TOKEN }} - repository_url: https://test.pypi.org/legacy/ + repository: testpypi From 326676251fda3f70a8d177cba1f0882a93816985 Mon Sep 17 00:00:00 2001 From: jeriedel <60488812+jeriedel@users.noreply.github.com> Date: Tue, 15 Nov 2022 15:39:47 +0100 Subject: [PATCH 08/13] Update publish-to-testpypi.yml --- .github/workflows/publish-to-testpypi.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish-to-testpypi.yml b/.github/workflows/publish-to-testpypi.yml index a42b1b1..a57c6ea 100644 --- a/.github/workflows/publish-to-testpypi.yml +++ b/.github/workflows/publish-to-testpypi.yml @@ -38,4 +38,4 @@ jobs: with: user: __token__ password: ${{ secrets.TEST_PYPI_API_TOKEN }} - repository: testpypi + repository_url: https://test.pypi.org/legacy/ From 9e401b09e761c08c82354600ba8744e9f4d09fcf Mon Sep 17 00:00:00 2001 From: jeriedel <60488812+jeriedel@users.noreply.github.com> Date: Tue, 15 Nov 2022 15:59:12 +0100 Subject: [PATCH 09/13] Update setup.cfg --- setup.cfg | 1 - 1 file changed, 1 deletion(-) diff --git a/setup.cfg b/setup.cfg index a185b07..64b61bc 100644 --- a/setup.cfg +++ b/setup.cfg @@ -14,6 +14,5 @@ python_requires = >=3.7, <4 install_requires = matplotlib>=3.4.3 numpy>=1.21.2 - scikit_tt @ git+https://github.com/PGelss/scikit_tt.git scipy>=1.7.1 sympy>=1.9 From ba34ccb7075b8e304291f44c412ff6efeb4bbe46 Mon Sep 17 00:00:00 2001 From: jeriedel <60488812+jeriedel@users.noreply.github.com> Date: Tue, 15 Nov 2022 16:06:33 +0100 Subject: [PATCH 10/13] Update setup.cfg --- setup.cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.cfg b/setup.cfg index 64b61bc..406fdbb 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = wave_train -version = 0.1 +version = 0.1.1 author = Jerome Riedel, Patrick Gelß, Burkhard Schmidt author_email = burkhard.schmidt@fu-berlin.de description = Numerical quantum mechanics of chain-like systems based on tensor trains From f6e84bdfa01c5eaf1eb4467acd23c8d031419682 Mon Sep 17 00:00:00 2001 From: jeriedel <60488812+jeriedel@users.noreply.github.com> Date: Tue, 15 Nov 2022 16:12:00 +0100 Subject: [PATCH 11/13] Create pypi-publish.yml --- .github/workflows/pypi-publish.yml | 39 ++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/pypi-publish.yml diff --git a/.github/workflows/pypi-publish.yml b/.github/workflows/pypi-publish.yml new file mode 100644 index 0000000..bdaab28 --- /dev/null +++ b/.github/workflows/pypi-publish.yml @@ -0,0 +1,39 @@ +# This workflow will upload a Python Package using Twine when a release is created +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries + +# This workflow uses actions that are not certified by GitHub. +# They are provided by a third-party and are governed by +# separate terms of service, privacy policy, and support +# documentation. + +name: Upload Python Package + +on: + release: + types: [published] + +permissions: + contents: read + +jobs: + deploy: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Set up Python + uses: actions/setup-python@v3 + with: + python-version: '3.x' + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install build + - name: Build package + run: python -m build + - name: Publish package + uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29 + with: + user: __token__ + password: ${{ secrets.PYPI_API_TOKEN }} From a5f65cff811a923af1847403b8ed6a84c81d296d Mon Sep 17 00:00:00 2001 From: jeriedel <60488812+jeriedel@users.noreply.github.com> Date: Tue, 15 Nov 2022 16:26:19 +0100 Subject: [PATCH 12/13] Update pypi-publish.yml --- .github/workflows/pypi-publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pypi-publish.yml b/.github/workflows/pypi-publish.yml index bdaab28..547e4de 100644 --- a/.github/workflows/pypi-publish.yml +++ b/.github/workflows/pypi-publish.yml @@ -10,7 +10,7 @@ name: Upload Python Package on: release: - types: [published] + types: [created, published] permissions: contents: read From c1b56d3a659f5599d1af1195f71b7babdf562350 Mon Sep 17 00:00:00 2001 From: jeriedel <60488812+jeriedel@users.noreply.github.com> Date: Mon, 21 Nov 2022 13:40:55 +0100 Subject: [PATCH 13/13] Update setup.cfg --- setup.cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.cfg b/setup.cfg index 406fdbb..4c57e7d 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = wave_train -version = 0.1.1 +version = 1.0.0 author = Jerome Riedel, Patrick Gelß, Burkhard Schmidt author_email = burkhard.schmidt@fu-berlin.de description = Numerical quantum mechanics of chain-like systems based on tensor trains