Skip to content

Commit

Permalink
feat(dependencies): add recipes for dependencies on conda stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
sbtq authored and cedrictq committed Nov 19, 2024
1 parent d2fdf23 commit b315d98
Show file tree
Hide file tree
Showing 3 changed files with 101 additions and 1 deletion.
47 changes: 47 additions & 0 deletions .deps-recipes/py-machineid/recipe.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
schema_version: 1

context:
name: py-machineid
version: 0.6.0

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

source:
url: https://pypi.org/packages/source/${{ name[0] }}/${{ name }}/py-machineid-${{ version }}.tar.gz
sha256: 00c38d8521d429a4539bdd92967234db28a1a2b4b263062b351ca002332e633f

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

requirements:
host:
- python
- pip
- setuptools
- wheel
run:
- python
- if: win
then: winregistry

tests:
- python:
imports:
- machineid
pip_check: true

about:
summary: Get the unique machine ID of any host (without admin privileges)
license: MIT
license_file: LICENSE
homepage: https://github.com/keygen-sh/py-machineid
repository: https://github.com/keygen-sh/py-machineid

extra:
-maintainers:
- sbtq
- cedrictq

51 changes: 51 additions & 0 deletions .deps-recipes/winregistry/recipe.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
schema_version: 1

context:
name: winregistry
version: 1.1.1

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

source:
url: https://pypi.org/packages/source/${{ name[0] }}/${{ name }}/winregistry-${{ version }}.tar.gz
sha256: 942fecad3751c1b78b9e6b0a520266903c3023f104668ce1bdbf381ec993ad8b

build:
number: 0
skip: not win
script:
- curl -o LICENSE https://github.com/shpaker/winregistry/blob/main/LICENSE
- ${{ PYTHON }} -m pip install . -vv --no-deps --no-build-isolation

requirements:
host:
- python >=3.7,<4.0
- poetry-core >=1.0.0
- pip
run:
- python >=3.7.0,<4.0.0

tests:
- python:
imports:
- winregistry
- requirements:
run:
- pip
script:
- pip check

about:
summary: Library aimed at working with Windows registry
license: MIT
license_file: LICENSE
homepage: https://github.com/shpaker/winregistry
repository: https://github.com/shpaker/winregistry

extra:
maintainers:
- sbtq
- cedrictq

4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,6 @@
venv

dist
output
output

dist

0 comments on commit b315d98

Please sign in to comment.