1 |
commit: 64cc74f98f3c0256c88893bee675da8241721aa9 |
2 |
Author: Gábor Oszkár Dénes <gaboroszkar <AT> protonmail <DOT> com> |
3 |
AuthorDate: Wed Mar 30 17:01:50 2022 +0000 |
4 |
Commit: Gábor Oszkár Dénes <gaboroszkar <AT> protonmail <DOT> com> |
5 |
CommitDate: Wed Mar 30 17:01:50 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=64cc74f9 |
7 |
|
8 |
dev-python/python-constraint: new package |
9 |
|
10 |
Package-Manager: Portage-3.0.30, Repoman-3.0.3 |
11 |
Signed-off-by: Gábor Oszkár Dénes <gaboroszkar <AT> protonmail.com> |
12 |
|
13 |
dev-python/python-constraint/Manifest | 1 + |
14 |
.../python-constraint-1.4.0-exclude-examples.patch | 11 +++++++++++ |
15 |
dev-python/python-constraint/metadata.xml | 12 ++++++++++++ |
16 |
.../python-constraint-1.4.0.ebuild | 21 +++++++++++++++++++++ |
17 |
4 files changed, 45 insertions(+) |
18 |
|
19 |
diff --git a/dev-python/python-constraint/Manifest b/dev-python/python-constraint/Manifest |
20 |
new file mode 100644 |
21 |
index 000000000..c91937213 |
22 |
--- /dev/null |
23 |
+++ b/dev-python/python-constraint/Manifest |
24 |
@@ -0,0 +1 @@ |
25 |
+DIST python-constraint-1.4.0.tar.gz 24966 BLAKE2B 5ada7926f226536a1384bf9a082da41824e46d683ee71a278c50e1e5ca0a21eb3acbde4c0b47d6b48c53864ab4ea47d602fc9acb976423035aee74b0c6f3ed85 SHA512 fbc65ba5854e227e62469290e2d8362ed3247931592e2ac7eb5bcd5d3f9f720bbab8a984a8f7cf9dce989663f13965c5401286a1bdc673c2c076c8b22e19f0cd |
26 |
|
27 |
diff --git a/dev-python/python-constraint/files/python-constraint-1.4.0-exclude-examples.patch b/dev-python/python-constraint/files/python-constraint-1.4.0-exclude-examples.patch |
28 |
new file mode 100644 |
29 |
index 000000000..797b8e18c |
30 |
--- /dev/null |
31 |
+++ b/dev-python/python-constraint/files/python-constraint-1.4.0-exclude-examples.patch |
32 |
@@ -0,0 +1,11 @@ |
33 |
+--- a/setup.py 2022-02-27 15:57:35.035889587 +0100 |
34 |
++++ b/setup.py 2022-02-27 15:58:04.049889476 +0100 |
35 |
+@@ -70,7 +70,7 @@ |
36 |
+ keywords="csp constraint solving problems problem solver", |
37 |
+ # You can just specify the packages manually here if your project is |
38 |
+ # simple. Or you can use find_packages(). |
39 |
+- packages=find_packages(exclude=["contrib", "docs", "tests*"]), |
40 |
++ packages=find_packages(exclude=["contrib", "docs", "tests*", "examples*"]), |
41 |
+ # List run-time dependencies here. These will be installed by pip when your |
42 |
+ # project is installed. For an analysis of "install_requires" vs pip's |
43 |
+ # requirements files see: |
44 |
|
45 |
diff --git a/dev-python/python-constraint/metadata.xml b/dev-python/python-constraint/metadata.xml |
46 |
new file mode 100644 |
47 |
index 000000000..a0974b823 |
48 |
--- /dev/null |
49 |
+++ b/dev-python/python-constraint/metadata.xml |
50 |
@@ -0,0 +1,12 @@ |
51 |
+<?xml version="1.0" encoding="UTF-8"?> |
52 |
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> |
53 |
+<pkgmetadata> |
54 |
+ <!-- comaintainers-welcomed --> |
55 |
+ <maintainer type="person"> |
56 |
+ <email>gaboroszkar@××××××××××.com</email> |
57 |
+ <name>Gábor Oszkár Dénes</name> |
58 |
+ </maintainer> |
59 |
+ <longdescription> |
60 |
+ The Python constraint module offers solvers for Constraint Satisfaction Problems (CSPs) over finite domains in simple and pure Python. CSP is class of problems which may be represented in terms of variables (a, b, ...), domains (a in [1, 2, 3], ...), and constraints (a < b, ...). |
61 |
+ </longdescription> |
62 |
+</pkgmetadata> |
63 |
|
64 |
diff --git a/dev-python/python-constraint/python-constraint-1.4.0.ebuild b/dev-python/python-constraint/python-constraint-1.4.0.ebuild |
65 |
new file mode 100644 |
66 |
index 000000000..cd8a97e27 |
67 |
--- /dev/null |
68 |
+++ b/dev-python/python-constraint/python-constraint-1.4.0.ebuild |
69 |
@@ -0,0 +1,21 @@ |
70 |
+# Copyright 2022 Gentoo Authors |
71 |
+# Distributed under the terms of the GNU General Public License v2 |
72 |
+ |
73 |
+EAPI=8 |
74 |
+ |
75 |
+DISTUTILS_USE_PEP517=setuptools |
76 |
+PYTHON_COMPAT=( python3_{8..10} ) |
77 |
+ |
78 |
+inherit distutils-r1 |
79 |
+ |
80 |
+DESCRIPTION="Constraint Solving Problem resolver for Python" |
81 |
+HOMEPAGE="https://github.com/python-constraint/python-constraint" |
82 |
+SRC_URI="https://github.com/python-constraint/python-constraint/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz" |
83 |
+ |
84 |
+LICENSE="BSD-2" |
85 |
+SLOT="0" |
86 |
+KEYWORDS="~amd64" |
87 |
+ |
88 |
+distutils_enable_tests pytest |
89 |
+ |
90 |
+PATCHES=( "${FILESDIR}/python-constraint-1.4.0-exclude-examples.patch" ) |