Skip to content

Commit

Permalink
[MAINT] Prepare for v1.1.1 release (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
tsbinns authored Dec 30, 2024
1 parent 9040118 commit 99c4150
Show file tree
Hide file tree
Showing 7 changed files with 73 additions and 23 deletions.
56 changes: 56 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
# Upload a Python Package using Twine when a release is created

name: Build
on:
release:
types: [published]
push:
branches:
- main
pull_request:
branches:
- main

permissions:
contents: read

jobs:
package:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build twine
- name: Build package
run: python -m build --sdist --wheel
- name: Check package
run: twine check --strict dist/*
- name: Check env vars
run: |
echo "Triggered by: ${{ github.event_name }}"
- uses: actions/upload-artifact@v4
with:
name: dist
path: dist

# PyPI on release
pypi:
needs: package
environment: release
runs-on: ubuntu-latest
if: github.event_name == 'release'
permissions:
id-token: write
steps:
- uses: actions/download-artifact@v4
with:
name: dist
path: dist
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
10 changes: 5 additions & 5 deletions .github/workflows/unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ jobs:
- os: ubuntu-latest
python-version: "3.10"
- os: ubuntu-latest
python-version: "3.12"
python-version: "3.13"
- os: macos-13 # Intel
python-version: "3.12"
python-version: "3.13"
- os: macos-14 # arm64
python-version: "3.12"
python-version: "3.13"
- os: windows-latest
python-version: "3.12"
python-version: "3.13"
env:
TZ: Europe/Berlin
FORCE_COLOR: true
Expand Down Expand Up @@ -70,7 +70,7 @@ jobs:
env:
MKL_NUM_THREADS: '1'
PYTHONUNBUFFERED: '1'
PYTHON_VERSION: '3.12'
PYTHON_VERSION: '3.13'
steps:
- uses: actions/checkout@v4
- uses: pyvista/setup-headless-display-action@main
Expand Down
2 changes: 1 addition & 1 deletion CITATION.cff
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ authors:
given-names: "Timon"
orcid: "https://orcid.org/0000-0003-3011-2612"
title: "PyPARRM"
version: 1.1.0
version: 1.1.1
doi: 10.5281/zenodo.8360751
date-released: 2023-06-15
url: "https://github.com/neuromodulation/PyPARRM/tree/main"
18 changes: 6 additions & 12 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,15 @@
# PyPARRM Changelog

## [Version 1.2.0dev](https://pyparrm.readthedocs.io/en/main/index.html)
## [Version 1.2dev](https://pyparrm.readthedocs.io/en/main/index.html)

##### Enhancements
- Updated test coverage.

##### Documentation
- Updated the development section & API format.
<br/><br/>

## [Version 1.1.0](https://pyparrm.readthedocs.io/en/1.1.0/index.html)
## [Version 1.1](https://pyparrm.readthedocs.io/en/1.1.1/index.html)

##### Enhancements
- Improved the speed for filtering data with many samples.
- Added options for specifying the time range, time resolution, and frequency range when using the filter parameter explorer.
- Updated the filter parameter explorer controls.

- Reduced memory usage.

##### Documentation
- Updated the installation and development sections.
- Added a new example showing the use of PARRM with ECoG and LFP data.
Expand All @@ -26,6 +20,6 @@
- Fixed a bug where division by (close to) zero returned invalid filters.
<br/><br/>

## [Version 1.0.0](https://pyparrm.readthedocs.io/en/1.0.0/index.html)
## [Version 1.0](https://pyparrm.readthedocs.io/en/1.0.0/index.html)

- Initial release.
- Initial release.
6 changes: 3 additions & 3 deletions docs/source/_static/versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
"url": "https://pyparrm.readthedocs.io/en/main/"
},
{
"name": "1.1.0",
"version": "1.1.0",
"url": "https://pyparrm.readthedocs.io/en/1.1.0/"
"name": "1.1.1",
"version": "1.1.1",
"url": "https://pyparrm.readthedocs.io/en/1.1.1/"
},
{
"name": "1.0.0",
Expand Down
2 changes: 1 addition & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
project = "PyPARRM"
copyright = "2023, Thomas S. Binns"
author = "Thomas S. Binns"
release = "1.2.0dev"
release = "1.1.1"

# -- General configuration ---------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ description = "A Python port of the PARRM algorithm"
name = "pyparrm"
readme = "README.md"
requires-python = ">=3.10"
version = "1.2.0dev"
version = "1.1.1"

[project.optional-dependencies]
dev = ["pybispectra[doc]", "pybispectra[lint]", "pybispectra[test]"]
Expand Down

0 comments on commit 99c4150

Please sign in to comment.