Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 14 additions & 2 deletions .github/workflows/code.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,19 +80,31 @@ jobs:
set -vxeuo pipefail
pip install -e .[dev]

# - name: Unpack
# run: |
# set -vxeuo pipefail
# which databroker-pack
# which databroker-unpack
# cd resources
# bash ./unpack.sh
# cmd="import databroker;"
# cmd+=" print(list(databroker.catalog));"
# cmd+=" print(databroker.catalog_search_path());"
# python -c "${cmd}"
# cd ..

- name: Unpack
run: |
set -vxeuo pipefail
which databroker-pack
which databroker-unpack
cd resources
bash ./unpack.sh
cmd="import databroker;"
cmd+=" print(list(databroker.catalog));"
cmd+=" print(databroker.catalog_search_path());"
python -c "${cmd}"
cd ..

# - name: Directory Listings
# run: |
# set -vxeuo pipefail
Expand Down
3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ dependencies = [
"bluesky-live",
"bluesky>=1.6.2,!=1.11.0",
"databroker-pack",
"databroker<=1.999",
"databroker>= 2.0.0a105",
"Deprecated",
"entrypoints",
"h5py",
Expand Down Expand Up @@ -83,7 +83,6 @@ dev = [
"pre-commit",
"pytest",
"ruff",
# databroker 2.0.0b57 needs
"doct",
"humanize",
"mongomock",
Expand Down
12 changes: 6 additions & 6 deletions resources/unpack.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ CAT+=" usaxs_test"
TMP=/tmp # TODO: What about Windows?
SRC=$(dirname $(readlink -f $0))

for c in ${CAT}; do
echo ${SRC}/${c}.zip
unzip -u ${SRC}/${c}.zip -d ${TMP}
databroker-unpack inplace ${TMP}/${c} ${c}
done
# for c in ${CAT}; do
# echo ${SRC}/${c}.zip
# unzip -u ${SRC}/${c}.zip -d ${TMP}
# databroker-unpack inplace ${TMP}/${c} ${c}
# done

# show all available catalogs
databroker-pack --list
# databroker-pack --list
Loading