Skip to content

Commit

Permalink
Merge pull request #19 from BNL-ATF/doc-release-notes-v0.2.3
Browse files Browse the repository at this point in the history
DOC: release notes for v0.2.3
  • Loading branch information
mrakitin authored Aug 15, 2023
2 parents ba3b532 + b5a5026 commit 04685d8
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 25 deletions.
46 changes: 23 additions & 23 deletions .github/workflows/publish-pypi.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# This workflow will upload a Python Package using flit when a release is
# created. For more information see:
# https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
# This workflows will upload a Python Package when a release is created.
# For more information see:
# - https://docs.pypi.org/trusted-publishers/adding-a-publisher/
# - https://github.com/pypa/gh-action-pypi-publish

name: PyPI upload

Expand All @@ -12,28 +13,27 @@ jobs:
publish_pypi:
name: Publish package to PyPI
runs-on: ubuntu-latest
permissions:
id-token: write

steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install wheel twine setuptools
- name: Build package
run: |
set -vxeuo pipefail
python -m pip install --upgrade pip
pip install wheel setuptools
python setup.py sdist bdist_wheel
- name: Build and publish
env:
TWINE_USERNAME: __token__
# The PYPI_PASSWORD must be a pypi token with the "pypi-" prefix with sufficient permissions to upload this package
# https://pypi.org/help/#apitoken
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
run: |
python setup.py sdist bdist_wheel
twine upload dist/*
- name: Publish wheels to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: ./dist/
35 changes: 33 additions & 2 deletions docs/source/release-history.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,36 @@
Release History
===============

Initial Release (YYYY-MM-DD)
----------------------------
v0.2.3 (2023-08-15)
-------------------

Enabled manual startup of the testing CI workflow.
Added selection of cameras by name.


v0.2.2 (2023-07-14)
-------------------

Added ``napari`` viewer support.


v0.2.1 (2023-01-26)
-------------------

Added PyPI publishing workflow.
Added an option to save generated plots to a target directory.
Added an option to save MPL grid plots.


v0.2.0 (2023-01-24)
-------------------

Added a capability to use custom/predefined images for emulated cameras.


v0.1.0 (2022-12-16)
-------------------

This is an initial release of the Basler camera API integration with ophyd.

PyPI: https://pypi.org/project/ophyd-basler/0.1.0.

0 comments on commit 04685d8

Please sign in to comment.