Skip to content

Commit

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

Updates minium required python version, description and location of
the LICENSE file in pyproject.toml
  • Loading branch information
agoscinski committed Nov 30, 2024
1 parent 843cbbb commit e1f816a
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 4 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: Insatll dependencies and build package
run: |
pip install --upgrade pip build twine
python -m build
- name: Publish package
env:
TWINE_PASSWORD: ${{ secrets.TEST_PYPI_API_TOKEN }}
TWINE_USERNAME: __token__
TWINE_REPOSITORY: testpypi
run: |
python -m twine upload dist/*
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ 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"
license = {text = "BSD-3-Clause"}
requires-python = ">=3.9"
license = {file = "LICENSE"}
classifiers = [
"Intended Audience :: Science/Research",
"Operating System :: POSIX",
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 e1f816a

Please sign in to comment.