Skip to content
Merged
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
36 changes: 35 additions & 1 deletion .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,27 @@ on:
branches: [ main ]
types: [ opened, synchronize, reopened ]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}

jobs:
setup:
runs-on: ubuntu-latest
outputs:
is_release_build: ${{ env.RELEASE_BUILD == '1' }}
steps:
- name: Check for release build
if: startsWith(github.ref, 'refs/tags/')
run: |
echo "Build release for $GITHUB_REF"
echo "RELEASE_BUILD=1" >> $GITHUB_ENV

build:
needs: setup
runs-on: ubuntu-latest

if: |
Expand Down Expand Up @@ -40,7 +59,22 @@ jobs:
name: pypylon-contrib-wheel
path: dist/*.whl

- name: Upload Release Asset
if: needs.setup.outputs.is_release_build == 'true'
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
files: dist/*

- name: Publish package to PyPI
if: needs.setup.outputs.is_release_build == 'true' && startsWith( matrix.p, 'manylinux' )
run: |
sudo pip3 install twine
python3 -m twine upload --non-interactive --skip-existing dist/*

test:
needs: setup
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -60,7 +94,7 @@ jobs:
pytest tests

lint:

needs: setup
runs-on: ubuntu-latest
strategy:
matrix:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
![pypylon](https://github.com/basler/pypylon-samples/blob/a22ab135a34e815fdde3ef3431b868617de6f712/docs/images/Pypylon_grey_RZ_400px.png "pypylon")
![pypylon](https://raw.githubusercontent.com/basler/pypylon-samples/a22ab135a34e815fdde3ef3431b868617de6f712/docs/images/Pypylon_grey_RZ_400px.png "pypylon")

Sample applications and jupyter notebooks using the official python wrapper for the Basler pylon Camera Software Suite.

Expand Down
8 changes: 8 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Version 0.1.1rc1
- Date 2025-09-15
- Added CI and changelog, initial release on PyPI
- Update README.md

Version 0.1.0
- Date 2025-08-25
- Initial release