Skip to content

Add workflow for publishing to pypi #87

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading