Skip to content

Commit ee4237e

Browse files
committed
MAINT: Prep for 0.8.1
1 parent f8c0fec commit ee4237e

4 files changed

Lines changed: 71 additions & 1 deletion

File tree

.github/dependabot.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
schedule:
6+
interval: "monthly"
7+
groups:
8+
actions:
9+
patterns:
10+
- "*"
11+
labels:
12+
- no-changelog-entry-needed
13+
cooldown:
14+
default-days: 7

.github/release.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
changelog:
2+
exclude:
3+
authors:
4+
- dependabot[bot]
5+
- pre-commit-ci[bot]

.github/workflows/release.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# Upload a Python Package using Twine when a release is created
2+
3+
name: Build
4+
on: # yamllint disable-line rule:truthy
5+
release:
6+
types: [published]
7+
push:
8+
branches: ["master", "maint/*"]
9+
pull_request:
10+
branches: ["master", "maint/*"]
11+
12+
permissions:
13+
contents: read
14+
15+
jobs:
16+
package:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: actions/checkout@v5
20+
with:
21+
persist-credentials: false
22+
- uses: actions/setup-python@v6
23+
with:
24+
python-version: '3.10'
25+
- name: Install dependencies
26+
run: |
27+
python -m pip install --upgrade pip
28+
pip install build twine
29+
- run: python -m build --sdist --wheel
30+
- run: twine check --strict dist/*
31+
- uses: actions/upload-artifact@v5
32+
with:
33+
name: dist
34+
path: dist
35+
36+
pypi-upload:
37+
needs: package
38+
runs-on: ubuntu-latest
39+
if: github.event_name == 'release'
40+
permissions:
41+
id-token: write # for trusted publishing
42+
environment:
43+
name: pypi
44+
url: https://pypi.org/p/python-picard
45+
steps:
46+
- uses: actions/download-artifact@v6
47+
with:
48+
name: dist
49+
path: dist
50+
- uses: pypa/gh-action-pypi-publish@release/v1
51+
if: github.event_name == 'release'

picard/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
# Dev branch marker is: 'X.Y.devN' where N is an integer.
1717
#
1818

19-
__version__ = '0.9.dev'
19+
__version__ = '0.8.1'
2020

2121
from .solver import picard # noqa
2222
from ._tools import permute, amari_distance # noqa

0 commit comments

Comments
 (0)