4848 python-version : ['3_8', '3_9', '3_10', '3_11']
4949 steps :
5050 - uses : actions/checkout@v4
51+ # configuring python for bazel abi and platform repo rules
52+ - name : Set up Python
53+ uses : actions/setup-python@v5
54+ with :
55+ python-version : ' 3.11'
56+ - name : Python deps
57+ run : |
58+ python -m pip install --upgrade pip
59+ pip install --upgrade packaging
5160 - name : Run tests nix
5261 timeout-minutes : 30
5362 run : bazel test --test_output=all //private_set_intersection/python:test_${{ matrix.python-version }}
99108 matrix :
100109 # Handling boundary conditions of: https://github.com/pypa/manylinux
101110 python-version : ['3.8.0', '3.8.4', '3.9.0']
102- os : [ubuntu-20.04]
111+ os : [ubuntu-20.04, macos-12 ]
103112 steps :
104113 - uses : actions/checkout@v4
105114 - name : Set up Python
@@ -112,18 +121,17 @@ jobs:
112121 TWINE_PASSWORD : ${{ secrets.OM_PSI_PYPI_TOKEN }}
113122 run : |
114123 python -m pip install --upgrade pip
115- pip install twine packaging
116- bazel build -c opt //private_set_intersection/python:wheel
117- python private_set_intersection/python/rename.py
118- twine upload --skip-existing bazel-bin/private_set_intersection/python/openmined_psi-*
124+ pip install --upgrade packaging
125+ bazel run -c opt //private_set_intersection/python:wheel.publish -- --verbose --skip-existing
126+
119127 Publish-python :
120128 needs : [Core, JS, Go, Python, Rust]
121129 if : ${{ github.event_name == 'release' }}
122130 runs-on : ${{ matrix.os }}
123131 strategy :
124132 matrix :
125133 python-version : ['3.8', '3.9', '3.10', '3.11']
126- os : [ubuntu-24.04, ubuntu-22.04, ubuntu-20.04, macos-14]
134+ os : [ubuntu-24.04, ubuntu-22.04, ubuntu-20.04, macos-14, macos-12 ]
127135 steps :
128136 - uses : actions/checkout@v4
129137 - name : Set up Python
@@ -136,7 +144,5 @@ jobs:
136144 TWINE_PASSWORD : ${{ secrets.OM_PSI_PYPI_TOKEN }}
137145 run : |
138146 python -m pip install --upgrade pip
139- pip install twine packaging
140- bazel build -c opt //private_set_intersection/python:wheel
141- python private_set_intersection/python/rename.py
142- twine upload --skip-existing bazel-bin/private_set_intersection/python/openmined_psi-*
147+ pip install --upgrade packaging
148+ bazel run -c opt //private_set_intersection/python:wheel.publish -- --verbose --skip-existing
0 commit comments