diff --git a/.github/workflows/packages.yaml b/.github/workflows/packages.yaml index e4f9bac7..bc4039c4 100644 --- a/.github/workflows/packages.yaml +++ b/.github/workflows/packages.yaml @@ -1,5 +1,5 @@ # DO NOT EDIT! This file was automatically generated. -# Generated at: 2020-03-13T15:34:03.458067 +# Generated at: 2020-03-13T15:35:00.175928 # Generated by: './.github/workflows/generate-workflow' './.github/workflows/packages.yaml' -{"on": "release", "jobs": {"check-workflow": {"container": {"image": "python:3.7-slim"}, "steps": [{"uses": "actions/checkout@v2", "name": "Checkout Source"}, {"run": "pip install pyyaml\nif ./.github/workflows/generate-workflow ./.github/workflows/packages.yaml; then\n echo \"Workflow configuration is not up to date with template!\"\n exit 1\nfi\n", "name": "Check"}], "name": "Check Github Actions Workflow Configuration", "runs-on": "ubuntu-latest"}, "windows-packages": {"needs": ["check-workflow"], "strategy": {"matrix": {"python-version": ["pypy3"], "os": ["windows-latest"]}}, "steps": [{"run": "git config --global core.autocrlf false"}, {"uses": "actions/checkout@9a3a9ade8222dcdf9d3c77710b10df47ee7c7c89", "with": {"fetch-depth": 0, "submodules": "recursive"}}, {"run": "# We need tags to compute a version number.\ngit fetch --tags\n", "name": "Finish Checkout"}, {"run": "pip install wheel twine\n", "name": "Get Packaging Dependencies"}, {"run": "python setup.py bdist_wheel\n", "name": "Build Packages"}, {"run": "twine upload --repository pypi dist/*\n", "name": "Upload Packages", "env": {"TWINE_USERNAME": "__token__", "TWINE_PASSWORD": "${{ secrets.exarkun_pypi_api_key }}"}}], "name": "Build Windows Packages", "runs-on": "${{ matrix.os }}"}, "manylinux2010-packages": {"needs": ["check-workflow"], "strategy": {"matrix": {"python-version": ["pypy3"], "os": ["ubuntu-18.04"]}}, "steps": [{"uses": "actions/checkout@9a3a9ade8222dcdf9d3c77710b10df47ee7c7c89", "with": {"fetch-depth": 0, "submodules": "recursive"}}, {"run": "# We need tags to compute a version number.\ngit fetch --tags\n", "name": "Finish Checkout"}, {"run": "mv setup.py setup.py.orig\necho 'exec(open(\"/github/workspace/.github/workflows/manylinux2010-install-rust.py\").read())' > setup.py\ncat setup.py.orig >> setup.py\n", "name": "Inject Rust Installer"}, {"uses": "RalfG/python-wheels-manylinux-build@v0.2.2-manylinux2010_x86_64", "with": {"python-versions": "cp37-cp37m"}, "name": "Build a binary wheel and a source tarball"}, {"run": "mkdir -p dist\ncp wheelhouse/*manylinux2010*.whl dist/\n", "name": "Put packages where they can be found"}, {"run": "twine upload --repository pypi dist/*\n", "name": "Upload Packages", "env": {"TWINE_USERNAME": "__token__", "TWINE_PASSWORD": "${{ secrets.exarkun_pypi_api_key }}"}}], "name": "Build manylinux2010 Packages", "runs-on": "${{ matrix.os }}"}, "macos-packages": {"needs": ["check-workflow"], "strategy": {"matrix": {"python-version": ["pypy3"], "os": ["macos-latest"]}}, "steps": [{"uses": "actions/checkout@9a3a9ade8222dcdf9d3c77710b10df47ee7c7c89", "with": {"fetch-depth": 0, "submodules": "recursive"}}, {"run": "# We need tags to compute a version number.\ngit fetch --tags\n", "name": "Finish Checkout"}, {"run": "pip install wheel twine\n", "name": "Get Packaging Dependencies"}, {"run": "python setup.py bdist_wheel\n", "name": "Build Packages"}, {"run": "twine upload --repository pypi dist/*\n", "name": "Upload Packages", "env": {"TWINE_USERNAME": "__token__", "TWINE_PASSWORD": "${{ secrets.exarkun_pypi_api_key }}"}}], "name": "Build macOS Packages", "runs-on": "${{ matrix.os }}"}}, "name": "Build Python Packages"} \ No newline at end of file +{"on": "release", "jobs": {"check-workflow": {"container": {"image": "python:3.7-slim"}, "steps": [{"uses": "actions/checkout@v2", "name": "Checkout Source"}, {"run": "pip install pyyaml\nif ./.github/workflows/generate-workflow ./.github/workflows/packages.yaml; then\n echo \"Workflow configuration is not up to date with template!\"\n exit 1\nfi\n", "name": "Check"}], "name": "Check Github Actions Workflow Configuration", "runs-on": "ubuntu-latest"}, "windows-packages": {"needs": ["check-workflow"], "strategy": {"matrix": {"python-version": ["pypy3"], "os": ["windows-latest"]}}, "steps": [{"run": "git config --global core.autocrlf false"}, {"uses": "actions/checkout@9a3a9ade8222dcdf9d3c77710b10df47ee7c7c89", "with": {"fetch-depth": 0, "submodules": "recursive"}}, {"run": "# We need tags to compute a version number.\ngit fetch --tags\n", "name": "Finish Checkout"}, {"run": "pip install wheel twine\n", "name": "Get Packaging Dependencies"}, {"run": "python setup.py bdist_wheel\n", "name": "Build Packages"}, {"run": "python -m twine upload --repository pypi dist/*\n", "name": "Upload Packages", "env": {"TWINE_USERNAME": "__token__", "TWINE_PASSWORD": "${{ secrets.exarkun_pypi_api_key }}"}}], "name": "Build Windows Packages", "runs-on": "${{ matrix.os }}"}, "manylinux2010-packages": {"needs": ["check-workflow"], "strategy": {"matrix": {"python-version": ["pypy3"], "os": ["ubuntu-18.04"]}}, "steps": [{"uses": "actions/checkout@9a3a9ade8222dcdf9d3c77710b10df47ee7c7c89", "with": {"fetch-depth": 0, "submodules": "recursive"}}, {"run": "# We need tags to compute a version number.\ngit fetch --tags\n", "name": "Finish Checkout"}, {"run": "mv setup.py setup.py.orig\necho 'exec(open(\"/github/workspace/.github/workflows/manylinux2010-install-rust.py\").read())' > setup.py\ncat setup.py.orig >> setup.py\n", "name": "Inject Rust Installer"}, {"uses": "RalfG/python-wheels-manylinux-build@v0.2.2-manylinux2010_x86_64", "with": {"python-versions": "cp37-cp37m"}, "name": "Build a binary wheel and a source tarball"}, {"run": "mkdir -p dist\ncp wheelhouse/*manylinux2010*.whl dist/\n", "name": "Put packages where they can be found"}, {"run": "python -m twine upload --repository pypi dist/*\n", "name": "Upload Packages", "env": {"TWINE_USERNAME": "__token__", "TWINE_PASSWORD": "${{ secrets.exarkun_pypi_api_key }}"}}], "name": "Build manylinux2010 Packages", "runs-on": "${{ matrix.os }}"}, "macos-packages": {"needs": ["check-workflow"], "strategy": {"matrix": {"python-version": ["pypy3"], "os": ["macos-latest"]}}, "steps": [{"uses": "actions/checkout@9a3a9ade8222dcdf9d3c77710b10df47ee7c7c89", "with": {"fetch-depth": 0, "submodules": "recursive"}}, {"run": "# We need tags to compute a version number.\ngit fetch --tags\n", "name": "Finish Checkout"}, {"run": "pip install wheel twine\n", "name": "Get Packaging Dependencies"}, {"run": "python setup.py bdist_wheel\n", "name": "Build Packages"}, {"run": "python -m twine upload --repository pypi dist/*\n", "name": "Upload Packages", "env": {"TWINE_USERNAME": "__token__", "TWINE_PASSWORD": "${{ secrets.exarkun_pypi_api_key }}"}}], "name": "Build macOS Packages", "runs-on": "${{ matrix.os }}"}}, "name": "Build Python Packages"} \ No newline at end of file diff --git a/.github/workflows/packages.yaml.template b/.github/workflows/packages.yaml.template index 2ce77a58..61571f16 100644 --- a/.github/workflows/packages.yaml.template +++ b/.github/workflows/packages.yaml.template @@ -33,7 +33,7 @@ anchors: # the project Settings page, find Secrets beneath it. TWINE_PASSWORD: "${{ secrets.exarkun_pypi_api_key }}" run: | - twine upload --repository pypi dist/* + python -m twine upload --repository pypi dist/* - &BDIST_WHEEL name: "Build Packages"