Compare commits

..

5 commits

Author SHA1 Message Date
jupfi
d71e29a901 Maybe like this? 2024-04-20 11:10:02 +02:00
jupfi
5c53365f2f Added submodule checkout 2024-04-20 11:02:18 +02:00
jupfi
8d625619d7 Updated dependencies for deployment. 2024-04-20 10:56:45 +02:00
jupfi
bb97340bca Automatic PyPi deployment. 2024-04-20 10:53:00 +02:00
jupfi
09bcd15776 Automatic PyPi deployment. 2024-04-20 10:52:40 +02:00
2 changed files with 84 additions and 1 deletions

58
.github/workflows/python-publish.yml vendored Normal file
View file

@ -0,0 +1,58 @@
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:
- name: Update package list
run: |
sudo apt-get update
- name: Install git
run: |
sudo apt-get install -y git
- name: Checkout repository
uses: actions/checkout@v2
with:
submodules: 'recursive'
- name: Set up Python 3.10
uses: actions/setup-python@v2
with:
python-version: "3.10"
- name: Prepare Python environment
run: |
python -m venv venv
. ./venv/bin/activate
pip install --upgrade pip h5py setuptools wheel build
- name: Install dependencies
run: |
sudo apt-get install -y libhdf5-dev limesuite liblimesuite-dev automake gcc pkg-config build-essential python-is-python3
- name: Publish to PyPI
run: |
pip install -U twine build
python -m build .
python -m twine upload --repository pypi --username __token__ --password ${{ secrets.PYPI }} dist/*
env:
PYPI: ${{ secrets.PYPI }}

View file

@ -5,7 +5,7 @@ description = "Python bindings for limedriver"
authors = [{name = "Kumi", email = "limedriver@kumi.email"}] authors = [{name = "Kumi", email = "limedriver@kumi.email"}]
license = {file = "LICENSE"} license = {file = "LICENSE"}
readme = "README.md" readme = "README.md"
requires-python = ">=3.8" requires-python = ">=3.10"
classifiers = [ classifiers = [
"Development Status :: 4 - Beta", "Development Status :: 4 - Beta",
"Intended Audience :: Developers", "Intended Audience :: Developers",
@ -28,3 +28,28 @@ requires = [
] ]
build-backend = "setuptools.build_meta" build-backend = "setuptools.build_meta"
[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/limedriverbindings/issues"
"Source Code" = "https://github.com/nqrduck/limedriverbindings"
[tool.hatch.build.targets.wheel]
packages = ["src/limedriver"]