mirror of
https://github.com/BioArchLinux/Packages.git
synced 2025-03-10 12:02:42 +00:00
python-future: init for ipyrad
This commit is contained in:
parent
fee6f69b6a
commit
5a7d1e37e0
5 changed files with 86 additions and 2 deletions
|
@ -5,8 +5,8 @@ pkgdesc="Interactive assembly and analysis of RAD-seq data sets."
|
|||
arch=('any')
|
||||
url="https://github.com/dereneaton/ipyrad"
|
||||
license=('GPL-3.0-or-later')
|
||||
depends=('python' 'python-pandas' 'python-scipy' 'python-numpy' 'python-numba' 'python-future' 'python-h5py' 'python-ipyparallel' 'python-requests' 'python-mpi4py'
|
||||
'cutadapt' 'python-pysam' 'bedtools' 'vsearch' 'bwa' 'samtools' 'python-toyplot')
|
||||
depends=('python' 'python-pandas' 'python-scipy' 'python-numpy' 'python-numba' 'python-h5py' 'python-ipyparallel' 'python-requests' 'python-mpi4py'
|
||||
'python-future' 'cutadapt' 'python-pysam' 'bedtools' 'vsearch' 'bwa' 'samtools' 'python-toyplot')
|
||||
optdepends=('jupyter-notebook: for interactive')
|
||||
makedepends=('python-build' 'python-installer' 'python-wheel' 'gcc' 'make')
|
||||
source=("https://github.com/dereneaton/ipyrad/archive/${pkgver}.tar.gz"
|
||||
|
|
|
@ -15,6 +15,7 @@ repo_depends:
|
|||
- bwa
|
||||
- samtools
|
||||
- python-toyplot
|
||||
- python-future
|
||||
update_on:
|
||||
- source: github
|
||||
github: dereneaton/ipyrad
|
||||
|
|
42
BioArchLinux/python-future/PKGBUILD
Normal file
42
BioArchLinux/python-future/PKGBUILD
Normal file
|
@ -0,0 +1,42 @@
|
|||
# Contributor: Michał Wojdyła < micwoj9292 at gmail dot com >
|
||||
# Contributor: Felix Yan <felixonmars@archlinux.org>
|
||||
# Contributor: Christopher Arndt <aur -at- chrisarndt -dot- de>
|
||||
# Contributor: Gaute Hope <eg@gaute.vetsj.com>
|
||||
# Contributor: Melissa Padilla <mpadilla2 at hotmail dot com>
|
||||
|
||||
pkgname=python-future
|
||||
pkgver=1.0.0
|
||||
pkgrel=4
|
||||
pkgdesc="Clean single-source support for Python 3 and 2"
|
||||
url="https://python-future.org/"
|
||||
arch=('any')
|
||||
license=('MIT')
|
||||
depends=('python')
|
||||
provides=('futurize' 'pasteurize')
|
||||
checkdepends=('python-requests' 'python-pytest')
|
||||
makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-wheel')
|
||||
optdepends=('python-setuptools: futurize and pasteurize scripts')
|
||||
options=('!emptydirs')
|
||||
source=("https://pypi.io/packages/source/f/future/future-$pkgver.tar.gz")
|
||||
sha512sums=('8e28d53172e3ae7b3b27c424a48fb698a6e86bf1c648cdf74e7fd57d34901a9bda18429fe4e176d70be67fc6c80b7f961b3021356594e38b5f294406af40bc61')
|
||||
install=future.install
|
||||
build() {
|
||||
cd "$srcdir"/future-$pkgver
|
||||
python -m build --wheel
|
||||
}
|
||||
# https://github.com/PythonCharmers/python-future/issues/640
|
||||
# https://python-future.org/overview.html#status
|
||||
check() {
|
||||
cd "$srcdir"/future-$pkgver
|
||||
# test_future needs python2 so it is disabled here
|
||||
#PYTHONPATH="$PWD/build/lib:$PYTHONPATH" pytest -v tests/test_future
|
||||
PYTHONPATH="$PWD/build/lib:$PYTHONPATH" pytest -v tests/test_past
|
||||
}
|
||||
|
||||
package() {
|
||||
cd future-$pkgver
|
||||
|
||||
python -m installer --destdir="$pkgdir" dist/*.whl
|
||||
install -D -m644 LICENSE.txt \
|
||||
"$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt
|
||||
}
|
27
BioArchLinux/python-future/future.install
Normal file
27
BioArchLinux/python-future/future.install
Normal file
|
@ -0,0 +1,27 @@
|
|||
python_version_warning() {
|
||||
echo ""
|
||||
echo ""
|
||||
echo ""
|
||||
echo "WARNING: python-future package is not compatible with Python 3.13"
|
||||
echo ""
|
||||
echo ""
|
||||
echo ""
|
||||
echo "The python-future project was created in 2013 to attempt to save Python from the schism of version incompatibility that was threatening to tear apart the language (as Perl 6 contributed to the death of Perl)."
|
||||
echo ""
|
||||
echo "That time is now past. Thanks to a huge porting effort across the Python community, Python 3 eventually thrived. Python 2 reached its end of life in 2020 and the python-future package should no longer be necessary. Use it to help with porting legacy code to Python 3 but don’t depend on it for new code."
|
||||
echo ""
|
||||
echo ""
|
||||
echo ""
|
||||
echo "If you use packages that depend on it, please contact maintainers and/or upstream of these packages and try to work out whether this dependency is really needed."
|
||||
echo ""
|
||||
echo ""
|
||||
echo ""
|
||||
}
|
||||
|
||||
post_install() {
|
||||
python_version_warning
|
||||
}
|
||||
|
||||
post_upgrade() {
|
||||
python_version_warning
|
||||
}
|
14
BioArchLinux/python-future/lilac.yaml
Normal file
14
BioArchLinux/python-future/lilac.yaml
Normal file
|
@ -0,0 +1,14 @@
|
|||
build_prefix: extra-x86_64
|
||||
maintainers:
|
||||
- github: starsareintherose
|
||||
email: kuoi@bioarchlinux.org
|
||||
pre_build_script: |
|
||||
update_pkgver_and_pkgrel(_G.newver.lstrip('v'))
|
||||
run_cmd(['updpkgsums'])
|
||||
post_build_script: |
|
||||
git_pkgbuild_commit()
|
||||
update_on:
|
||||
- source: pypi
|
||||
pypi: future
|
||||
prefix: 'v'
|
||||
- alias: python
|
Loading…
Add table
Reference in a new issue