Skip to content

Commit

Permalink
Bump version to v0.3.0 for release
Browse files Browse the repository at this point in the history
  • Loading branch information
richardkoehler committed Feb 15, 2024
1 parent 4fc63d6 commit a5dd18d
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 15 deletions.
1 change: 1 addition & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ jobs:
url: https://pypi.org/p/pte-stats
permissions:
id-token: write # IMPORTANT: mandatory for trusted publishing
contents: write
steps:
- uses: actions/checkout@v4
with:
Expand Down
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,10 @@ repos:
hooks:
- id: codespell

- repo: https://github.com/shellcheck-py/shellcheck-py
rev: "v0.9.0.6"
hooks:
- id: shellcheck
# - repo: https://github.com/shellcheck-py/shellcheck-py
# rev: "v0.9.0.6"
# hooks:
# - id: shellcheck

- repo: local
hooks:
Expand Down
8 changes: 2 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
[![Tests][tests-shield]][tests-url] [![License][license-shield]][license-url]
[![Contributors][contributors-shield]][contributors-url]
[![Code Style][codestyle-shield]][codestyle-url]
[![Homepage][homepage-shield]][homepage-url]

# PTE Stats - Python tools for electrophysiology

Expand Down Expand Up @@ -89,18 +88,15 @@ PTE Stats is licensed under the [MIT license](license-url).
<!-- https://www.markdownguide.org/basic-syntax/#reference-style-links -->

[python-shield]:
https://img.shields.io/static/v1?label=Python&message=3.10&logoColor=black&labelColor=grey&color=blue
https://img.shields.io/static/v1?label=Python&message=3.12&logoColor=black&labelColor=grey&color=blue
[python-url]: https://pypi.org/project/pte-stats/
[pypi-shield]:
https://img.shields.io/static/v1?label=PyPi&message=v0.2.0&logoColor=black&labelColor=grey&color=blue
https://img.shields.io/static/v1?label=PyPi&message=v0.3.0&logoColor=black&labelColor=grey&color=blue
[pypi-url]: https://pypi.org/project/pte-stats/
[tests-shield]:
https://github.com/richardkoehler/pte-stats/actions/workflows/main.yml/badge.svg
[tests-url]:
https://github.com/richardkoehler/pte-stats/actions/workflows/main.yml
[homepage-shield]:
https://img.shields.io/static/v1?label=Homepage&message=ICN&logoColor=black&labelColor=grey&color=9cf
[homepage-url]: https://www.icneuromodulation.org/
[contributors-shield]:
https://img.shields.io/github/contributors/richardkoehler/pte-stats.svg
[contributors-url]:
Expand Down
10 changes: 6 additions & 4 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,8 @@ and this project adheres to

## Unreleased

## [v0.3.0rc1](https://github.com/richardkoehler/pte-stats/releases/tag/v0.3.0rc1) - 2024-02-15

### Added

- Minor additions

### Fixed

### Changed
Expand All @@ -22,6 +18,12 @@ and this project adheres to

### Removed

## [v0.3.0](https://github.com/richardkoehler/pte-stats/releases/tag/v0.3.0) - 2024-02-15

## [v0.3.0rc1](https://github.com/richardkoehler/pte-stats/releases/tag/v0.3.0rc1) - 2024-02-15

- Minor additions

## [0.2.0](https://github.com/richardkoehler/pte-stats/releases/tag/v0.2.0) - 2023-01-12

### Added
Expand Down
19 changes: 19 additions & 0 deletions scripts/release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/bash

set -e

TAG=$(python -c 'from pte_stats import __version__; print("v" + __version__)')

read -p "Creating new release for $TAG. Do you want to continue? [Y/n] " prompt

if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
python scripts/prepare_changelog.py
git add -A
git commit -m "Bump version to $TAG for release" || true && git push
echo "Creating new git tag $TAG"
git tag "$TAG" -m "$TAG"
git push --tags
else
echo "Cancelled"
exit 1
fi
2 changes: 1 addition & 1 deletion src/pte_stats/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""An open-source software package for statistics with time series. """

__version__ = "0.3.0rc1"
__version__ = "0.3.0"

from .cluster import (
cluster_analysis_1d,
Expand Down

0 comments on commit a5dd18d

Please sign in to comment.