From: "Alexander Puck Neuwirth" <alexander@neuwirth-informatik.de>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/sci:master commit in: sci-physics/particle/
Date: Sat, 29 Jul 2023 18:04:44 +0000 (UTC) [thread overview]
Message-ID: <1690409707.7f84924d9383774b9cfa01d9f4d5c395b2ee9fa2.alexander@gentoo> (raw)
commit: 7f84924d9383774b9cfa01d9f4d5c395b2ee9fa2
Author: Alexander Puck Neuwirth <alexander <AT> neuwirth-informatik <DOT> de>
AuthorDate: Wed Jul 26 18:30:36 2023 +0000
Commit: Alexander Puck Neuwirth <alexander <AT> neuwirth-informatik <DOT> de>
CommitDate: Wed Jul 26 22:15:07 2023 +0000
URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=7f84924d
sci-physics/particle: new package, add 0.23.0, 9999
Signed-off-by: Alexander Puck Neuwirth <alexander <AT> neuwirth-informatik.de>
sci-physics/particle/metadata.xml | 19 +++++++++++++
sci-physics/particle/particle-0.23.0.ebuild | 42 +++++++++++++++++++++++++++++
sci-physics/particle/particle-9999.ebuild | 42 +++++++++++++++++++++++++++++
3 files changed, 103 insertions(+)
diff --git a/sci-physics/particle/metadata.xml b/sci-physics/particle/metadata.xml
new file mode 100644
index 000000000..1ec9e9afb
--- /dev/null
+++ b/sci-physics/particle/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">
+ Particle provides a pythonic interface to the Particle Data Group (PDG) particle data tables and particle identification codes, with extended particle information and extra goodies.
+ </longdescription>
+ <upstream>
+ <remote-id type="pypi">particle</remote-id>
+ <remote-id type="github">scikit-hep/particle</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/sci-physics/particle/particle-0.23.0.ebuild b/sci-physics/particle/particle-0.23.0.ebuild
new file mode 100644
index 000000000..c1f823d9d
--- /dev/null
+++ b/sci-physics/particle/particle-0.23.0.ebuild
@@ -0,0 +1,42 @@
+EAPI=8
+
+PYTHON_COMPAT=( python3_11 )
+DISTUTILS_USE_PEP517=hatchling
+inherit distutils-r1
+
+DESCRIPTION="PDG particle data and identification codes"
+HOMEPAGE="https://github.com/scikit-hep/particle"
+
+LICENSE="BSD"
+SLOT="0"
+
+if [[ ${PV} == 9999 ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/scikit-hep/particle"
+else
+ inherit pypi
+ KEYWORDS="~amd64"
+fi
+
+RDEPEND="
+ >=dev-python/attrs-19.2[${PYTHON_USEDEP}]
+ >=sci-physics/hepunits-2.0.0[${PYTHON_USEDEP}]
+ dev-python/deprecated[${PYTHON_USEDEP}]
+ test? (
+ >=dev-python/pytest-6.0.0[${PYTHON_USEDEP}]
+ dev-python/pandas[${PYTHON_USEDEP}]
+ dev-python/tabulate[${PYTHON_USEDEP}]
+ )
+"
+BDEPEND="${RDEPEND}"
+distutils_enable_tests pytest
+
+src_prepare() {
+ default
+
+ sed -i -e 's:--benchmark-disable::' pyproject.toml || die
+}
+
+python_test() {
+ epytest --ignore tests/particle/test_performance.py
+}
diff --git a/sci-physics/particle/particle-9999.ebuild b/sci-physics/particle/particle-9999.ebuild
new file mode 100644
index 000000000..c1f823d9d
--- /dev/null
+++ b/sci-physics/particle/particle-9999.ebuild
@@ -0,0 +1,42 @@
+EAPI=8
+
+PYTHON_COMPAT=( python3_11 )
+DISTUTILS_USE_PEP517=hatchling
+inherit distutils-r1
+
+DESCRIPTION="PDG particle data and identification codes"
+HOMEPAGE="https://github.com/scikit-hep/particle"
+
+LICENSE="BSD"
+SLOT="0"
+
+if [[ ${PV} == 9999 ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/scikit-hep/particle"
+else
+ inherit pypi
+ KEYWORDS="~amd64"
+fi
+
+RDEPEND="
+ >=dev-python/attrs-19.2[${PYTHON_USEDEP}]
+ >=sci-physics/hepunits-2.0.0[${PYTHON_USEDEP}]
+ dev-python/deprecated[${PYTHON_USEDEP}]
+ test? (
+ >=dev-python/pytest-6.0.0[${PYTHON_USEDEP}]
+ dev-python/pandas[${PYTHON_USEDEP}]
+ dev-python/tabulate[${PYTHON_USEDEP}]
+ )
+"
+BDEPEND="${RDEPEND}"
+distutils_enable_tests pytest
+
+src_prepare() {
+ default
+
+ sed -i -e 's:--benchmark-disable::' pyproject.toml || die
+}
+
+python_test() {
+ epytest --ignore tests/particle/test_performance.py
+}
next reply other threads:[~2023-07-29 18:04 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-29 18:04 Alexander Puck Neuwirth [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-03-19 19:42 [gentoo-commits] proj/sci:master commit in: sci-physics/particle/ Alexander Puck Neuwirth
2024-04-23 14:17 Alexander Puck Neuwirth
2024-10-22 8:34 Alexander Puck Neuwirth
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1690409707.7f84924d9383774b9cfa01d9f4d5c395b2ee9fa2.alexander@gentoo \
--to=alexander@neuwirth-informatik.de \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox