Skip to content

Commit

Permalink
bump to 0.12.1 and update GH action publish using uv
Browse files Browse the repository at this point in the history
  • Loading branch information
jhillairet committed Nov 17, 2024
1 parent 0e2b1a8 commit 2c9bb77
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 20 deletions.
30 changes: 12 additions & 18 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,27 +5,21 @@ name: Upload Python Package

on:
release:
types: [created]
types:
- created

jobs:
deploy:
build_and_deploy:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
- name: Build and publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python setup.py sdist bdist_wheel
twine upload dist/*
- name: "Install uv"
uses: astral-sh/setup-uv@v3
- uses: actions/download-artifact@v4
with:
pattern: wheels-*
path: wheels
merge-multiple: true
- name: Publish to PyPi
run: uv publish -v wheels/*
10 changes: 9 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,13 +1,21 @@
[project]
name = "west-ic-antenna"
version = "0.12.0"
dynamic = ["version"]
description = "WEST ICRH Antenna Electrical Model"
readme = "README.md"
requires-python = ">=3.11"
license = {text="LICENSE"}
dependencies = [
"ipywidgets>=8.1.5",
"matplotlib>=3.9.2",
"numpy>=2.1.3",
"pytest>=8.3.3",
"scikit-rf>=1.4.1",
"tqdm>=4.67.0",
]

[tool.setuptools]
license-files = ["LICENSE"]

[tool.setuptools.dynamic]
version = {attr = "west_ic_antenna.__version__"}
2 changes: 1 addition & 1 deletion west_ic_antenna/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = '0.12.0'
__version__ = '0.12.1'

from .antenna import *
from .topica import TopicaResult
Expand Down

0 comments on commit 2c9bb77

Please sign in to comment.