Daniel M. Capella pushed to branch main at Arch Linux / Packaging / Packages /
python-time-machine
Commits:
3a12a5fb by Daniel M. Capella at 2025-08-05T19:02:15-04:00
upgpkg: 2.17.0-1
- - - - -
2 changed files:
- .SRCINFO
- PKGBUILD
Changes:
=====================================
.SRCINFO
=====================================
@@ -1,12 +1,13 @@
pkgbase = python-time-machine
pkgdesc = Travel through time in your tests
- pkgver = 2.16.0
- pkgrel = 2
+ pkgver = 2.17.0
+ pkgrel = 1
url = https://github.com/adamchainz/time-machine
arch = x86_64
license = MIT
checkdepends = python-pytest
checkdepends = python-pytest-randomly
+ checkdepends = python-tokenize-rt
makedepends = git
makedepends = python-build
makedepends = python-installer
@@ -15,7 +16,8 @@ pkgbase = python-time-machine
depends = python
depends = python-dateutil
optdepends = python-pytest: for pytest plugin
- source =
python-time-machine::git+https://github.com/adamchainz/time-machine#tag=2.16.0
- b2sums =
800fd97077b62497eac4378d732ff32dfde9b16261237ded7cb55452b4d11acd44ade247a56749e8cd05165ada0c464130f14a18319172d5b8d33d5c52c8cad5
+ optdepends = python-tokenize-rt: for the migration tool
+ source =
python-time-machine::git+https://github.com/adamchainz/time-machine#tag=2.17.0
+ b2sums =
1b8b9810558e5cc310134ba05fece8d1ae51aa16aef0e4901b8d4ddf8b5f261a990d23a414f0b56b743f8f91fe2ec91c14f84e4d10ac8497956a6f352ea70cd7
pkgname = python-time-machine
=====================================
PKGBUILD
=====================================
@@ -2,8 +2,8 @@
# Maintainer: Daniel M. Capella <[email protected]>
pkgname=python-time-machine
-pkgver=2.16.0
-pkgrel=2
+pkgver=2.17.0
+pkgrel=1
pkgdesc='Travel through time in your tests'
arch=('x86_64')
url='https://github.com/adamchainz/time-machine'
@@ -22,10 +22,14 @@ makedepends=(
checkdepends=(
'python-pytest'
'python-pytest-randomly'
+ 'python-tokenize-rt'
+)
+optdepends=(
+ 'python-pytest: for pytest plugin'
+ 'python-tokenize-rt: for the migration tool'
)
-optdepends=('python-pytest: for pytest plugin')
source=("$pkgname::git+$url#tag=$pkgver")
-b2sums=('800fd97077b62497eac4378d732ff32dfde9b16261237ded7cb55452b4d11acd44ade247a56749e8cd05165ada0c464130f14a18319172d5b8d33d5c52c8cad5')
+b2sums=('1b8b9810558e5cc310134ba05fece8d1ae51aa16aef0e4901b8d4ddf8b5f261a990d23a414f0b56b743f8f91fe2ec91c14f84e4d10ac8497956a6f352ea70cd7')
build() {
cd "$pkgname"
@@ -36,23 +40,18 @@ build() {
check() {
cd "$pkgname"
- local site_packages=$(python -c "import site;
print(site.getsitepackages()[0])")
-
- # install to temporary directory
- python -m installer --destdir="$(pwd)/tmp_install" dist/*.whl
-
- PYTHONPATH="$(pwd)/tmp_install$site_packages" \
- pytest -v
+ python -m venv --system-site-packages test-env
+ test-env/bin/python -m installer dist/*.whl
+ test-env/bin/python -m pytest -v
}
package() {
+ local site_packages=$(python -c "import site;
print(site.getsitepackages()[0])")
+ install -d "$pkgdir/usr/share/licenses/$pkgname"
+ ln -s "$site_packages/time_machine-$pkgver.dist-info/licenses/LICENSE" \
+ "$pkgdir/usr/share/licenses/$pkgname"
+
cd "$pkgname"
python -m installer --destdir="$pkgdir" dist/*.whl
-
- # symlink license file
- local site_packages=$(python -c "import site;
print(site.getsitepackages()[0])")
- install -d "$pkgdir/usr/share/licenses/$pkgname"
- ln -s "$site_packages/time_machine-$pkgver.dist-info/LICENSE" \
- "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/python-time-machine/-/commit/3a12a5fbf97376808bf291c6265591f320bacf50
--
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/python-time-machine/-/commit/3a12a5fbf97376808bf291c6265591f320bacf50
You're receiving this email because of your account on gitlab.archlinux.org.