Skip to content
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
50 changes: 50 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: deploy

on:
release: # when new release created
types: [published]

permissions:
contents: read

jobs:
release-build:
runs-on: ubuntu-latest
steps:

- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.13

- name: Build release distributions
run: |
python -m pip install build
python -m build

- name: Upload distributions # upload build artifacts
uses: actions/upload-artifact@v4
with:
name: release-dists
path: dist/

release-publish:
needs:
- release-build
name: Upload release to PyPI
runs-on: ubuntu-latest
environment:
name: pypi
permissions:
id-token: write
steps:

- name: Download all the dists # download build artifacts saved in previous job
uses: actions/download-artifact@v4
with:
name: release-dists
path: dist/

- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"python.testing.pytestEnabled": true,
"python.testing.unittestEnabled": false,
"python.formatting.provider": "black",
"python.defaultInterpreterPath": "python3",
"python.defaultInterpreterPath": "/Users/steve/pymandel/bin/python3.13",
"editor.formatOnSave": true,
"modulename": "pymandel",
"distname": "pymandel",
Expand Down
56 changes: 29 additions & 27 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,21 +30,14 @@
"${config:modulename}.egg-info",
],
"windows": {
"command": "Get-ChildItem",
"command": "rm",
"args": [
"-R",
"-Path",
"build\\,",
"dist\\,",
"htmlcov\\,",
"docs\\_build,",
"${config:modulename}.egg-info",
"-Recurse",
"|",
"Remove-Item",
"-Recurse",
"-Confirm:$false",
"-Force",
],
"'src/${config:modulename}.egg-info','build','dist','htmlcov','docs/_build'",
"-ErrorAction",
"SilentlyContinue" // doesn't work! - stops on exit code 1 anyway
]
},
"options": {
"cwd": "${workspaceFolder}"
Expand Down Expand Up @@ -111,7 +104,20 @@
"--wheel",
"--sdist",
],
"problemMatcher": []
"problemMatcher": [],
"dependsOrder": "sequence",
"dependsOn": [
"Clean",
"Security",
"Sort Imports",
"Format",
"Pylint",
"Test",
],
"group": {
"kind": "build",
"isDefault": true
}
},
{
"label": "Test",
Expand Down Expand Up @@ -176,31 +182,27 @@
},
{
"label": "Install Locally",
"type": "shell",
"type": "process",
"command": "${config:python.defaultInterpreterPath}",
"args": [
"-m",
"pip",
"install",
"--user",
"--upgrade",
"--force-reinstall",
"*.whl"
"--find-links=${workspaceFolder}/dist",
"${workspaceFolderBasename}",
// "--target",
// "${config:venv}/Lib/site-packages"
],
"options": {
"cwd": "dist"
},
"dependsOrder": "sequence",
"dependsOn": [
"Clean",
"Install Dependencies",
"Security",
"Sort Imports",
"Format",
"Pylint",
"Test",
"Build",
"Sphinx HTML"
],
"options": {
"cwd": "dist"
},
"problemMatcher": []
},
]
Expand Down
7 changes: 7 additions & 0 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# PyMandel Release Notes

### RELEASE 1.0.16

FIXES:

1. Remove deprecated tkinter trace calls in settings_frame.py. Now supports tkinter 9.0.2 under Python 3.12 and 3.13.
1. Remove deprecated entries in pyproject.toml.

### RELEASE 1.0.15

CHANGES:
Expand Down
8 changes: 4 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@ build-backend = "setuptools.build_meta:__legacy__"
[project]
name = "pymandel"
dynamic = ["version"]
authors = [{ name = "semuadmin", email = "semuadmin@semuconsulting.com" }]
maintainers = [{ name = "semuadmin", email = "semuadmin@semuconsulting.com" }]
authors = [{ name = "Steve Smith", email = "semuadmin@semuconsulting.com" }]
maintainers = [{ name = "Steve Smith", email = "semuadmin@semuconsulting.com" }]
description = "Fractal generation GUI application"
license = { file = "LICENSE" }
license = "GPL-3.0-only"
license-files = ["LICENSE"]
keywords = [
"PyMandel",
"fractal",
Expand All @@ -34,7 +35,6 @@ classifiers = [
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Topic :: Multimedia :: Graphics",
"Topic :: Scientific/Engineering :: Mathematics",
"Topic :: Education",
Expand Down
Loading