mirror of
https://github.com/nqrduck/nqrduck-broadband.git
synced 2025-01-02 20:58:12 +00:00
Commit for automatic PyPi deployment.
This commit is contained in:
parent
26ce7de972
commit
df4c6a2b66
4 changed files with 80 additions and 5 deletions
44
.github/workflows/python-publish.yml
vendored
Normal file
44
.github/workflows/python-publish.yml
vendored
Normal file
|
@ -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 }}
|
|
@ -1,4 +1,6 @@
|
||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
### Version 0.0.13 (17-04-2024)
|
||||||
|
- Automatic deployment to PyPi using GitHub Actions
|
||||||
### Version 0.0.12 (15-04-2024)
|
### Version 0.0.12 (15-04-2024)
|
||||||
- Initial release
|
- Initial release
|
|
@ -26,6 +26,10 @@ You can install this module and the dependencies by running the following comman
|
||||||
```bash
|
```bash
|
||||||
pip install .
|
pip install .
|
||||||
```
|
```
|
||||||
|
Alternatively, you can install the module and the dependencies by running the following command in the terminal while the virtual environment is activated:
|
||||||
|
```bash
|
||||||
|
pip install nqrduck-broadband
|
||||||
|
```
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
The module is used with the [ATM-system](https://github.com/nqrduck/ATM) in combination with the [nqrduck-autotm](https://github.com/nqrduck/nqrduck-autotm) module.
|
The module is used with the [ATM-system](https://github.com/nqrduck/ATM) in combination with the [nqrduck-autotm](https://github.com/nqrduck/nqrduck-autotm) module.
|
||||||
|
@ -35,7 +39,7 @@ If you are using a low Q broadband probe coil you don't have to generate a Looku
|
||||||
|
|
||||||
The pulse sequence and spectrometer settings can be adjusted using the 'Spectrometer' tab.
|
The pulse sequence and spectrometer settings can be adjusted using the 'Spectrometer' tab.
|
||||||
|
|
||||||
<img src="docs/img/broadband_ui_labeled_v2.png" alt="drawing" width="800">
|
<img src="https://raw.githubusercontent.com/nqrduck/nqrduck-autotm/d15d85be91195e3e7b514b60b3cef6d1dcde5e1e/docs/img/autotm-labeled.png" alt="drawing" width="800">
|
||||||
|
|
||||||
- a.) The measurements settings with the frequency range and the number of steps. These settings are locked when generating a Lookup Table.
|
- a.) The measurements settings with the frequency range and the number of steps. These settings are locked when generating a Lookup Table.
|
||||||
- b.) The information about the active Lookup Table.
|
- b.) The information about the active Lookup Table.
|
||||||
|
|
|
@ -4,12 +4,12 @@ build-backend = "hatchling.build"
|
||||||
|
|
||||||
[project]
|
[project]
|
||||||
name = "nqrduck-broadband"
|
name = "nqrduck-broadband"
|
||||||
version = "0.0.12"
|
version = "0.0.13"
|
||||||
authors = [
|
authors = [
|
||||||
{ name="Julia Pfitzer", email="git@jupfi.me" },
|
{ name="jupfi", email="support@nqrduck.cool" },
|
||||||
]
|
]
|
||||||
|
|
||||||
description = "A module for the NQRduck program (a simple python script™) to do broadband NQR measurements."
|
description = "A module for the NQRduck program (a simple python script™) to do broadband magnetic resonance measurements."
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
license = { file="LICENSE" }
|
license = { file="LICENSE" }
|
||||||
requires-python = ">=3.8"
|
requires-python = ">=3.8"
|
||||||
|
@ -23,8 +23,33 @@ classifiers = [
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"matplotlib",
|
"matplotlib",
|
||||||
"pyqt6",
|
"pyqt6",
|
||||||
"NQRduck",
|
"nqrduck",
|
||||||
]
|
]
|
||||||
|
|
||||||
[project.entry-points."nqrduck"]
|
[project.entry-points."nqrduck"]
|
||||||
"nqrduck-broadband" = "nqrduck_broadband.broadband:Broadband"
|
"nqrduck-broadband" = "nqrduck_broadband.broadband:Broadband"
|
||||||
|
|
||||||
|
[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-broadband/issues"
|
||||||
|
"Source Code" = "https://github.com/nqrduck/nqrduck-broadband"
|
||||||
|
|
||||||
|
[tool.hatch.build.targets.wheel]
|
||||||
|
packages = ["src/nqrduck_broadband"]
|
Loading…
Reference in a new issue