Skip to content

Commit

Permalink
chore: Update recipe generation task in pyproject.toml and update…
Browse files Browse the repository at this point in the history
… the conda recipe
  • Loading branch information
jslorrma committed Aug 26, 2024
1 parent 0a9a752 commit 9e29bbf
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
2 changes: 1 addition & 1 deletion pixi.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,11 @@ outputs = ["dist/*.whl", "dist/*.tar.gz"]
[tool.pixi.feature.dev.tasks.recipe]
# Generate a conda recipe using grayskull
# Usage: pixi run -e dev recipe
cmd = "pixi exec grayskull pypi --strict-conda-forge keyrings.artifacts"
cmd = """pixi exec grayskull pypi --strict-conda-forge --use-v1-format keyrings.artifacts \
&& sed -i 's/\\${{ PYTHON }}/python/g' keyrings.artifacts/recipe.yaml \
&& sed -i 's/- keyrings.artifacts/- keyrings_artifacts/g' keyrings.artifacts/recipe.yaml \
&& sed -i '/- keyrings-alt >=5.0.0/d' keyrings.artifacts/recipe.yaml
"""
cwd = "recipe"

[tool.pixi.feature.dev.tasks.release]
Expand Down
12 changes: 6 additions & 6 deletions recipe/keyrings.artifacts/recipe.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,20 @@ schema_version: 1

context:
name: keyrings.artifacts
version: 0.4.1
version: 0.4.3

package:
name: ${{ name|lower }}
version: ${{ version }}

source:
url: https://pypi.org/packages/source/${{ name[0] }}/${{ name }}/keyrings_artifacts-${{ version }}.tar.gz
sha256: 356ea7fe3dd6af432ec2cd2cd4b6bc30f89eebd5ba0900a1b0142fe9e3b4a585
sha256: 970e84f1f62c0ebaf0c393da47f3277ecd2737f84cf7a658b75a93705156597a

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

requirements:
host:
Expand All @@ -27,13 +27,13 @@ requirements:
- keyring >=16.0
- requests >=2.20.0
- azure-identity >=1.17.1
- keyrings.alt >=5.0.2,<6
- pycryptodomex >=3.20.0,<4
- keyrings.alt >=5.0.0
- pycryptodomex >=3.20.0

tests:
- python:
imports:
- keyrings.artifacts
- keyrings_artifacts
- requirements:
run:
- pip
Expand Down

0 comments on commit 9e29bbf

Please sign in to comment.