Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
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/
packages-dir: lib/py/dist/

2 changes: 1 addition & 1 deletion lib/py/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
Expand Down