mirror of
https://github.com/BioArchLinux/Packages.git
synced 2025-03-10 12:02:42 +00:00
python-future: del for imcompatiable for py3.12
This commit is contained in:
parent
5a7d1e37e0
commit
77c0e237cb
3 changed files with 0 additions and 83 deletions
|
@ -1,42 +0,0 @@
|
|||
# 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
|
||||
}
|
|
@ -1,27 +0,0 @@
|
|||
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
|
||||
}
|
|
@ -1,14 +0,0 @@
|
|||
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