mirror of
https://github.com/nqrduck/LimeDriverBindings.git
synced 2024-09-29 09:00:35 +00:00
Compare commits
No commits in common. "2af14f02723254010d7885a31f658b81e67cd416" and "6d448e0857d8e49b3991f87f53c5d388b11e92e1" have entirely different histories.
2af14f0272
...
6d448e0857
3 changed files with 10 additions and 81 deletions
|
@ -1,4 +1,4 @@
|
|||
name: Build, Test, and Upload Python Package (sdist and manylinux)
|
||||
name: Build, Test, and Upload Python Package
|
||||
|
||||
on:
|
||||
push:
|
||||
|
@ -61,6 +61,14 @@ jobs:
|
|||
CIBW_BEFORE_BUILD: ./build_wheel.sh
|
||||
CIBW_SKIP: "*-musllinux_*"
|
||||
|
||||
- name: Build wheels musllinux
|
||||
run: |
|
||||
. ./venv/bin/activate
|
||||
python -m cibuildwheel --output-dir dist
|
||||
env:
|
||||
CIBW_BEFORE_BUILD: ./build_wheel.sh
|
||||
CIBW_SKIP: "*-manylinux_*"
|
||||
|
||||
- name: Publish to PyPI
|
||||
run: |
|
||||
. ./venv/bin/activate
|
64
.github/workflows/python-publish_musllinux.yml
vendored
64
.github/workflows/python-publish_musllinux.yml
vendored
|
@ -1,64 +0,0 @@
|
|||
name: Build, Test, and Upload Python Package (musllinux)
|
||||
|
||||
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: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v3
|
||||
|
||||
- name: Prepare Python environment
|
||||
run: |
|
||||
python -m venv venv
|
||||
. ./venv/bin/activate
|
||||
pip install -U twine cibuildwheel build
|
||||
|
||||
- name: Build wheels musllinux
|
||||
run: |
|
||||
. ./venv/bin/activate
|
||||
python -m cibuildwheel --output-dir dist
|
||||
env:
|
||||
CIBW_BEFORE_BUILD: ./build_wheel.sh
|
||||
CIBW_SKIP: "*-manylinux_*"
|
||||
|
||||
- name: Publish to PyPI
|
||||
run: |
|
||||
. ./venv/bin/activate
|
||||
python -m twine upload --repository pypi --username __token__ --password ${{ secrets.PYPI }} dist/*
|
||||
env:
|
||||
PYPI: ${{ secrets.PYPI }}
|
17
README.md
17
README.md
|
@ -27,21 +27,6 @@ python3 -m venv venv
|
|||
source venv/bin/activate
|
||||
```
|
||||
|
||||
You can install the Python bindings using pip:
|
||||
|
||||
```bash
|
||||
pip install limedriver
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
Alternatively you can clone the repository and install the Python bindings from source:
|
||||
|
||||
```bash
|
||||
git clone <this-repo-url>
|
||||
cd LimeDriverBindings
|
||||
```
|
||||
|
||||
Ensure that the LimeDriver submodule is initialized:
|
||||
|
||||
```bash
|
||||
|
@ -66,7 +51,7 @@ import limedriver
|
|||
Npulses = 1000
|
||||
|
||||
# Create a new PyLimeConfig object
|
||||
config = limedriver.binding.PyLimeConfig(Npulses)
|
||||
config = limedriver.PyLimeConfig(Npulses)
|
||||
|
||||
# Modify the config as needed
|
||||
config.srate = 1e6
|
||||
|
|
Loading…
Reference in a new issue