diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 66e6419b98a..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@9b8e7336db3f96a2939a3e9fa827c62f466ca60d # master + 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@9b8e7336db3f96a2939a3e9fa827c62f466ca60d # master + uses: pypa/gh-action-pypi-publish@2f6f737ca5f74c637829c0f5c3acd0e29ea5e8bf #v1.8.11 with: user: __token__ password: ${{ secrets.pypi_password }} 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", )