diff --git a/.github/workflows/deploy_to_pypi.yml b/.github/workflows/deploy_to_pypi.yml index 74ed38b4..5b0e0910 100644 --- a/.github/workflows/deploy_to_pypi.yml +++ b/.github/workflows/deploy_to_pypi.yml @@ -1,29 +1,25 @@ -# This workflows will upload a Python Package using Twine when a release is created -# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries - -name: Upload Python Package to pypi +name: Upload Python Package to PyPI on: workflow_dispatch jobs: deploy: - runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - name: Set up Python - uses: actions/setup-python@v2 - with: - python-version: '3.8' - - name: Install dependencies - run: | - pip install setuptools wheel twine - if [ -f requirements.txt ]; then pip install -r requirements.txt; fi - - name: Build and publish - env: - TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} - TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} - run: | - python setup.py sdist bdist_wheel - twine upload dist/* + - uses: actions/checkout@v3 + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: "3.10" + - name: Install dependencies + run: | + pip install setuptools wheel twine + if [ -f requirements.txt ]; then pip install -r requirements.txt; fi + - name: Build and publish to PyPI + env: + TWINE_USERNAME: "__token__" + TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }} + run: | + python setup.py sdist bdist_wheel + twine upload dist/* diff --git a/.github/workflows/deploy_to_test_pypi.yml b/.github/workflows/deploy_to_test_pypi.yml index 101f82c2..82ed3bf9 100644 --- a/.github/workflows/deploy_to_test_pypi.yml +++ b/.github/workflows/deploy_to_test_pypi.yml @@ -1,7 +1,4 @@ -# This workflows will upload a Python Package using Twine when a release is created -# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries - -name: Upload Python Package to testpypi +name: Upload Python Package to Test PyPI on: workflow_dispatch: @@ -13,19 +10,19 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Set up Python - uses: actions/setup-python@v2 + uses: actions/setup-python@v4 with: - python-version: 3.8 + python-version: "3.10" - name: Install dependencies run: | pip install setuptools wheel twine if [ -f requirements.txt ]; then pip install -r requirements.txt; fi - - name: Build and publish + - name: Build and publish to Test PyPI env: - TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} - TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} + TWINE_USERNAME: "__token__" + TWINE_PASSWORD: ${{ secrets.TEST_PYPI_TOKEN }} run: | python setup.py sdist bdist_wheel - twine upload -r testpypi dist/* + twine upload -r testpypi dist/* \ No newline at end of file diff --git a/docs/source/conf.py b/docs/source/conf.py index a42227d3..34549f41 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -22,7 +22,7 @@ author = "ESA Advanced Concepts Team" # The full version, including alpha/beta/rc tags -release = "0.4.0" +release = "0.4.1" # -- General configuration --------------------------------------------------- diff --git a/setup.py b/setup.py index 936b1656..8e9c5468 100644 --- a/setup.py +++ b/setup.py @@ -9,7 +9,7 @@ setup( name="torchquad", - version="0.4.0", + version="0.4.1", description="Package providing torch-based numerical integration methods.", long_description=open("README.md").read(), long_description_content_type="text/markdown",