You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by "kevinjqliu (via GitHub)" <gi...@apache.org> on 2025/02/03 00:30:41 UTC
[PR] [infra] add testpypi nightly build [iceberg-python]
kevinjqliu opened a new pull request, #1601:
URL: https://github.com/apache/iceberg-python/pull/1601
Had to setup [Publishing to PyPI with a Trusted Publisher](https://docs.pypi.org/trusted-publishers/) on https://test.pypi.org/
Using example of publishing [pyiceberg_core](https://github.com/apache/iceberg-rust/blob/8714ffd69c411990a89e1c3f03b51c33670f18ec/.github/workflows/release_python.yml#L120-L146) to testpypi
Here's a [run on my fork](https://github.com/kevinjqliu/iceberg-python/actions/runs/13103846291) which published to https://test.pypi.org/project/pyiceberg-kevinliu/
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
Re: [PR] [infra] add testpypi nightly build [iceberg-python]
Posted by "Fokko (via GitHub)" <gi...@apache.org>.
Fokko commented on code in PR #1601:
URL: https://github.com/apache/iceberg-python/pull/1601#discussion_r1941939426
##########
.github/workflows/nightly-pypi-build.yml:
##########
@@ -0,0 +1,89 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+name: "Nightly PyPI Build"
+
+on:
+ schedule:
+ - cron: "0 0 * * *" # Runs at midnight UTC every day
+ workflow_dispatch: # Allows manual triggering
+
+jobs:
+ set-version:
+ if: github.repository == 'apache/iceberg-python' # Only run for apache repo
+ runs-on: ubuntu-latest
+ outputs:
+ VERSION: ${{ steps.set-version.outputs.VERSION }}
+ RC: ${{ steps.set-version.outputs.RC }}
+ steps:
+ - uses: actions/checkout@v4
+ with:
+ fetch-depth: 1
+
+ - uses: actions/setup-python@v5
+ with:
+ python-version: 3.12
+
+ - name: Install Poetry
+ run: make install-poetry
+
+ - name: Extract version and rc
+ id: set-version
+ run: |
+ VERSION=$(poetry version --short)
+ RC="$(date +%Y%m%d)"
+ echo "VERSION=$VERSION" >> "$GITHUB_OUTPUT"
+ echo "RC=$RC" >> "$GITHUB_OUTPUT"
+
+ - name: Debug version and rc
+ run: echo "Publishing version ${{ steps.set-version.outputs.VERSION }}rc${{ steps.set-version.outputs.RC }}"
+
+ nightly-build:
+ needs: set-version
+ uses: ./.github/workflows/pypi-build-artifacts.yml
+ with:
+ version: ${{ needs.set-version.outputs.VERSION }} # i.e. 0.9.0
+ rc: ${{ needs.set-version.outputs.RC }} # i.e. 20250203
+
+ testpypi-publish:
+ name: Publish to TestPypi
+ needs:
+ - nightly-build
+ runs-on: ubuntu-latest
+ environment:
+ name: testpypi
+ url: https://test.pypi.org/p/pyiceberg
+
+ permissions:
+ id-token: write # IMPORTANT: mandatory for trusted publishing
+
+ steps:
+ - name: Download all the artifacts
+ uses: actions/download-artifact@v4
+ with:
+ merge-multiple: true
+ path: dist/
+ - name: List downloaded artifacts
+ run: ls -R dist/
Review Comment:
I was hoping that we could leave out this kind of debug statements. But it looks like the merge job doesn't mention the actual files: https://github.com/kevinjqliu/iceberg-python/actions/runs/13119881319/job/36603748563
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
Re: [PR] [infra] add testpypi nightly build [iceberg-python]
Posted by "Fokko (via GitHub)" <gi...@apache.org>.
Fokko commented on code in PR #1601:
URL: https://github.com/apache/iceberg-python/pull/1601#discussion_r1941938065
##########
.github/workflows/pypi-build-artifacts.yml:
##########
@@ -35,7 +35,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
- os: [ ubuntu-22.04, windows-2022, macos-13, macos-14, macos-15 ]
+ os: [ ubuntu-22.04, windows-2022, macos-13, macos-14 ]
Review Comment:
What's up with `macos-15`? :)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
Re: [PR] [infra] add testpypi nightly build [iceberg-python]
Posted by "Fokko (via GitHub)" <gi...@apache.org>.
Fokko commented on code in PR #1601:
URL: https://github.com/apache/iceberg-python/pull/1601#discussion_r1941936984
##########
.github/workflows/nightly-pypi-build.yml:
##########
@@ -0,0 +1,89 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+name: "Nightly PyPI Build"
+
+on:
+ schedule:
+ - cron: "0 0 * * *" # Runs at midnight UTC every day
+ workflow_dispatch: # Allows manual triggering
+
+jobs:
+ set-version:
+ if: github.repository == 'apache/iceberg-python' # Only run for apache repo
+ runs-on: ubuntu-latest
+ outputs:
+ VERSION: ${{ steps.set-version.outputs.VERSION }}
+ RC: ${{ steps.set-version.outputs.RC }}
Review Comment:
I find the term `RC` confusing here. How about simplifying this by not allow the user to set this, and also include the time. This is similar to Java: https://repository.apache.org/content/groups/snapshots/org/apache/iceberg/iceberg-core/1.8.0-SNAPSHOT/
This way we don't have to set this manually.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
Re: [PR] [infra] add testpypi nightly build [iceberg-python]
Posted by "Fokko (via GitHub)" <gi...@apache.org>.
Fokko commented on PR #1601:
URL: https://github.com/apache/iceberg-python/pull/1601#issuecomment-2635149393
@kevinjqliu This looks great! Thanks for working on it. Very nice how you re-use the build workflow. I left some small comments on how we can maybe simplify manual dispatch, apart from that it looks great. Let me know if you need any help with setting the credential, I think we need to do that through INFRA
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
Re: [PR] [infra] add testpypi nightly build [iceberg-python]
Posted by "kevinjqliu (via GitHub)" <gi...@apache.org>.
kevinjqliu commented on code in PR #1601:
URL: https://github.com/apache/iceberg-python/pull/1601#discussion_r1940084018
##########
.github/workflows/nightly-pypi-build.yml:
##########
@@ -0,0 +1,89 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+name: "Nightly PyPI Build"
+
+on:
+ schedule:
+ - cron: "0 0 * * *" # Runs at midnight UTC every day
+ workflow_dispatch: # Allows manual triggering
+
+jobs:
+ set-version:
+ if: github.repository == 'apache/iceberg-python' # Only run for apache repo
Review Comment:
verified that workflow is skipped on my forked repo
https://github.com/kevinjqliu/iceberg-python/actions/runs/13123573377
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
Re: [PR] [infra] add testpypi nightly build [iceberg-python]
Posted by "kevinjqliu (via GitHub)" <gi...@apache.org>.
kevinjqliu commented on PR #1601:
URL: https://github.com/apache/iceberg-python/pull/1601#issuecomment-2640181277

weird, i dont have `Manage` permission. let me ask sung to see how he did it for pyiceberg_core
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
Re: [PR] [infra] add testpypi nightly build [iceberg-python]
Posted by "Fokko (via GitHub)" <gi...@apache.org>.
Fokko commented on PR #1601:
URL: https://github.com/apache/iceberg-python/pull/1601#issuecomment-2640880595
@kevinjqliu I just bumped you to owner 👍
Let me check why it converts `rc` into `dev` for the artifacts
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
Re: [PR] [infra] add testpypi nightly build [iceberg-python]
Posted by "kevinjqliu (via GitHub)" <gi...@apache.org>.
kevinjqliu commented on PR #1601:
URL: https://github.com/apache/iceberg-python/pull/1601#issuecomment-2643370860
Thanks for your help here @Fokko
I [trigger the job manually on this repo](https://github.com/apache/iceberg-python/actions/runs/13203410879) and its now on testpypi! https://test.pypi.org/project/pyiceberg/#history
since we're using `.dev`, its marked as pre-release. in order to use it we have to specific `--pre`
```
pip install --index-url https://test.pypi.org/simple/ --pre pyiceberg
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
Re: [PR] [infra] add testpypi nightly build [iceberg-python]
Posted by "Fokko (via GitHub)" <gi...@apache.org>.
Fokko commented on code in PR #1601:
URL: https://github.com/apache/iceberg-python/pull/1601#discussion_r1946752350
##########
.github/workflows/pypi-build-artifacts.yml:
##########
@@ -35,7 +35,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
- os: [ ubuntu-22.04, windows-2022, macos-13, macos-14, macos-15 ]
+ os: [ ubuntu-22.04, windows-2022, macos-13, macos-14 ]
Review Comment:
Hmm, let's see if we can restore `macos-15` at a later moment
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
Re: [PR] [infra] add testpypi nightly build [iceberg-python]
Posted by "kevinjqliu (via GitHub)" <gi...@apache.org>.
kevinjqliu commented on code in PR #1601:
URL: https://github.com/apache/iceberg-python/pull/1601#discussion_r1944091552
##########
.github/workflows/pypi-build-artifacts.yml:
##########
@@ -35,7 +35,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
- os: [ ubuntu-22.04, windows-2022, macos-13, macos-14, macos-15 ]
+ os: [ ubuntu-22.04, windows-2022, macos-13, macos-14 ]
Review Comment:
macos-14, macos-15 are the same hardware so produce the same artifacts. i was getting some error uploading to pypi due to
```
pypi zipfile.BadZipFile: Bad magic number for central directory
```
removing macos-15 worked 🤷
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
Re: [PR] [infra] add testpypi nightly build [iceberg-python]
Posted by "kevinjqliu (via GitHub)" <gi...@apache.org>.
kevinjqliu commented on PR #1601:
URL: https://github.com/apache/iceberg-python/pull/1601#issuecomment-2640903507
oh wait @Fokko i think thats a false alarm. i was looking at a previous run which had the RC in the version. i yanked that one and now its back to normal https://test.pypi.org/project/pyiceberg-kevinliu/
the files also have `dev` in its name https://test.pypi.org/project/pyiceberg-kevinliu/#files
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
Re: [PR] [infra] add testpypi nightly build [iceberg-python]
Posted by "kevinjqliu (via GitHub)" <gi...@apache.org>.
kevinjqliu merged PR #1601:
URL: https://github.com/apache/iceberg-python/pull/1601
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
Re: [PR] [infra] add testpypi nightly build [iceberg-python]
Posted by "kevinjqliu (via GitHub)" <gi...@apache.org>.
kevinjqliu commented on PR #1601:
URL: https://github.com/apache/iceberg-python/pull/1601#issuecomment-2640876441
oh i see, only "owner" can make this change ([from pypi: `What collaborator roles are available for a project on PyPI?`](https://pypi.org/help/))
This is what it looks like for `pyiceberg-kevinliu`

So we should fill it out for `pyiceberg like so:
Owner: `apache` (?)
Repository name: `apache/iceberg-python`
Workflow name: `nightly-pypi-build.yml`
Environment name: `testpypi`
@Fokko can you check if you have permission to do so? otherwise, i can reach out to apache infra
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
Re: [PR] [infra] add testpypi nightly build [iceberg-python]
Posted by "kevinjqliu (via GitHub)" <gi...@apache.org>.
kevinjqliu commented on PR #1601:
URL: https://github.com/apache/iceberg-python/pull/1601#issuecomment-2640893364
Thanks! I couldnt find anything about the dev -> rc conversion.
I just added trusted publisher pyiceberg on testpypi

--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
Re: [PR] [infra] add testpypi nightly build [iceberg-python]
Posted by "Fokko (via GitHub)" <gi...@apache.org>.
Fokko commented on code in PR #1601:
URL: https://github.com/apache/iceberg-python/pull/1601#discussion_r1941937605
##########
.github/workflows/nightly-pypi-build.yml:
##########
@@ -0,0 +1,89 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+name: "Nightly PyPI Build"
+
+on:
+ schedule:
+ - cron: "0 0 * * *" # Runs at midnight UTC every day
+ workflow_dispatch: # Allows manual triggering
+
+jobs:
+ set-version:
+ if: github.repository == 'apache/iceberg-python' # Only run for apache repo
+ runs-on: ubuntu-latest
+ outputs:
+ VERSION: ${{ steps.set-version.outputs.VERSION }}
+ RC: ${{ steps.set-version.outputs.RC }}
+ steps:
+ - uses: actions/checkout@v4
+ with:
+ fetch-depth: 1
+
+ - uses: actions/setup-python@v5
+ with:
+ python-version: 3.12
+
+ - name: Install Poetry
+ run: make install-poetry
+
+ - name: Extract version and rc
+ id: set-version
+ run: |
+ VERSION=$(poetry version --short)
+ RC="$(date +%Y%m%d)"
+ echo "VERSION=$VERSION" >> "$GITHUB_OUTPUT"
+ echo "RC=$RC" >> "$GITHUB_OUTPUT"
+
+ - name: Debug version and rc
+ run: echo "Publishing version ${{ steps.set-version.outputs.VERSION }}rc${{ steps.set-version.outputs.RC }}"
+
+ nightly-build:
+ needs: set-version
+ uses: ./.github/workflows/pypi-build-artifacts.yml
+ with:
+ version: ${{ needs.set-version.outputs.VERSION }} # i.e. 0.9.0
+ rc: ${{ needs.set-version.outputs.RC }} # i.e. 20250203
+
+ testpypi-publish:
+ name: Publish to TestPypi
+ needs:
+ - nightly-build
+ runs-on: ubuntu-latest
+ environment:
+ name: testpypi
+ url: https://test.pypi.org/p/pyiceberg
Review Comment:
👍
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
Re: [PR] [infra] add testpypi nightly build [iceberg-python]
Posted by "kevinjqliu (via GitHub)" <gi...@apache.org>.
kevinjqliu commented on code in PR #1601:
URL: https://github.com/apache/iceberg-python/pull/1601#discussion_r1939655589
##########
.github/workflows/nightly-pypi-build.yml:
##########
@@ -0,0 +1,58 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+name: "Nightly PyPI Build"
+
+on:
+ schedule:
+ - cron: "0 0 * * *" # Runs at midnight UTC every day
+ workflow_dispatch: # Allows manual triggering
+
+jobs:
+ nightly-build:
+ uses: ./.github/workflows/pypi-build-artifacts.yml # Reference the PyPI build workflow
+ with:
+ VERSION: "0.0.0" # Generate nightly version
+ RC: "1" # Reset RC for nightly builds
+
+ testpypi-publish:
+ name: Publish to TestPypi
+ needs:
+ - nightly-build
+ runs-on: ubuntu-latest
+ environment:
+ name: testpypi
+ url: https://test.pypi.org/p/pyiceberg-kevinliu
Review Comment:
TODO: change this
##########
.github/workflows/nightly-pypi-build.yml:
##########
@@ -0,0 +1,58 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+name: "Nightly PyPI Build"
+
+on:
+ schedule:
+ - cron: "0 0 * * *" # Runs at midnight UTC every day
+ workflow_dispatch: # Allows manual triggering
+
+jobs:
+ nightly-build:
+ uses: ./.github/workflows/pypi-build-artifacts.yml # Reference the PyPI build workflow
+ with:
+ VERSION: "0.0.0" # Generate nightly version
Review Comment:
need to figure out a VERSION format that includes the date and also is PEP 440 compliant
##########
pyproject.toml:
##########
@@ -15,7 +15,7 @@
# specific language governing permissions and limitations
# under the License.
[tool.poetry]
-name = "pyiceberg"
+name = "pyiceberg-kevinliu"
Review Comment:
TODO change this
##########
.github/workflows/nightly-pypi-build.yml:
##########
@@ -0,0 +1,58 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+name: "Nightly PyPI Build"
+
+on:
+ schedule:
+ - cron: "0 0 * * *" # Runs at midnight UTC every day
+ workflow_dispatch: # Allows manual triggering
Review Comment:
TODO: gate on apache/iceberg repo
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
Re: [PR] [infra] add testpypi nightly build [iceberg-python]
Posted by "kevinjqliu (via GitHub)" <gi...@apache.org>.
kevinjqliu commented on code in PR #1601:
URL: https://github.com/apache/iceberg-python/pull/1601#discussion_r1939833519
##########
.github/workflows/nightly-pypi-build.yml:
##########
@@ -0,0 +1,58 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+name: "Nightly PyPI Build"
+
+on:
+ schedule:
+ - cron: "0 0 * * *" # Runs at midnight UTC every day
+ workflow_dispatch: # Allows manual triggering
+
+jobs:
+ nightly-build:
+ uses: ./.github/workflows/pypi-build-artifacts.yml # Reference the PyPI build workflow
+ with:
+ VERSION: "0.0.0" # Generate nightly version
Review Comment:
something like `0.9.0rc20250203` works...
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
Re: [PR] [infra] add testpypi nightly build [iceberg-python]
Posted by "kevinjqliu (via GitHub)" <gi...@apache.org>.
kevinjqliu commented on PR #1601:
URL: https://github.com/apache/iceberg-python/pull/1601#issuecomment-2631744330
@Fokko can you take a look at the general flow? I tested in my fork. WYDT about setting the version to `0.9.0rc20250203`?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
Re: [PR] [infra] add testpypi nightly build [iceberg-python]
Posted by "kevinjqliu (via GitHub)" <gi...@apache.org>.
kevinjqliu commented on PR #1601:
URL: https://github.com/apache/iceberg-python/pull/1601#issuecomment-2638864904
@Fokko i refactor the code to remove `RC`, thanks for the suggestion!
I was able to rerun on my fork and published to [pyiceberg-kevinliu 0.9.0rc20250203](https://test.pypi.org/project/pyiceberg-kevinliu/) (I guess pypi changes .dev to rc??)
For setting up trusted publisher, its configured on testpypi. I see you're the maintainer for [testpypi pyiceberg](https://test.pypi.org/project/pyiceberg/), the setting is at https://test.pypi.org/manage/project/pyiceberg/settings/publishing/
Or you can add me and i can configure it
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
Re: [PR] [infra] add testpypi nightly build [iceberg-python]
Posted by "kevinjqliu (via GitHub)" <gi...@apache.org>.
kevinjqliu commented on code in PR #1601:
URL: https://github.com/apache/iceberg-python/pull/1601#discussion_r1944116682
##########
.github/workflows/nightly-pypi-build.yml:
##########
@@ -0,0 +1,89 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+name: "Nightly PyPI Build"
+
+on:
+ schedule:
+ - cron: "0 0 * * *" # Runs at midnight UTC every day
+ workflow_dispatch: # Allows manual triggering
+
+jobs:
+ set-version:
+ if: github.repository == 'apache/iceberg-python' # Only run for apache repo
Review Comment:
new run https://github.com/kevinjqliu/iceberg-python/actions/runs/13172235318
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org