From 3f0e6dde0d204df9146956987cecf2e526fce129 Mon Sep 17 00:00:00 2001 From: Madhur Tandon Date: Tue, 30 Jan 2024 13:44:49 +0530 Subject: [PATCH 1/3] use packages_dir --- .github/workflows/publish.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 66e6419b98a..ea05c9c3b96 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -29,13 +29,13 @@ jobs: run: | cd ./stubs && python3 setup.py sdist bdist_wheel --universal && cd - - name: Publish metaflow-stubs package - uses: pypa/gh-action-pypi-publish@9b8e7336db3f96a2939a3e9fa827c62f466ca60d # master + uses: pypa/gh-action-pypi-publish@release/v1.8 with: user: __token__ password: ${{ secrets.pypi_password }} - packages-dir: ./stubs/dist + packages_dir: ./stubs/dist - name: Publish metaflow package - uses: pypa/gh-action-pypi-publish@9b8e7336db3f96a2939a3e9fa827c62f466ca60d # master + uses: pypa/gh-action-pypi-publish@release/v1.8 with: user: __token__ password: ${{ secrets.pypi_password }} From c5aebdf053297f37b88aca986a1a031d843194b3 Mon Sep 17 00:00:00 2001 From: Madhur Tandon Date: Tue, 30 Jan 2024 13:55:43 +0530 Subject: [PATCH 2/3] add py_modules --- .github/workflows/publish.yml | 2 +- stubs/setup.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index ea05c9c3b96..edbb0435769 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -33,7 +33,7 @@ jobs: with: user: __token__ password: ${{ secrets.pypi_password }} - packages_dir: ./stubs/dist + packages-dir: ./stubs/dist - name: Publish metaflow package uses: pypa/gh-action-pypi-publish@release/v1.8 with: diff --git a/stubs/setup.py b/stubs/setup.py index e7e9feef79c..894eb717cc1 100644 --- a/stubs/setup.py +++ b/stubs/setup.py @@ -33,6 +33,7 @@ }, packages=["metaflow-stubs"], package_data={"metaflow-stubs": ["generated_for.txt", "py.typed", "**/*.pyi"]}, + py_modules=["metaflow-stubs"], install_requires=[f"metaflow=={version}"], - python_requires=">=3.5.2", + python_requires=">=3.7.0", ) From ff53b55167795af3f7c97a1233e4c673c9f59533 Mon Sep 17 00:00:00 2001 From: Madhur Tandon Date: Tue, 30 Jan 2024 14:02:44 +0530 Subject: [PATCH 3/3] use hash --- .github/workflows/publish.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index edbb0435769..df22b534085 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -29,13 +29,13 @@ jobs: run: | cd ./stubs && python3 setup.py sdist bdist_wheel --universal && cd - - name: Publish metaflow-stubs package - uses: pypa/gh-action-pypi-publish@release/v1.8 + uses: pypa/gh-action-pypi-publish@2f6f737ca5f74c637829c0f5c3acd0e29ea5e8bf #v1.8.11 with: user: __token__ password: ${{ secrets.pypi_password }} packages-dir: ./stubs/dist - name: Publish metaflow package - uses: pypa/gh-action-pypi-publish@release/v1.8 + uses: pypa/gh-action-pypi-publish@2f6f737ca5f74c637829c0f5c3acd0e29ea5e8bf #v1.8.11 with: user: __token__ password: ${{ secrets.pypi_password }}