-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from RIMS-Code/dev1
Improvements for `dev1` release - move script to gui-scripts, add project urls to pyproject.toml - fix code-coverage upload workflow - add pre-commit hook - Add button to reset formatting - add transition strength to gui - update strings to utilize f-strings - automatically add json suffix when saving config - add transition strength to plots - add release workflow
- Loading branch information
Showing
9 changed files
with
301 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: Release creation | ||
|
||
on: | ||
push: | ||
# Sequence of patterns matched against refs/tags | ||
tags: | ||
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10 | ||
|
||
env: | ||
PYTHON_VERSION: "3.12" | ||
|
||
jobs: | ||
build-linux: | ||
name: Release on PyPi | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
- name: Install the latest version of rye | ||
uses: eifinger/setup-rye@v1 | ||
- name: Sync Rye | ||
run: | | ||
rye pin ${{ env.PYTHON_VERSION }} | ||
rye sync | ||
- name: Build and release the controller | ||
run: | | ||
rye build | ||
rye publish --token ${{ secrets.PYPI_TOKEN }} --yes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.5.0 | ||
hooks: | ||
- id: end-of-file-fixer | ||
- id: trailing-whitespace | ||
- repo: https://github.com/astral-sh/ruff-pre-commit | ||
# Ruff version. | ||
rev: v0.2.1 | ||
hooks: | ||
# Run the linter. | ||
- id: ruff | ||
args: [ --fix ] | ||
# Run the formatter. | ||
- id: ruff-format | ||
- repo: https://github.com/asottile/pyupgrade | ||
rev: v3.15.0 | ||
hooks: | ||
- id: pyupgrade | ||
args: [ --py38-plus ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[project] | ||
name = "rimsschemedrawer" | ||
version = "3.0.0.dev0" | ||
version = "3.0.0.dev1" | ||
description = "Drawing of RIMS schemes in python and/or with a Python GUI." | ||
authors = [ | ||
{ name = "Reto Trappitsch", email = "[email protected]" } | ||
|
@@ -13,7 +13,7 @@ readme = "README.md" | |
requires-python = ">= 3.8" | ||
license = { text = "MIT" } | ||
|
||
[project.scripts] | ||
[project.gui-scripts] | ||
rimsschemedrawer = "rimsschemedrawer.app:run_gui" | ||
|
||
[project.optional-dependencies] | ||
|
@@ -22,6 +22,12 @@ gui = [ | |
"qtpy>=2.4.1", | ||
] | ||
|
||
[project.urls] | ||
Homepage = "https://github.com/RIMS-Code/RIMSSchemeDrawer" | ||
Documentation = "https://github.com/RIMS-Code/RIMSSchemeDrawer" | ||
Repository = "https://github.com/RIMS-Code/RIMSSchemeDrawer.git" | ||
Issues = "https://github.com/RIMS-Code/RIMSSchemeDrawer/issues" | ||
|
||
[build-system] | ||
requires = ["hatchling"] | ||
build-backend = "hatchling.build" | ||
|
Oops, something went wrong.