Skip to content

Commit 934a46a

Browse files
authored
Release 0.1.0-dev0 (#87)
Add workflow for publishing to pypi using twine. Updates minium required python version and description in pyproject.toml.
1 parent ea8b3aa commit 934a46a

File tree

3 files changed

+37
-3
lines changed

3 files changed

+37
-3
lines changed

.github/workflows/publish-pypi.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# This workflow will upload a Python Package using hatch when a release is created
2+
3+
name: Publish Python Package
4+
5+
on:
6+
push:
7+
tags:
8+
- v[0-9]+.[0-9]+.[0-9]+*
9+
10+
permissions:
11+
contents: read
12+
13+
jobs:
14+
deploy:
15+
16+
runs-on: ubuntu-latest
17+
18+
steps:
19+
- uses: actions/checkout@v3
20+
- name: Set up Python
21+
uses: actions/setup-python@v3
22+
with:
23+
python-version: '3.12'
24+
- name: Install dependencies and build package
25+
run: |
26+
pip install --upgrade pip build twine
27+
python -m build
28+
- name: Publish package
29+
env:
30+
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
31+
TWINE_USERNAME: __token__
32+
TWINE_REPOSITORY: pypi
33+
run: |
34+
python -m twine upload dist/*

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ build-backend = "setuptools.build_meta"
99

1010
[project]
1111
name = "scwidgets"
12-
description = "ipywidgets for the creation of interactive code demos and educational notebooks"
12+
description = "A collection of widgets to prepare interactive scientific visualisations, including user code input and validation"
1313
readme = "README.rst"
14-
requires-python = ">=3.8"
14+
requires-python = ">=3.9"
1515
license = {text = "BSD-3-Clause"}
1616
classifiers = [
1717
"Intended Audience :: Science/Research",

src/scwidgets/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = "0.0.0-dev"
1+
__version__ = "0.1.0-dev0"
22
__authors__ = "the scicode-widgets developer team"
33

44
from ._css_style import CssStyle, get_css_style

0 commit comments

Comments
 (0)