-
Notifications
You must be signed in to change notification settings - Fork 12
Python #164
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Python #164
Changes from all commits
4cae7bb
10acc1d
39410f9
a5a5711
acecf2b
1a8b905
186029d
437d527
7597f17
7da41f2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| 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 |
| 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'] |
| 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 | ||
| 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'] | ||
| 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::*'] | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This will also provide build dependencies of class depends: &deps
- python::wrapt
...
provideDeps: *deps |
||
| 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 |
| 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" |
| 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::*'] | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Copy'n'pase left over? |
||
| 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 |
| 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::*'] | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Again, this provides more than just |
||
| 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 |
There was a problem hiding this comment.
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?