Skip to content

Commit

Permalink
BLD: add a conda recipe etc
Browse files Browse the repository at this point in the history
  • Loading branch information
ZLLentz committed Dec 19, 2023
1 parent adfd27f commit 004c4aa
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/standard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ jobs:
# Extras to be installed only for conda-based testing:
conda-testing-extras: ""
# Extras to be installed only for pip-based testing:
pip-testing-extras: "PyQt5"
pip-testing-extras: ""
# Set if using setuptools-scm for the conda-build workflow
use-setuptools-scm: true
43 changes: 43 additions & 0 deletions conda-recipe/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{% set package_name = "pmpsdb_client" %}
{% set import_name = "pmpsdb_client" %}
{% set version = load_file_regex(load_file=os.path.join(import_name, "_version.py"), regex_pattern=".*version = '(\S+)'").group(1) %}

package:
name: {{ package_name }}
version : {{ version }}

source:
path: ..

build:
number: 0
noarch: python
script: {{ PYTHON }} -m pip install . -vv

requirements:
build:
- python >=3.9
- pip
- setuptools_scm
run:
- python >=3.9
- fabric
- ophyd
- pcdscalc
- pcdsutils
- prettytable
- qtpy
run_constrained:
- pyqt =5

test:
requires:
- pytest
- pyqt=5.15
imports:
- {{ import_name }}

about:
home: https://github.com/pcdshub/pcdsdevices
license: SLAC Open License
summary: IOC definitions for LCLS Beamline Devices
3 changes: 2 additions & 1 deletion dev-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
pyqt
PyQt5
pytest
setuptools-scm
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,3 @@ pcdscalc
pcdsutils
prettytable
qtpy
setuptools-scm

0 comments on commit 004c4aa

Please sign in to comment.