diff --git a/science/py-pymatgen-io-validation/Makefile b/science/py-pymatgen-io-validation/Makefile index 37184bb547b3..90b220a9ee60 100644 --- a/science/py-pymatgen-io-validation/Makefile +++ b/science/py-pymatgen-io-validation/Makefile @@ -1,32 +1,35 @@ PORTNAME= pymatgen-io-validation -DISTVERSION= 0.1.2 +DISTVERSION= 0.1.4 CATEGORIES= science python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} DISTNAME= pymatgen_io_validation-${DISTVERSION} MAINTAINER= yuri@FreeBSD.org COMMENT= IO validation for pymatgen WWW= https://github.com/materialsproject/pymatgen-io-validation LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE -BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>=61.0:devel/py-setuptools@${PY_FLAVOR} \ - ${PYTHON_PKGNAMEPREFIX}setuptools-scm>=8:devel/py-setuptools-scm@${PY_FLAVOR} \ +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>=63.1.0:devel/py-setuptools@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}versioningit>=1<4:devel/py-versioningit@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR} RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}numpy>0:math/py-numpy@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pydantic2>=2.0.1:devel/py-pydantic2@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pydantic-settings>=2.0.0:devel/py-pydantic-settings@${PY_FLAVOR} \ - ${PYTHON_PKGNAMEPREFIX}pymatgen>0:science/py-pymatgen@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pymatgen-core>=2026.4.16:science/py-pymatgen-core@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}requests>0:www/py-requests@${PY_FLAVOR} USES= python -USE_PYTHON= pep517 autoplist +USE_PYTHON= pep517 autoplist pytest + +TEST_ENV= ${BUILD_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} +TEST_ARGS= --disable-plugin-autoload +TEST_WRKSRC= ${WRKSRC}/tests NO_ARCH= yes -# tests as of 0.1.2: not enabled because the sdist is missing the conftest.py -# fixture (test_dir) and test data required by the upstream test files. +# tests as of 0.1.4: not enabled because the sdist is missing the conftest.py, see https://github.com/materialsproject/pymatgen-io-validation/issues/272 .include diff --git a/science/py-pymatgen-io-validation/distinfo b/science/py-pymatgen-io-validation/distinfo index 3f8cdeeafd4b..0f26cb4ee7f8 100644 --- a/science/py-pymatgen-io-validation/distinfo +++ b/science/py-pymatgen-io-validation/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1785521994 -SHA256 (pymatgen_io_validation-0.1.2.tar.gz) = 76632878ab2269356092dab5bae08c8f42418c3e15d4610f4eb304f0102e7f24 -SIZE (pymatgen_io_validation-0.1.2.tar.gz) = 51515 +TIMESTAMP = 1790136104 +SHA256 (pymatgen_io_validation-0.1.4.tar.gz) = b3f29de9ac30a8d12afba8d9b8882a6bbbaa21175a93644afb4c55a303b17369 +SIZE (pymatgen_io_validation-0.1.4.tar.gz) = 49798 diff --git a/science/py-pymatgen-io-validation/files/patch-pyproject.toml b/science/py-pymatgen-io-validation/files/patch-pyproject.toml index f2bd7482b96c..0acec2e84c6b 100644 --- a/science/py-pymatgen-io-validation/files/patch-pyproject.toml +++ b/science/py-pymatgen-io-validation/files/patch-pyproject.toml @@ -1,38 +1,24 @@ --- Replace versioningit with setuptools-scm, lower the setuptools --- requirement to the version available in the FreeBSD ports tree, pin the --- version statically, and exclude the top-level examples directory from --- package discovery. The sdist has no git history, so dynamic versioning via --- setuptools-scm falls back to an incorrect 0.1.0rc0, and examples/ otherwise --- installs a conflicting site-packages/examples/ directory. +-- Fix setuptools/PEP 621 compatibility on FreeBSD by relaxing the build +-- backend requirements and using the table form for project.license. The +-- upstream sdist uses a bare string and a setuptools floor newer than the +-- version available in the ports tree. + --- pyproject.toml.orig +++ pyproject.toml @@ -1,6 +1,6 @@ [build-system] build-backend = "setuptools.build_meta" -requires = ["setuptools >= 65.0.0", "versioningit >= 1,< 4", "wheel"] -+requires = ["setuptools >= 63.1.0", "setuptools-scm >= 8", "wheel"] - ++requires = ["setuptools >= 63.1.0", "versioningit >= 1,< 4", "wheel"] + [project] authors = [ -@@ -32,10 +32,11 @@ - "pydantic-settings>=2.0.0", - ] +@@ -32,7 +32,7 @@ description = "A comprehensive I/O validator for electronic structure calculations" --dynamic = ["version"] -+dynamic = [] + dynamic = ["version"] keywords = ["io", "validation", "dft", "vasp"] - license = { text = "modified BSD" } +-license = "BSD-3-Clause-LBNL" ++license = { text = "BSD-3-Clause-LBNL" } name = "pymatgen-io-validation" -+version = "0.1.2" readme = "README.md" - requires-python = '>=3.8' - -@@ -53,7 +54,7 @@ - #repository = "https://github.com/materialsproject/pymatgen-io-validation" - - [tool.setuptools.packages.find] --exclude = ["tests"] -+exclude = ["tests", "examples", "examples.*"] - where = ["./"] - - [tool.versioningit.vcs] + requires-python = '>=3.11'