This is an automated email from the ASF dual-hosted git repository. yuxuan pushed a commit to branch test-pypi in repository https://gitbox.apache.org/repos/asf/thrift.git
commit c7a8762dedd2956c229fbef9c89f5805ee21df11 Author: Yuxuan 'fishy' Wang <yuxuan.w...@reddit.com> AuthorDate: Wed Feb 7 17:25:16 2024 -0800 THRIFT-5688: DONOTMERGE: Test PyPI publishing --- .github/workflows/pypi.yml | 33 +++++++++++++++++++++++++++++++++ lib/py/setup.py | 2 +- 2 files changed, 34 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pypi.yml b/.github/workflows/pypi.yml new file mode 100644 index 000000000..af50505cf --- /dev/null +++ b/.github/workflows/pypi.yml @@ -0,0 +1,33 @@ +name: "PyPI publishing" + +on: + pull_request: + branches: ["*"] + +jobs: + pypi-publish: + name: upload release to PyPI + runs-on: ubuntu-latest + # Specifying a GitHub environment is optional, but strongly encouraged + environment: release + permissions: + # IMPORTANT: this permission is mandatory for trusted publishing + id-token: write + steps: + - uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: "3.8" + + - name: Build + run: | + cd lib/py + python setup.py sdist + + - name: Publish package distributions to PyPI + uses: pypa/gh-action-pypi-publish@release/v1 + with: + repository-url: https://test.pypi.org/legacy/ + diff --git a/lib/py/setup.py b/lib/py/setup.py index 31e2bae32..3a0ec4164 100644 --- a/lib/py/setup.py +++ b/lib/py/setup.py @@ -104,7 +104,7 @@ def run_setup(with_binary): tornado_deps = ['tornado>=4.0'] twisted_deps = ['twisted'] - setup(name='thrift', + setup(name='thrift-test', version='0.21.0', description='Python bindings for the Apache Thrift RPC system', long_description=read_file("README.md"),