Skip to content

Commit

Permalink
Release 0.1.0-dev0 (#87)
Browse files Browse the repository at this point in the history
Add workflow for publishing to pypi using twine.

Updates minium required python version and description in
pyproject.toml.
  • Loading branch information
agoscinski authored Nov 30, 2024
1 parent ea8b3aa commit 934a46a
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 3 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/publish-pypi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# This workflow will upload a Python Package using hatch when a release is created

name: Publish Python Package

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

permissions:
contents: read

jobs:
deploy:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.12'
- name: Install dependencies and build package
run: |
pip install --upgrade pip build twine
python -m build
- name: Publish package
env:
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
TWINE_USERNAME: __token__
TWINE_REPOSITORY: pypi
run: |
python -m twine upload dist/*
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ build-backend = "setuptools.build_meta"

[project]
name = "scwidgets"
description = "ipywidgets for the creation of interactive code demos and educational notebooks"
description = "A collection of widgets to prepare interactive scientific visualisations, including user code input and validation"
readme = "README.rst"
requires-python = ">=3.8"
requires-python = ">=3.9"
license = {text = "BSD-3-Clause"}
classifiers = [
"Intended Audience :: Science/Research",
Expand Down
2 changes: 1 addition & 1 deletion src/scwidgets/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = "0.0.0-dev"
__version__ = "0.1.0-dev0"
__authors__ = "the scicode-widgets developer team"

from ._css_style import CssStyle, get_css_style
Expand Down

0 comments on commit 934a46a

Please sign in to comment.