Skip to content

Commit

Permalink
Merge pull request #3 from jslorrma/feature/add-conda-recipe
Browse files Browse the repository at this point in the history
feature: Add conda recipe for keyrings.artifacts package
  • Loading branch information
jslorrma authored Aug 25, 2024
2 parents f621c37 + 40a4d25 commit 5d2cef4
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 7 deletions.
4 changes: 1 addition & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@ __pycache__/*
.idea
.vscode
.env
templates/**
!templates/**/*.ipynb
!templates/**/*.tex

# Pytest
.coverage
Expand All @@ -38,3 +35,4 @@ coverage.xml
*.eggs/
.installed.cfg
*.egg-info
dist/**
4 changes: 2 additions & 2 deletions pixi.lock

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

3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ dev = { features = ["dev"], solve-group = "default" }
[tool.pixi.tasks]
post-install = "pre-commit install"


[tool.pixi.feature.dev.tasks.test]
# Run tests with pytest and generate a coverage report in XML format
cmd = "pytest -s -v --cov"
Expand Down Expand Up @@ -129,7 +128,7 @@ 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"
cwd = "recipe"

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

context:
name: keyrings.artifacts
version: 0.4.1

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

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

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

requirements:
host:
- python >=3.7
- hatchling
- pip
run:
- python >=3.7
- keyring >=16.0
- requests >=2.20.0
- azure-identity >=1.17.1
- keyrings.alt >=5.0.2,<6
- pycryptodomex >=3.20.0,<4

tests:
- python:
imports:
- keyrings.artifacts
- requirements:
run:
- pip
script:
- pip check

about:
summary: Keyring backend, that automatically retrieves credentials for Azure Artifacts.
license: MIT
license_file: LICENSE

extra:
recipe-maintainers:
- jslorrma

0 comments on commit 5d2cef4

Please sign in to comment.