Date: Friday, January 13, 2023 @ 18:57:13
  Author: dvzrv
Revision: 1383283

archrelease: copy trunk to community-any

Added:
  python-hypothesis-auto/repos/community-any/PKGBUILD
    (from rev 1383282, python-hypothesis-auto/trunk/PKGBUILD)
  
python-hypothesis-auto/repos/community-any/python-hypothesis-auto-1.1.4-poetry_core.patch
    (from rev 1383282, 
python-hypothesis-auto/trunk/python-hypothesis-auto-1.1.4-poetry_core.patch)
  
python-hypothesis-auto/repos/community-any/python-hypothesis-auto-1.1.4-version_constraints.patch
    (from rev 1383282, 
python-hypothesis-auto/trunk/python-hypothesis-auto-1.1.4-version_constraints.patch)
Deleted:
  python-hypothesis-auto/repos/community-any/PKGBUILD

--------------------------------------------------------+
 PKGBUILD                                               |   80 +++++++++------
 python-hypothesis-auto-1.1.4-poetry_core.patch         |   24 ++++
 python-hypothesis-auto-1.1.4-version_constraints.patch |   24 ++++
 3 files changed, 96 insertions(+), 32 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD    2023-01-13 18:56:48 UTC (rev 1383282)
+++ PKGBUILD    2023-01-13 18:57:13 UTC (rev 1383283)
@@ -1,32 +0,0 @@
-# Maintainer: Felix Yan <felixonm...@archlinux.org>
-
-pkgname=python-hypothesis-auto
-pkgver=1.1.4
-_commit=4ed588ab631d6c44c8959334a3425a8c0d207eff
-pkgrel=6
-pkgdesc="Extends Hypothesis to add fully automatic testing of type annotated 
functions"
-url="https://github.com/timothycrosley/hypothesis-auto";
-license=('MIT')
-arch=('any')
-depends=('python-pydantic' 'python-hypothesis')
-makedepends=('python-pyproject2setuppy')
-checkdepends=('python-pytest')
-source=("https://github.com/timothycrosley/hypothesis-auto/archive/$_commit/$pkgname-$_commit.tar.gz";)
-sha512sums=('96a9b541dedcbe20eae242201ad2d57366f61ab60aa388ad67102a18bd1fdd916f3a45cee67ff7021dc4358707457f6f607e6a0666b85005150d09e398bfda58')
-
-build() {
-  cd hypothesis-auto-$_commit
-  python -m pyproject2setuppy build
-}
-
-check() {
-  cd hypothesis-auto-$_commit
-  python -m pytest
-}
-
-package() {
-  cd hypothesis-auto-$_commit
-  python -m pyproject2setuppy install --root="$pkgdir" --optimize=1
-
-  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
-}

Copied: python-hypothesis-auto/repos/community-any/PKGBUILD (from rev 1383282, 
python-hypothesis-auto/trunk/PKGBUILD)
===================================================================
--- PKGBUILD                            (rev 0)
+++ PKGBUILD    2023-01-13 18:57:13 UTC (rev 1383283)
@@ -0,0 +1,48 @@
+# Maintainer: Felix Yan <felixonm...@archlinux.org>
+
+_name=hypothesis-auto
+pkgname=python-hypothesis-auto
+pkgver=1.1.4
+_commit=4ed588ab631d6c44c8959334a3425a8c0d207eff
+pkgrel=7
+pkgdesc="Extends Hypothesis to add fully automatic testing of type annotated 
functions"
+url="https://github.com/timothycrosley/hypothesis-auto";
+license=('MIT')
+arch=('any')
+depends=('python-pydantic' 'python-hypothesis')
+makedepends=('git' 'python-build' 'python-installer' 'python-poetry-core' 
'python-wheel')
+checkdepends=('python-pytest')
+optdepends=('python-pytest: for pytest plugin')
+# NOTE: there are no tags: 
https://github.com/timothycrosley/hypothesis-auto/issues/14
+source=(
+  "git+$url#commit=$_commit"
+  $pkgname-1.1.4-poetry_core.patch
+  $pkgname-1.1.4-version_constraints.patch
+)
+sha512sums=('SKIP'
+            
'a9d0d6316c884a82368b15ea11d5a16ada570c710507c5a581c48640670ee5667ac538796e4849f53cac22083799d412d7bf63f9cebff7c6dfcb00a57d8064ad'
+            
'c93e54063d3758f136d085844c4b983c5ba9457eb8affa2b91acfa89ad8e0a11e0aa06e6250ed56fe90cb4851d621f988d31ca04619ce05e9fb3b6fede4c5487')
+
+prepare() {
+  # fix broken build-system: 
https://github.com/timothycrosley/hypothesis-auto/pull/19
+  patch -Np1 -d $_name -i ../$pkgname-1.1.4-poetry_core.patch
+  # fix broken version constraints: 
https://github.com/timothycrosley/hypothesis-auto/pull/20
+  patch -Np1 -d $_name -i ../$pkgname-1.1.4-version_constraints.patch
+}
+
+build() {
+  cd $_name
+  python -m build --wheel --no-isolation
+}
+
+check() {
+  cd $_name
+  python -m pytest -v
+}
+
+package() {
+  cd $_name
+  python -m installer --destdir="$pkgdir" dist/*.whl
+
+  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
+}

Copied: 
python-hypothesis-auto/repos/community-any/python-hypothesis-auto-1.1.4-poetry_core.patch
 (from rev 1383282, 
python-hypothesis-auto/trunk/python-hypothesis-auto-1.1.4-poetry_core.patch)
===================================================================
--- python-hypothesis-auto-1.1.4-poetry_core.patch                              
(rev 0)
+++ python-hypothesis-auto-1.1.4-poetry_core.patch      2023-01-13 18:57:13 UTC 
(rev 1383283)
@@ -0,0 +1,24 @@
+From 8277b4232617c0433f80e9c2844452b9fae67a65 Mon Sep 17 00:00:00 2001
+From: Fabian Affolter <m...@fabian-affolter.ch>
+Date: Wed, 2 Nov 2022 08:22:03 +0100
+Subject: [PATCH] Switch to poetry-core
+
+---
+ pyproject.toml | 5 +++--
+ 1 file changed, 3 insertions(+), 2 deletions(-)
+
+diff --git a/pyproject.toml b/pyproject.toml
+index dff94b0..f4d5fce 100644
+--- a/pyproject.toml
++++ b/pyproject.toml
+@@ -39,7 +39,8 @@ favicon = "art/logo.png"
+ logo = "art/logo.png"
+ name = "material"
+ palette = {primary = "teal", accent = "cyan"}
++
+ [build-system]
+-requires = ["poetry>=0.12"]
+-build-backend = "poetry.masonry.api"
++requires = ["poetry-core>=1.0.0"]
++build-backend = "poetry.core.masonry.api"
+ 

Copied: 
python-hypothesis-auto/repos/community-any/python-hypothesis-auto-1.1.4-version_constraints.patch
 (from rev 1383282, 
python-hypothesis-auto/trunk/python-hypothesis-auto-1.1.4-version_constraints.patch)
===================================================================
--- python-hypothesis-auto-1.1.4-version_constraints.patch                      
        (rev 0)
+++ python-hypothesis-auto-1.1.4-version_constraints.patch      2023-01-13 
18:57:13 UTC (rev 1383283)
@@ -0,0 +1,24 @@
+From d10dd4a3100ec12d35ffbfa936d8553f7ecf0036 Mon Sep 17 00:00:00 2001
+From: Fabian Affolter <m...@fabian-affolter.ch>
+Date: Wed, 2 Nov 2022 08:29:03 +0100
+Subject: [PATCH] Fix style
+
+---
+ pyproject.toml | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/pyproject.toml b/pyproject.toml
+index dff94b0..9b0c888 100644
+--- a/pyproject.toml
++++ b/pyproject.toml
+@@ -8,8 +8,8 @@ readme = "README.md"
+ 
+ [tool.poetry.dependencies]
+ python = "^3.6"
+-pydantic = ">=0.32.2<2.0.0"
+-hypothesis = ">=4.36<6.0.0"
++pydantic = ">=0.32.2, <2.0.0"
++hypothesis = ">=4.36, <6.0.0"
+ pytest = { version = "^4.0.0", optional = true }
+ 
+ [tool.poetry.extras]

Reply via email to