David Runge pushed to branch main at Arch Linux / Packaging / Packages / 
python-arrow


Commits:
00f47f49 by David Runge at 2024-04-05T21:58:27+02:00
Switch to correct SPDX license identifier

Signed-off-by: David Runge <[email protected]>

- - - - -
e8e66034 by David Runge at 2024-04-05T22:02:22+02:00
Switch to upstream provided auto-generated source tarball

Signed-off-by: David Runge <[email protected]>

- - - - -
6d3b399d by David Runge at 2024-04-05T22:09:14+02:00
Use system-wide pytest instead of tox

Tox installs requirements during check() into a venv.
The tox environment is hardcoded.
However, we want to test against system dependencies.

Signed-off-by: David Runge <[email protected]>

- - - - -
37ff1a30 by David Runge at 2024-04-05T22:11:05+02:00
upgpkg: 1.3.0-2

- - - - -


2 changed files:

- .SRCINFO
- PKGBUILD


Changes:

=====================================
.SRCINFO
=====================================
@@ -1,11 +1,14 @@
 pkgbase = python-arrow
        pkgdesc = Better dates and times for Python
        pkgver = 1.3.0
-       pkgrel = 1
+       pkgrel = 2
        url = https://arrow.readthedocs.io
        arch = any
-       license = APACHE
-       checkdepends = python-tox
+       license = Apache-2.0
+       checkdepends = python-pytest
+       checkdepends = python-pytest-mock
+       checkdepends = python-pytz
+       checkdepends = python-simplejson
        makedepends = git
        makedepends = python-build
        makedepends = python-flit-core
@@ -13,7 +16,7 @@ pkgbase = python-arrow
        depends = python
        depends = python-dateutil
        depends = python-typing_extensions
-       source = 
git+https://github.com/crsmithdev/arrow.git#tag=87a1a774aad0505d9da18ad1d16f6e571f262503
-       sha256sums = SKIP
+       source = 
python-arrow-1.3.0.tar.gz::https://github.com/arrow-py/arrow/archive/refs/tags/1.3.0.tar.gz
+       sha256sums = 
108c9d0339dbb06f6a255d1e8399a9bd88ec53ae6ede044b4ca7b3c563184a1b
 
 pkgname = python-arrow


=====================================
PKGBUILD
=====================================
@@ -2,12 +2,14 @@
 # Contributor: Tatsuyuki Ishi <[email protected]>
 
 pkgname=python-arrow
+_name="${pkgname#python-}"
 pkgver=1.3.0
-pkgrel=1
+pkgrel=2
 pkgdesc='Better dates and times for Python'
 arch=(any)
 url=https://arrow.readthedocs.io
-license=(APACHE)
+_url=https://github.com/arrow-py/arrow
+license=(Apache-2.0)
 depends=(
   python
   python-dateutil
@@ -19,28 +21,27 @@ makedepends=(
   python-flit-core
   python-installer
 )
-checkdepends=(python-tox)
-_tag=87a1a774aad0505d9da18ad1d16f6e571f262503
-source=(git+https://github.com/crsmithdev/arrow.git#tag=${_tag})
-sha256sums=(SKIP)
-
-pkgver() {
-  cd arrow
-  git describe --tags
-}
+checkdepends=(
+  python-pytest
+  python-pytest-mock
+  python-pytz
+  python-simplejson
+)
+source=($pkgname-$pkgver.tar.gz::$_url/archive/refs/tags/$pkgver.tar.gz)
+sha256sums=('108c9d0339dbb06f6a255d1e8399a9bd88ec53ae6ede044b4ca7b3c563184a1b')
 
 build() {
-  cd arrow
+  cd $_name-$pkgver
   python -m build --wheel --no-isolation
 }
 
 check() {
-  cd arrow
-  tox -e py311
+  cd $_name-$pkgver
+  pytest -vv -o addopts=''
 }
 
 package() {
-  python -m installer --destdir="${pkgdir}" arrow/dist/*.whl
+  python -m installer --destdir="${pkgdir}" $_name-$pkgver/dist/*.whl
 }
 
 # vim: ts=2 sw=2 et:



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-arrow/-/compare/ba93cd2e1bd9f6c430164fb8491b6f8631231913...37ff1a30baa32eb776375e85e70f7214b38bf814

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-arrow/-/compare/ba93cd2e1bd9f6c430164fb8491b6f8631231913...37ff1a30baa32eb776375e85e70f7214b38bf814
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to