commit:     2a97dcd28102321b396b2035c081bd27f668adbc
Author:     Horea Christian <chr <AT> chymera <DOT> eu>
AuthorDate: Tue Jan 31 12:48:24 2023 +0000
Commit:     Horea Christian <horea.christ <AT> gmail <DOT> com>
CommitDate: Tue Jan 31 12:48:24 2023 +0000
URL:        https://gitweb.gentoo.org/proj/sci.git/commit/?id=2a97dcd2

dev-python/distinctipy: new package, add 1.2.2

Signed-off-by: Horea Christian <chr <AT> chymera.eu>

 .../distinctipy/.tridesclous-1.6.6.ebuild.swp      | Bin 0 -> 4096 bytes
 dev-python/distinctipy/distinctipy-1.2.2.ebuild    |  34 +++++++++++++++++++++
 dev-python/distinctipy/metadata.xml                |  16 ++++++++++
 3 files changed, 50 insertions(+)

diff --git a/dev-python/distinctipy/.tridesclous-1.6.6.ebuild.swp 
b/dev-python/distinctipy/.tridesclous-1.6.6.ebuild.swp
new file mode 100644
index 000000000..d281f7480
Binary files /dev/null and 
b/dev-python/distinctipy/.tridesclous-1.6.6.ebuild.swp differ

diff --git a/dev-python/distinctipy/distinctipy-1.2.2.ebuild 
b/dev-python/distinctipy/distinctipy-1.2.2.ebuild
new file mode 100644
index 000000000..cd4c407d8
--- /dev/null
+++ b/dev-python/distinctipy/distinctipy-1.2.2.ebuild
@@ -0,0 +1,34 @@
+# Copyright 2021-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{10..11} )
+DISTUTILS_USE_PEP517=setuptools
+inherit distutils-r1
+
+DESCRIPTION="Lightweight package for generating visually distinct colours"
+HOMEPAGE="
+       https://distinctipy.readthedocs.io/en/latest/
+       https://github.com/alan-turing-institute/distinctipy
+"
+# PyPI archive does not include tests:
+# https://github.com/alan-turing-institute/distinctipy/issues/29
+SRC_URI="https://github.com/alan-turing-institute/distinctipy/archive/refs/tags/v${PV}.tar.gz
 -> ${P}.gh.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="test"
+
+RDEPEND="
+       dev-python/numpy[${PYTHON_USEDEP}]
+"
+
+distutils_enable_tests pytest
+
+# Requires networking:
+EPYTEST_DESELECT=(
+       tests/test_examples.py::test_compare_clusters
+       tests/test_examples.py::test_simulate_clusters
+)

diff --git a/dev-python/distinctipy/metadata.xml 
b/dev-python/distinctipy/metadata.xml
new file mode 100644
index 000000000..eb8a425e8
--- /dev/null
+++ b/dev-python/distinctipy/metadata.xml
@@ -0,0 +1,16 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <maintainer type="person">
+               <email>[email protected]</email>
+               <name>Horea Christian</name>
+       </maintainer>
+       <maintainer type="project">
+               <email>[email protected]</email>
+               <name>Gentoo Science Project</name>
+       </maintainer>
+       <upstream>
+               <remote-id 
type="github">alan-turing-institute/distinctipy</remote-id>
+               <remote-id type="pypi">distinctipy</remote-id>
+       </upstream>
+</pkgmetadata>

Reply via email to