gitea+deps
This commit is contained in:
parent
0bfb332015
commit
a88a5dc50c
67
maturin/alr.sh
Normal file
67
maturin/alr.sh
Normal file
@ -0,0 +1,67 @@
|
|||||||
|
name='maturin'
|
||||||
|
version='1.7.4'
|
||||||
|
release='1'
|
||||||
|
desc='Build and publish crates with pyo3, rust-cpython and cffi bindings.'
|
||||||
|
homepage='https://github.com/PyO3/maturin'
|
||||||
|
maintainer_ru='Евгений Храмов <xpamych@yandex.ru>'
|
||||||
|
architectures=('amd64')
|
||||||
|
license=('Apache-2.0 OR MIT')
|
||||||
|
provides=('maturin')
|
||||||
|
conflicts=('maturin')
|
||||||
|
|
||||||
|
depends=(
|
||||||
|
'bzip2'
|
||||||
|
'libgcc'
|
||||||
|
'glibc'
|
||||||
|
'openssl'
|
||||||
|
'rust'
|
||||||
|
)
|
||||||
|
build_deps=(
|
||||||
|
'bzip2'
|
||||||
|
'libgcc'
|
||||||
|
'git'
|
||||||
|
'glibc'
|
||||||
|
'python3-build'
|
||||||
|
'python3-installer'
|
||||||
|
'python3-setuptools'
|
||||||
|
'python3-setuptools-rust'
|
||||||
|
'python3-wheel'
|
||||||
|
'rust'
|
||||||
|
'openssl-devel'
|
||||||
|
)
|
||||||
|
|
||||||
|
options=(!lto)
|
||||||
|
sources=("https://github.com/PyO3/maturin/archive/v$version/$name-v$version.tar.gz")
|
||||||
|
checksums=('SKIP')
|
||||||
|
|
||||||
|
_pick() {
|
||||||
|
local p="$1" f d; shift
|
||||||
|
for f; do
|
||||||
|
d="$srcdir/$p/${f#$pkgdir/}"
|
||||||
|
mkdir -p "$(dirname "$d")"
|
||||||
|
mv "$f" "$d"
|
||||||
|
rmdir -p --ignore-fail-on-non-empty "$(dirname "$f")"
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
|
prepare() {
|
||||||
|
cd $name-$version
|
||||||
|
cargo fetch --locked --target "x86_64-unknown-linux-gnu"
|
||||||
|
}
|
||||||
|
|
||||||
|
build() {
|
||||||
|
cd $name-$version
|
||||||
|
MATURIN_SETUP_ARGS="--all-features" python -m build --wheel --no-isolation
|
||||||
|
}
|
||||||
|
|
||||||
|
package() {
|
||||||
|
cd $name-$version
|
||||||
|
python -m installer --destdir="$pkgdir" dist/*.whl
|
||||||
|
install -vDm 644 {Changelog,README}.md -t "$pkgdir/usr/share/doc/$pkgname/"
|
||||||
|
install-license license-mit ./maturin/LICENSE
|
||||||
|
|
||||||
|
(
|
||||||
|
cd "$pkgdir"
|
||||||
|
_pick python-name usr/lib
|
||||||
|
)
|
||||||
|
}
|
59
python3-maturin/alr.sh
Normal file
59
python3-maturin/alr.sh
Normal file
@ -0,0 +1,59 @@
|
|||||||
|
name='python3-maturin'
|
||||||
|
version='1.7.4'
|
||||||
|
release='1'
|
||||||
|
desc='Build and publish crates with pyo3, rust-cpython and cffi bindings - Python bindings.'
|
||||||
|
homepage='https://github.com/PyO3/maturin'
|
||||||
|
maintainer_ru='Евгений Храмов <xpamych@yandex.ru>'
|
||||||
|
architectures=('amd64')
|
||||||
|
license=('Apache-2.0 OR MIT')
|
||||||
|
provides=('python3-maturin')
|
||||||
|
conflicts=('python3-maturin')
|
||||||
|
|
||||||
|
deps=(
|
||||||
|
'maturin'
|
||||||
|
'python'
|
||||||
|
)
|
||||||
|
build_deps=(
|
||||||
|
'bzip2'
|
||||||
|
'libgcc'
|
||||||
|
'git'
|
||||||
|
'glibc'
|
||||||
|
'python3-build'
|
||||||
|
'python3-installer'
|
||||||
|
'python3-setuptools'
|
||||||
|
'python3-setuptools-rust'
|
||||||
|
'python3-wheel'
|
||||||
|
'rust'
|
||||||
|
)
|
||||||
|
|
||||||
|
options=(!lto)
|
||||||
|
sources=("https://github.com/PyO3/maturin/archive/v$version/maturin-v$version.tar.gz")
|
||||||
|
checksums=('SKIP')
|
||||||
|
|
||||||
|
|
||||||
|
_pick() {
|
||||||
|
local p="$1" f d; shift
|
||||||
|
for f; do
|
||||||
|
d="$srcdir/$p/${f#$pkgdir/}"
|
||||||
|
mkdir -p "$(dirname "$d")"
|
||||||
|
mv "$f" "$d"
|
||||||
|
rmdir -p --ignore-fail-on-non-empty "$(dirname "$f")"
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
|
prepare() {
|
||||||
|
cd maturin-$version
|
||||||
|
cargo fetch --locked --target "x86_64-unknown-linux-gnu"
|
||||||
|
}
|
||||||
|
|
||||||
|
build() {
|
||||||
|
cd maturin-$version
|
||||||
|
MATURIN_SETUP_ARGS="--all-features" python -m build --wheel --no-isolation
|
||||||
|
}
|
||||||
|
|
||||||
|
package() {
|
||||||
|
cd maturin-$version
|
||||||
|
mv -v maturin/* "$pkgdir"
|
||||||
|
|
||||||
|
install-license ./license-mit ./python3-maturin/LICENSE
|
||||||
|
}
|
51
python3-orjson/alr.sh
Normal file
51
python3-orjson/alr.sh
Normal file
@ -0,0 +1,51 @@
|
|||||||
|
_name='orjson'
|
||||||
|
name='python3-orjson'
|
||||||
|
version='3.10.7'
|
||||||
|
release=1
|
||||||
|
desc="Fast, correct Python JSON library supporting dataclasses and datetimes"
|
||||||
|
homepage="https://github.com/ijl/orjson"
|
||||||
|
architectures=('amd64')
|
||||||
|
license=(
|
||||||
|
'Apache-2.0'
|
||||||
|
'MIT'
|
||||||
|
)
|
||||||
|
deps=(
|
||||||
|
'gcc-libs'
|
||||||
|
'glibc'
|
||||||
|
'python'
|
||||||
|
)
|
||||||
|
build_deps=(
|
||||||
|
'maturin'
|
||||||
|
'python3-maturin'
|
||||||
|
'python3-installer'
|
||||||
|
'rust'
|
||||||
|
'python3-arrow'
|
||||||
|
'python3-pendulum'
|
||||||
|
'python3-psutil'
|
||||||
|
'python3-pytest'
|
||||||
|
'python3-pytz'
|
||||||
|
'python3-xxhash'
|
||||||
|
)
|
||||||
|
sources=(https://github.com/ijl/orjson/archive/version/$_name-version.tar.gz)
|
||||||
|
checksums=('SKIP')
|
||||||
|
|
||||||
|
build() {
|
||||||
|
cd $_name-version
|
||||||
|
maturin build --release --strip
|
||||||
|
}
|
||||||
|
|
||||||
|
check() {
|
||||||
|
local _site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
|
||||||
|
|
||||||
|
cd $_name-version
|
||||||
|
python -m installer --destdir=test_dir target/wheels/*.whl
|
||||||
|
export PYTHONPATH="test_dir/$_site_packages:$PYTHONPATH"
|
||||||
|
pytest -vv
|
||||||
|
}
|
||||||
|
|
||||||
|
package() {
|
||||||
|
cd $_name-version
|
||||||
|
python -m installer --destdir="$pkgdir" target/wheels/*.whl
|
||||||
|
install -vDm 644 {CHANGELOG,README}.md -t "$pkgdir/usr/share/doc/$name/"
|
||||||
|
install -vDm 644 LICENSE-* -t "$pkgdir/usr/share/licenses/$name/"
|
||||||
|
}
|
@ -1,6 +1,6 @@
|
|||||||
name='python3-poetry'
|
name='python3-poetry'
|
||||||
version='1.8.3'
|
version='1.8.3'
|
||||||
release='3'
|
release='4'
|
||||||
desc='Python dependency management and packaging made easy'
|
desc='Python dependency management and packaging made easy'
|
||||||
homepage='https://python-poetry.org'
|
homepage='https://python-poetry.org'
|
||||||
maintainer="Евгений Храмов <xpamych@yandex.ru>"
|
maintainer="Евгений Храмов <xpamych@yandex.ru>"
|
||||||
@ -10,34 +10,6 @@ provides=('poetry')
|
|||||||
conflicts=('poetry')
|
conflicts=('poetry')
|
||||||
|
|
||||||
deps=(
|
deps=(
|
||||||
'python-build'
|
|
||||||
'python-cachecontrol'
|
|
||||||
'python-cachy'
|
|
||||||
'python-cleo'
|
|
||||||
'python-crashtest'
|
|
||||||
'python-dulwich'
|
|
||||||
'python-filelock'
|
|
||||||
'python-html5lib'
|
|
||||||
'python-installer'
|
|
||||||
'python-jsonschema'
|
|
||||||
'python-keyring'
|
|
||||||
'python-lockfile'
|
|
||||||
'python-packaging'
|
|
||||||
'python-pexpect'
|
|
||||||
'python-pkginfo'
|
|
||||||
'python-platformdirs'
|
|
||||||
'python-poetry-core'
|
|
||||||
'python-poetry-plugin-export'
|
|
||||||
'python-pyproject-hooks'
|
|
||||||
'python-requests'
|
|
||||||
'python-requests-toolbelt'
|
|
||||||
'python-shellingham'
|
|
||||||
'python-tomlkit'
|
|
||||||
'python-trove-classifiers'
|
|
||||||
'python-urllib3'
|
|
||||||
'python-virtualenv'
|
|
||||||
)
|
|
||||||
deps_redos=(
|
|
||||||
'python3-build'
|
'python3-build'
|
||||||
'python3-CacheControl'
|
'python3-CacheControl'
|
||||||
'python3-cachy'
|
'python3-cachy'
|
||||||
@ -65,17 +37,8 @@ deps_redos=(
|
|||||||
'python3-urllib3'
|
'python3-urllib3'
|
||||||
'python3-virtualenv'
|
'python3-virtualenv'
|
||||||
)
|
)
|
||||||
|
|
||||||
build_deps=(
|
build_deps=(
|
||||||
'python-deepdiff' # not mentioned but required
|
|
||||||
'python-psutil' # for python-pytest-xdist
|
|
||||||
'python-httpretty'
|
|
||||||
'python-pip' # not mentioned but required
|
|
||||||
'python-pytest'
|
|
||||||
'python-pytest-mock'
|
|
||||||
'python-pytest-randomly'
|
|
||||||
'python-pytest-xdist'
|
|
||||||
)
|
|
||||||
build_deps_redos=(
|
|
||||||
'python3-deepdiff' # not mentioned but required
|
'python3-deepdiff' # not mentioned but required
|
||||||
'python-psutil' # for python-pytest-xdist
|
'python-psutil' # for python-pytest-xdist
|
||||||
'python3-httpretty'
|
'python3-httpretty'
|
||||||
|
Loading…
Reference in New Issue
Block a user