Skip to content

Commit

Permalink
repo maintenance
Browse files Browse the repository at this point in the history
  • Loading branch information
flaport committed Nov 17, 2023
1 parent 6663943 commit 2ed5e97
Show file tree
Hide file tree
Showing 5 changed files with 59 additions and 35 deletions.
4 changes: 3 additions & 1 deletion .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
[bumpversion]
current_version = 0.3.0
current_version = 0.3.2
commit = True
tag = True
tag_name = {new_version}

[bumpversion:file:setup.cfg]

[bumpversion:file:fdtd/__init__.py]

[bumpversion:file:.github/workflows/publish.yml]
32 changes: 0 additions & 32 deletions .github/workflows/publish-pypi.yml

This file was deleted.

54 changes: 54 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: publish
on:
workflow_dispatch:
pull_request:
push:
tags:
- "*"

jobs:
build:
runs-on: ubuntu-latest
container:
image: condaforge/mambaforge
volumes:
- ${{ github.workspace }}:/github/workspace
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install dependencies
run: mamba install -c conda-forge twine build pip setuptools wheel
- name: Build Library
run: python -m build --sdist --wheel
- name: Expose wheel as artifact
uses: actions/upload-artifact@master
with:
name: dist
path: dist

release:
runs-on: ubuntu-latest
needs:
- build
steps:
- name: Download build artifact
uses: actions/download-artifact@master
with:
name: dist
path: dist
- name: Release
uses: softprops/action-gh-release@v1
with:
files: |
dist/fdtd-0.3.2.tar.gz
dist/fdtd-0.3.2-py3-none-any.whl
- name: Publish to PyPI
run: |
pip install --user twine \
&& twine upload \
dist/fdtd-0.3.2.tar.gz \
dist/fdtd-0.3.2-py3-none-any.whl \
--username __token__ \
--password ${{ secrets.PYPI_API_TOKEN }}
2 changes: 1 addition & 1 deletion fdtd/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
""" Python 3D FDTD Simulator """

__author__ = "Floris laporte"
__version__ = "0.3.0"
__version__ = "0.3.2"

from .grid import Grid
from .sources import PointSource, LineSource, PlaneSource
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = fdtd
version = 0.3.0
version = 0.3.2
description = a 3D electromagnetic FDTD simulator written in Python
author = Floris Laporte
author_email = [email protected]
Expand Down

0 comments on commit 2ed5e97

Please sign in to comment.