* update python-hypothesis-auto to 1.1.5-2

This commit is contained in:
Alexander Baldeck 2023-05-12 12:27:44 +02:00
parent dd42b78f37
commit d07414b97d
3 changed files with 4 additions and 63 deletions

View File

@ -3,9 +3,9 @@
_name=hypothesis-auto
pkgname=python-hypothesis-auto
pkgver=1.1.4
_commit=4ed588ab631d6c44c8959334a3425a8c0d207eff
pkgrel=7
pkgver=1.1.5
_commit=d3a9162feb79b310aa9ce61f8f8ac86caa591d38
pkgrel=2
pkgdesc="Extends Hypothesis to add fully automatic testing of type annotated functions"
url="https://github.com/timothycrosley/hypothesis-auto"
license=('MIT')
@ -17,19 +17,8 @@ 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
}
sha512sums=('SKIP')
build() {
cd $_name

View File

@ -1,24 +0,0 @@
From 8277b4232617c0433f80e9c2844452b9fae67a65 Mon Sep 17 00:00:00 2001
From: Fabian Affolter <mail@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"

View File

@ -1,24 +0,0 @@
From d10dd4a3100ec12d35ffbfa936d8553f7ecf0036 Mon Sep 17 00:00:00 2001
From: Fabian Affolter <mail@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]