You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by yu...@apache.org on 2024/02/08 01:26:29 UTC
(thrift) branch test-pypi created (now c7a8762de)
This is an automated email from the ASF dual-hosted git repository.
yuxuan pushed a change to branch test-pypi
in repository https://gitbox.apache.org/repos/asf/thrift.git
at c7a8762de THRIFT-5688: DONOTMERGE: Test PyPI publishing
This branch includes the following new commits:
new c7a8762de THRIFT-5688: DONOTMERGE: Test PyPI publishing
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
(thrift) 01/01: THRIFT-5688: DONOTMERGE: Test PyPI publishing
Posted by yu...@apache.org.
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 <yu...@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"),