Skip to content
Open
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
17 changes: 17 additions & 0 deletions recipes/python/asn1.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
inherit: ["python3::build"]

metaEnvironment:
PKG_VERSION: "3.2.0"
PKG_LICENSE: "MIT"

checkoutSCM:
scm: url
url: ${GITHUB_MIRROR}/andrivet/python-asn1/archive/refs/tags/v${PKG_VERSION}.tar.gz
digestSHA256: 2d67c5e8f0c88c0612e321af84e8d598bfa51869f9a9597b8d08d355880e9d3e
stripComponents: 1

buildScript: |
python3Build $1

packageScript: |
python3PackageTgt
26 changes: 26 additions & 0 deletions recipes/python/cffi.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
inherit: ["python3::build", cpackage]

metaEnvironment:
PKG_VERSION: "2.0.0"
PKG_LICENSE: "MIT-0"

checkoutSCM:
scm: url
url: ${GITHUB_MIRROR}/python-cffi/cffi/archive/refs/tags/v${PKG_VERSION}.tar.gz
digestSHA256: e32bea840b50779a43dcaff13dcf6fa8bc29aa1b071c2cb4e27c1bd79114a202
stripComponents: 1

depends:
- libs::libffi-dev
- use: []
depends:
- libs::libffi-tgt

buildVars: [CC]
buildScript: |
python3Build $1

packageScript: |
python3PackageTgt

provideDeps: ['*-tgt']
59 changes: 59 additions & 0 deletions recipes/python/cryptography.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
inherit: [cargo, "python3::build"]

metaEnvironment:
PKG_VERSION: "46.0.5"
PKG_LICENSE: "Apache-2.0 OR BSD-3-Clause"

checkoutSCM:
scm: url
url: ${GITHUB_MIRROR}/pyca/cryptography/archive/refs/tags/${PKG_VERSION}.tar.gz
digestSHA256: 7571f0e09a6d6eb22168993f94d35867b4dcbd0d34224e0eb7b392b905b3f12f
stripComponents: 1

depends:
- name: python::maturin
tools:
target-toolchain: host-compat-toolchain
use: [tools]
alias: python::maturin-host

- python::setuptools-rust
- python::cffi
- python::pycparser
- python::semantic-version
- libs::openssl-dev
- use: []
depends:
- libs::openssl-tgt

checkoutDeterministic: True
checkoutScript: |
cargoFetchDeps

buildTools: [host-toolchain, target-toolchain, maturin]
buildSetup: |
# provide openssl dir
export OPENSSL_DIR=${BOB_DEP_PATHS['libs::openssl-dev']}/usr/
export LD_LIBRARY_PATH=${BOB_DEP_PATHS['libs::libffi-tgt']}/usr/lib
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This won't work when cross compiling to other architectures. Why is it needed?

buildScript: |
# without a git directory maturin fails with:
# fatal: not a git repository (or any parent up to mount point
# dev/build/python/cryptography/2)
# See https://github.com/pyca/cryptography/issues/11845
git init .

mkdir -p bin && pushd bin
ln -snf $(which $CC) cc
export PATH=$(pwd):${PATH}
popd # bin

# build wheel to avoid
# ERROR Source /tmp/build-via-sdist-5zco0pfp/cryptography-46.0.5 does
# not appear to be a Python project
# Also see: https://github.com/pyca/cryptography/issues/11845
python3Build -w $1

packageScript: |
python3PackageTgt

provideDeps: ['python::*', '*-tgt']
22 changes: 22 additions & 0 deletions recipes/python/deprecated.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
inherit: ["python3::build"]

metaEnvironment:
PKG_VERSION: "1.3.1"
PKG_LICENSE: "MIT"

checkoutSCM:
scm: url
url: ${GITHUB_MIRROR}/laurent-laporte-pro/deprecated/archive/refs/tags/v${PKG_VERSION}.tar.gz
digestSHA256: 5bfaa49b1edadd5599b2117baf2bf037f493eeda686d6b2c004d55e8ace6f988
stripComponents: 1

depends:
- python::wrapt

buildScript: |
python3Build $1

packageScript: |
python3PackageTgt

provideDeps: ['python::*']
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will also provide build dependencies of class python3::build. I'm afraid the dependencies must be named explicitly. Maybe use yaml references?

depends: &deps
    - python::wrapt

...
provideDeps: *deps

17 changes: 17 additions & 0 deletions recipes/python/ecpy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
inherit: ["python3::build"]

metaEnvironment:
PKG_VERSION: "1.2.5"
PKG_LICENSE: "Apache-2.0"

checkoutSCM:
scm: url
url: https://github.com/cslashm/ECPy/archive/refs/tags/${PKG_VERSION}.tar.gz
digestSHA256: 02a2e990fe4b9c51a5a2d7518439ad80e5d839c931f76fa5144c50543e6a103f
stripComponents: 1

buildScript: |
python3Build $1

packageScript: |
python3PackageTgt
30 changes: 30 additions & 0 deletions recipes/python/maturin.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
inherit: ["python3::setuptools", cargo]

metaEnvironment:
PKG_VERSION: "1.12.6"
PKG_LICENSE: "MIT OR Apache-2.0"

checkoutSCM:
scm: url
url: ${GITHUB_MIRROR}/PyO3/maturin/archive/refs/tags/v${PKG_VERSION}.tar.gz
digestSHA256: d9fb69fb10a4574032feb93da3f98cbfbf4e652340135c968781845aa1f53147
stripComponents: 1

depends:
- python::puccinialin
- python::setuptools-rust
- python::semantic-version

checkoutDeterministic: True
checkoutScript: |
cargoFetchDeps

buildScript: |
python3BuildSetuptools $1

packageScript: |
python3PackageTgt

provideDeps: ['python::*']
provideTools:
maturin: "usr/bin"
20 changes: 20 additions & 0 deletions recipes/python/puccinialin.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
inherit: ["python3::build"]

metaEnvironment:
PKG_VERSION: "0.1.8"
PKG_LICENSE: "MIT OR Apache-2.0"

checkoutSCM:
scm: url
url: "https://files.pythonhosted.org/packages/34/7d/\
88810c578a1526a8a73ac07bf33fb65d68f9b9c82c37950d09159f4d1916/puccinialin-0.1.8.tar.gz"
digestSHA256: e19f6316967ae100bf3fb92d8af95e3cec11ce0de58acd2f1a0bca835403a394
stripComponents: 1

buildScript: |
python3Build $1

packageScript: |
python3PackageTgt

provideDeps: ['python::*']
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy'n'pase left over?

17 changes: 17 additions & 0 deletions recipes/python/semantic-version.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
inherit: ["python3::build"]

metaEnvironment:
PKG_VERSION: "2.10.0"
PKG_LICENSE: "BSD-2-Clause"

checkoutSCM:
scm: url
url: ${GITHUB_MIRROR}/rbarrois/python-semanticversion/archive/refs/tags/${PKG_VERSION}.tar.gz
digestSHA256: e234480908f633d2d80fdd97e87699135b2ed2fc9876b7f41d1d4a2d3262a0c4
stripComponents: 1

buildScript: |
python3Build $1

packageScript: |
python3PackageTgt
22 changes: 22 additions & 0 deletions recipes/python/setuptools-rust.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
inherit: ["python3::build"]

metaEnvironment:
PKG_VERSION: "1.12.0"
PKG_LICENSE: "MIT"

checkoutSCM:
scm: url
url: ${GITHUB_MIRROR}/PyO3/setuptools-rust/archive/refs/tags/v${PKG_VERSION}.tar.gz
digestSHA256: e6a8f4c4e3c5f0f87b192425572579b7842ea840b1bdda940e751f9d198a3f58
stripComponents: 1

depends:
- python::setuptools-scm

buildScript: |
python3Build $1

packageScript: |
python3PackageTgt

provideDeps: ['python::*']
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Again, this provides more than just python::setuptools-scm.

17 changes: 17 additions & 0 deletions recipes/python/wrapt.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
inherit: ["python3::build"]

metaEnvironment:
PKG_VERSION: "2.1.2"
PKG_LICENSE: "BSD-2-Clause"

checkoutSCM:
scm: url
url: ${GITHUB_MIRROR}/GrahamDumpleton/wrapt/archive/refs/tags/${PKG_VERSION}.tar.gz
digestSHA256: 9f289d4a27cb94eaa4ecf91cdcdb2508ba38db655ba3f43e018f88e1750b8915
stripComponents: 1

buildScript: |
python3Build $1

packageScript: |
python3PackageTgt
10 changes: 10 additions & 0 deletions tests/buildall/recipes/all.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -122,17 +122,22 @@ depends:
- perl::xml-parser-tgt

- python::anyio
- python::asn1
- python::build
- python::cachetools
- python::calver
- python::chardet
- python::cffi
- python::click
- python::colorama
- python::construct
- python::construct-dataclasses
- python::cryptography
- python::cython
- python::deprecated
- python::distlib
- python::docutils
- python::ecpy
- python::filelock
- python::funcy
- python::h11
Expand All @@ -142,20 +147,24 @@ depends:
- python::lxml
- python::mako
- python::markupsafe
- python::maturin
- python::packaging
- python::pathspec
- python::pbr
- python::pkg_about
- python::platformdirs
- python::pluggy
- python::psutil
- python::puccinialin
- python::pycotap
- python::pycparser
- python::pyc_wheel
- python::pyproject-api
- python::pyproject-hooks
- python::pyyaml
- python::regex
- python::semantic-version
- python::setuptools-rust
- python::setuptools-scm
- python::smbus3
- python::starlette
Expand All @@ -166,6 +175,7 @@ depends:
- python::typing_extensions
- python::uvicorn
- python::virtualenv
- python::wrapt

- utils::acpica
- utils::brtools
Expand Down