-
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.
- Loading branch information
Showing
8 changed files
with
98 additions
and
15 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: Build, Test, and Upload Python Package | ||
|
||
on: | ||
push: | ||
tags: | ||
- "v*.*.*" | ||
|
||
workflow_dispatch: | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
# test: | ||
# uses: ./.github/workflows/ubuntu-python-package.yml # use the callable tests job to run tests | ||
|
||
deploy: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
# needs: [test] | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: "3.11" | ||
|
||
- name: Install dependencies | ||
run: | | ||
sudo apt-get update | ||
python -m pip install --upgrade pip | ||
- name: Publish to PyPI | ||
run: | | ||
python -m venv venv | ||
. ./venv/bin/activate | ||
pip install -U twine build | ||
python -m build . | ||
python -m twine upload --repository pypi --username __token__ --password ${{ secrets.PYPI }} dist/* | ||
env: | ||
PYPI: ${{ secrets.PYPI }} |
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,4 +1,7 @@ | ||
# Changelog | ||
|
||
### Version 0.0.2 (18-04-2024) | ||
- Automatic deployment to PyPI | ||
|
||
### Version 0.0.1 (15-04-2024) | ||
- Initial release |
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
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 |
---|---|---|
|
@@ -4,15 +4,15 @@ build-backend = "hatchling.build" | |
|
||
[project] | ||
name = "nqrduck-pulseprogrammer" | ||
version = "0.0.1" | ||
version = "0.0.2" | ||
authors = [ | ||
{ name="Julia Pfitzer", email="[email protected]" }, | ||
{ name="jupfi", email="[email protected]" }, | ||
] | ||
|
||
description = "A module for the NQRduck program (a simple python script™) to do pulse programming." | ||
readme = "README.md" | ||
license = { file="LICENSE" } | ||
requires-python = ">=3.8" | ||
requires-python = ">=3.10" | ||
|
||
classifiers = [ | ||
"Programming Language :: Python :: 3", | ||
|
@@ -28,3 +28,28 @@ dependencies = [ | |
|
||
[project.entry-points."nqrduck"] | ||
"nqrduck-pulseprogrammer" = "nqrduck_pulseprogrammer.pulseprogrammer:pulse_programmer" | ||
|
||
[tool.ruff] | ||
exclude = [ | ||
"widget.py", | ||
] | ||
|
||
[tool.ruff.lint] | ||
extend-select = [ | ||
"UP", # pyupgrade | ||
"D", # pydocstyle | ||
] | ||
|
||
[tool.ruff.lint.per-file-ignores] | ||
"__init__.py" = ["F401"] | ||
|
||
[tool.ruff.lint.pydocstyle] | ||
convention = "google" | ||
|
||
[project.urls] | ||
"Homepage" = "https://nqrduck.cool" | ||
"Bug Tracker" = "https://github.com/nqrduck/nqrduck-pulseprogrammer/issues" | ||
"Source Code" = "https://github.com/nqrduck/nqrduck-pulseprogrammer" | ||
|
||
[tool.hatch.build.targets.wheel] | ||
packages = ["src/nqrduck_pulseprogrammer"] |
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
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