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
4 changes: 0 additions & 4 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@ name: Docker

on:
workflow_dispatch:
push:
tags:
- v[0-9]+.[0-9]+.[0-9]+
- v[0-9]+.[0-9]+.[0-9]+-dev[0-9]+

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
name: PyPi

on:
push:
tags:
- v[0-9]+.[0-9]+.[0-9]+
- v[0-9]+.[0-9]+.[0-9]+-dev[0-9]+
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
Expand Down
45 changes: 45 additions & 0 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Release Please

on:
push:
branches:
- master

permissions:
contents: write
pull-requests: write

jobs:
release-please:
runs-on: ubuntu-latest
outputs:
release_created: ${{ steps.release.outputs.release_created }}
tag_name: ${{ steps.release.outputs.tag_name }}
steps:
- uses: googleapis/release-please-action@v4
id: release
with:
config-file: release-please-config.json
manifest-file: .release-please-manifest.json

# Tags/releases created with GITHUB_TOKEN do not trigger other workflows,
# so dispatch the publish workflows explicitly on the new tag.
trigger-publish:
needs: release-please
if: ${{ needs.release-please.outputs.release_created }}
runs-on: ubuntu-latest
permissions:
actions: write
steps:
- name: Trigger PyPI and Docker publish
uses: actions/github-script@v7
with:
script: |
for (const workflow_id of ['pypi.yml', 'docker.yml']) {
await github.rest.actions.createWorkflowDispatch({
owner: context.repo.owner,
repo: context.repo.repo,
workflow_id,
ref: '${{ needs.release-please.outputs.tag_name }}'
})
}
3 changes: 3 additions & 0 deletions .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
".": "2.5.0"
}
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# **B**io**F**ormats **I**nput/**O**utput utility (bfio 2.5.0)
# **B**io**F**ormats **I**nput/**O**utput utility (bfio 2.5.0) <!-- x-release-please-version -->

[![Documentation Status](https://readthedocs.org/projects/bfio/badge/?version=latest)](https://bfio.readthedocs.io/en/latest/?badge=latest)
[![PyPI](https://img.shields.io/pypi/v/bfio)](https://pypi.org/project/bfio/)
Expand Down Expand Up @@ -50,6 +50,7 @@ be installed using pip:

## Docker

<!-- x-release-please-start-version -->
### polusai/bfio:2.5.0

Ubuntu based container with bfio and all dependencies (including Java).
Expand All @@ -61,6 +62,7 @@ Same as above, except comes with ImageJ and PyImageJ.
### polusai/bfio:2.5.0-tensorflow

Tensorflow container with bfio installed.
<!-- x-release-please-end -->

## Documentation

Expand Down
35 changes: 0 additions & 35 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -86,41 +86,6 @@ namespaces = false
]


[tool.bumpversion]
current_version = "2.5.0"
commit = true
tag = true
commit_args = "--no-verify"
parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)(\\-(?P<release>[a-z]+)(?P<build>\\d+))?"
serialize = [
"{major}.{minor}.{patch}-{release}{build}",
"{major}.{minor}.{patch}"
]

[tool.bumpversion.parts.release]
optional_value = "_"
first_value = "dev"
values = [
"dev",
"_"
]

[[tool.bumpversion.files]]
filename = "src/bfio/VERSION"
search = "{current_version}"
replace = "{new_version}"

[[tool.bumpversion.files]]
filename = "requirements/requirements-base.txt"
search = "bfio=={current_version}"
replace = "bfio=={new_version}"

[[tool.bumpversion.files]]
filename = "README.md"
search = "{current_version}"
replace = "{new_version}"


[tool.codespell]
skip = "*.svg,*.html"
ignore-words-list = "utput"
24 changes: 24 additions & 0 deletions release-please-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"packages": {
".": {
"release-type": "simple",
"package-name": "bfio",
"include-component-in-tag": false,
"version-file": "src/bfio/VERSION",
"changelog-sections": [
{"type": "feat", "section": "Features"},
{"type": "fix", "section": "Bug Fixes"},
{"type": "perf", "section": "Performance Improvements"},
{"type": "revert", "section": "Reverts"},
{"type": "docs", "section": "Documentation"},
{"type": "refactor", "section": "Code Refactoring"},
{"type": "build", "section": "Build System"},
{"type": "chore", "section": "Miscellaneous Chores", "hidden": true},
{"type": "style", "section": "Styles", "hidden": true},
{"type": "test", "section": "Tests", "hidden": true},
{"type": "ci", "section": "Continuous Integration", "hidden": true}
],
"extra-files": ["README.md", "requirements/requirements-base.txt"]
}
}
}
2 changes: 1 addition & 1 deletion requirements/requirements-base.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
bfio==2.5.0
bfio==2.5.0 # x-release-please-version
Loading