Skip to content

Commit

Permalink
Merge pull request #20 from xylar/add-poetry-dependency
Browse files Browse the repository at this point in the history
Add poetry as a dependency
  • Loading branch information
xylar authored Apr 16, 2024
2 parents dedc3cd + 765a17c commit fd60cc0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 13 deletions.
7 changes: 7 additions & 0 deletions .ci_support/linux_64_.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
c_stdlib:
- sysroot
c_stdlib_version:
- '2.12'
cdt_name:
- cos6
channel_sources:
Expand All @@ -6,3 +10,6 @@ channel_targets:
- conda-forge main
docker_image:
- quay.io/condaforge/linux-anvil-cos7-x86_64
zip_keys:
- - c_stdlib_version
- cdt_name
18 changes: 5 additions & 13 deletions recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ source:
build:
noarch: python
script: {{ PYTHON }} -m pip install . -vv
number: 0
number: 1

requirements:
host:
Expand All @@ -22,13 +22,9 @@ requirements:
run:
- python >=3.8.0,<4.0.0
- poetry-core >=1.7.0,<2.0.0
# poetry is actually a run dependency. But since that creates a dependency
# cycle, we add it only as a run_constrained for now (until fixed upstream).
# (N.B.: This means this package is unusable if `conda install`ed on its own.)
# refs:
# - https://github.com/python-poetry/poetry/pull/5980
# - https://github.com/conda-forge/poetry-feedstock/issues/70
run_constrained:
# warning: this is a circular dependency. If this causes trouble (e.g.
# there is an update that simultaneously requires a new poetry and
# poetry-plugin-export, temporarly switch this to "run_constrained"
- poetry >=1.8.0,<2.0.0

# Skip tests partially due to dependency cycle (see above):
Expand All @@ -39,11 +35,7 @@ test:
commands:
- test -f "${SP_DIR}"/poetry_plugin_export/__init__.py
- "pip show poetry-plugin-export | grep -Fx 'Version: {{ version }}'"
# Ensure pip check has non-empty output and recognizes the missing dep.
- pip check | grep -F 'requires poetry, which is not installed.'
# Ensure pip check does not output anything else. (This includes
# "No broken requirements found." -- a signal to update the recipe ;)
- "! pip check | grep -Fv 'requires poetry, which is not installed.'"
- pip check
requires:
- pip

Expand Down

0 comments on commit fd60cc0

Please sign in to comment.