mirror of
https://github.com/nqrduck/LimeDriverBindings.git
synced 2024-11-17 16:01:02 +00:00
Compare commits
5 commits
3d0481a9d4
...
d71e29a901
Author | SHA1 | Date | |
---|---|---|---|
|
d71e29a901 | ||
|
5c53365f2f | ||
|
8d625619d7 | ||
|
bb97340bca | ||
|
09bcd15776 |
2 changed files with 84 additions and 1 deletions
58
.github/workflows/python-publish.yml
vendored
Normal file
58
.github/workflows/python-publish.yml
vendored
Normal 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 }}
|
|
@ -5,7 +5,7 @@ description = "Python bindings for limedriver"
|
|||
authors = [{name = "Kumi", email = "limedriver@kumi.email"}]
|
||||
license = {file = "LICENSE"}
|
||||
readme = "README.md"
|
||||
requires-python = ">=3.8"
|
||||
requires-python = ">=3.10"
|
||||
classifiers = [
|
||||
"Development Status :: 4 - Beta",
|
||||
"Intended Audience :: Developers",
|
||||
|
@ -28,3 +28,28 @@ requires = [
|
|||
]
|
||||
|
||||
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"]
|
Loading…
Reference in a new issue