* [gentoo-commits] proj/sci:master commit in: sci-physics/pylhe/, sci-physics/pylhe/files/
@ 2024-03-20 10:22 Alexander Puck Neuwirth
0 siblings, 0 replies; only message in thread
From: Alexander Puck Neuwirth @ 2024-03-20 10:22 UTC (permalink / raw
To: gentoo-commits
commit: c1dc06bee3b7aa287ba0d417a5676ad63c07d57e
Author: Alexander Puck Neuwirth <alexander <AT> neuwirth-informatik <DOT> de>
AuthorDate: Wed Mar 20 07:10:54 2024 +0000
Commit: Alexander Puck Neuwirth <alexander <AT> neuwirth-informatik <DOT> de>
CommitDate: Wed Mar 20 10:22:27 2024 +0000
URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=c1dc06be
sci-physics/pylhe: new package, add 0.7.0, 0.8.0
Closes: https://github.com/gentoo/sci/pull/1262
Signed-off-by: Alexander Puck Neuwirth <alexander <AT> neuwirth-informatik.de>
sci-physics/pylhe/files/pylhe-0.7.0-coverage.patch | 8 +++++
sci-physics/pylhe/metadata.xml | 19 ++++++++++++
sci-physics/pylhe/pylhe-0.7.0.ebuild | 35 ++++++++++++++++++++++
sci-physics/pylhe/pylhe-0.8.0.ebuild | 35 ++++++++++++++++++++++
4 files changed, 97 insertions(+)
diff --git a/sci-physics/pylhe/files/pylhe-0.7.0-coverage.patch b/sci-physics/pylhe/files/pylhe-0.7.0-coverage.patch
new file mode 100644
index 000000000..ea678ce8c
--- /dev/null
+++ b/sci-physics/pylhe/files/pylhe-0.7.0-coverage.patch
@@ -0,0 +1,8 @@
+--- a/pytest.ini 2024-03-20 07:36:32.600030197 +0100
++++ b/pytest.ini 2024-03-20 07:36:45.896874886 +0100
+@@ -1,4 +1,4 @@
+ [pytest]
+ docstyle_convention = numpy
+ junit_family = xunit2
+-addopts = --ignore=setup.py --ignore=binder/ --ignore=docs/ --cov=pylhe --cov-report=term-missing --cov-config=.coveragerc --cov-report xml --doctest-modules --doctest-glob='*.rst'
++addopts = --ignore=setup.py --ignore=binder/ --ignore=docs/ --doctest-modules --doctest-glob='*.rst'
diff --git a/sci-physics/pylhe/metadata.xml b/sci-physics/pylhe/metadata.xml
new file mode 100644
index 000000000..86ede8deb
--- /dev/null
+++ b/sci-physics/pylhe/metadata.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>sci@gentoo.org</email>
+ <name>Gentoo Science Project</name>
+ </maintainer>
+ <maintainer type="person">
+ <email>alexander@neuwirth-informatik.de</email>
+ <name>Alexander Puck Neuwirth</name>
+ </maintainer>
+ <longdescription lang="en">
+ Small and thin Python interface to read Les Houches Event (LHE) files.
+ </longdescription>
+ <upstream>
+ <remote-id type="pypi">pylhe</remote-id>
+ <remote-id type="github">scikit-hep/pylhe</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/sci-physics/pylhe/pylhe-0.7.0.ebuild b/sci-physics/pylhe/pylhe-0.7.0.ebuild
new file mode 100644
index 000000000..45ef91695
--- /dev/null
+++ b/sci-physics/pylhe/pylhe-0.7.0.ebuild
@@ -0,0 +1,35 @@
+EAPI=8
+
+PYTHON_COMPAT=( python3_{11..12} )
+DISTUTILS_USE_PEP517=setuptools
+inherit distutils-r1 pypi
+
+DESCRIPTION="Lightweight Python interface to read Les Houches Event (LHE) files"
+HOMEPAGE="https://github.com/scikit-hep/pylhe"
+# pypi does not include tests
+SRC_URI="https://github.com/scikit-hep/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz"
+# export is needed here!
+export SETUPTOOLS_SCM_PRETEND_VERSION=${PV}
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64"
+
+RDEPEND="
+ >=dev-python/graphviz-0.12.0[${PYTHON_USEDEP}]
+ >=sci-physics/particle-0.16[${PYTHON_USEDEP}]
+ >=dev-python/awkward-1.2.0[${PYTHON_USEDEP}]
+ >=dev-python/vector-0.8.1[${PYTHON_USEDEP}]
+"
+DEPEND="${RDEPEND}"
+BDEPEND="
+ dev-python/setuptools-scm[${PYTHON_USEDEP}]
+ test? (
+ >=sci-physics/scikit-hep-testdata-0.4.36[${PYTHON_USEDEP}]
+ )
+"
+PATCHES=(
+ "${FILESDIR}/${PN}"-0.7.0-coverage.patch
+)
+
+distutils_enable_tests pytest
diff --git a/sci-physics/pylhe/pylhe-0.8.0.ebuild b/sci-physics/pylhe/pylhe-0.8.0.ebuild
new file mode 100644
index 000000000..45ef91695
--- /dev/null
+++ b/sci-physics/pylhe/pylhe-0.8.0.ebuild
@@ -0,0 +1,35 @@
+EAPI=8
+
+PYTHON_COMPAT=( python3_{11..12} )
+DISTUTILS_USE_PEP517=setuptools
+inherit distutils-r1 pypi
+
+DESCRIPTION="Lightweight Python interface to read Les Houches Event (LHE) files"
+HOMEPAGE="https://github.com/scikit-hep/pylhe"
+# pypi does not include tests
+SRC_URI="https://github.com/scikit-hep/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz"
+# export is needed here!
+export SETUPTOOLS_SCM_PRETEND_VERSION=${PV}
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64"
+
+RDEPEND="
+ >=dev-python/graphviz-0.12.0[${PYTHON_USEDEP}]
+ >=sci-physics/particle-0.16[${PYTHON_USEDEP}]
+ >=dev-python/awkward-1.2.0[${PYTHON_USEDEP}]
+ >=dev-python/vector-0.8.1[${PYTHON_USEDEP}]
+"
+DEPEND="${RDEPEND}"
+BDEPEND="
+ dev-python/setuptools-scm[${PYTHON_USEDEP}]
+ test? (
+ >=sci-physics/scikit-hep-testdata-0.4.36[${PYTHON_USEDEP}]
+ )
+"
+PATCHES=(
+ "${FILESDIR}/${PN}"-0.7.0-coverage.patch
+)
+
+distutils_enable_tests pytest
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2024-03-20 10:22 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-20 10:22 [gentoo-commits] proj/sci:master commit in: sci-physics/pylhe/, sci-physics/pylhe/files/ Alexander Puck Neuwirth
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox