Skip to content

Commit cdbebe8

Browse files
committed
Replace setuptools-conda workflow with manually tracked meta.yaml and conda build workflow
Doing this because `setuptools-conda` uses the `toml` library to read the pyproject.toml, and it is deprecated and incompatible with modern pyproject.toml syntax.
1 parent cf06394 commit cdbebe8

3 files changed

Lines changed: 53 additions & 9 deletions

File tree

.github/workflows/build_release.yml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -70,14 +70,15 @@ jobs:
7070
- name: Conda package (Unix)
7171
shell: bash -l {0}
7272
run: |
73-
conda install -c labscript-suite setuptools-conda "conda-build<25"
74-
setuptools-conda build $CONDA_BUILD_ARGS .
73+
mkdir conda_packages
74+
conda install conda-build
75+
conda build conda.recipe/ -c rydiqule/label/main --no-test --no-anaconda-upload --output-folder conda_packages/
7576
7677
- name: Upload Artifact (conda)
7778
uses: actions/upload-artifact@v4
7879
with:
7980
name: conda_packages
80-
path: ./conda_packages
81+
path: ./conda_packages/*/*.conda
8182
if-no-files-found: error
8283

8384
github-release:
@@ -95,12 +96,6 @@ jobs:
9596
name: dist
9697
path: ./dist
9798

98-
- name: Download Artifact (conda)
99-
uses: actions/download-artifact@v4
100-
with:
101-
name: conda_packages
102-
path: ./conda_packages
103-
10499
- name: Get Version Number
105100
run: |
106101
VERSION="${GITHUB_REF/refs\/tags\/v/}"

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ share/python-wheels/
2929
.installed.cfg
3030
*.egg
3131
MANIFEST
32+
conda_packages/
3233

3334
# PyInstaller
3435
# Usually these files are written by a python script from a template

conda.recipe/meta.yaml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
{% set version = "2.1.2" %}
2+
3+
package:
4+
name: rydiqule
5+
version: {{ version }}
6+
7+
source:
8+
path: .. # source code in parent directory
9+
10+
build:
11+
noarch: python
12+
script: {{ PYTHON }} -m pip install . -vv --no-deps --no-build-isolation
13+
number: 0
14+
15+
requirements:
16+
host:
17+
- python >=3.8
18+
- setuptools >=64
19+
- setuptools-scm >=8
20+
- pip
21+
run:
22+
- python >=3.8
23+
- arc-alkali-rydberg-calculator >=3.5.0
24+
- numpy
25+
- scipy >=0.19.1
26+
- leveldiagram >=0.3.1
27+
- networkx
28+
- psutil
29+
- typing_extensions
30+
31+
test:
32+
imports:
33+
- rydiqule
34+
commands:
35+
- pip check
36+
requires:
37+
- pip
38+
39+
about:
40+
summary: Rydberg Sensor Interactive Quantum Physics Module
41+
license: Apache-2.0
42+
license_file: LICENSE
43+
doc_url: https://rydiqule.readthedocs.io/en/latest/
44+
dev_url: https://github.com/QTC-UMD/rydiqule
45+
46+
extra:
47+
recipe-maintainers:
48+
- dihm

0 commit comments

Comments
 (0)