pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/textproc py-validate-pyproject: added version 0.7.1



details:   https://anonhg.NetBSD.org/pkgsrc/rev/6c57f6d0c692
branches:  trunk
changeset: 376307:6c57f6d0c692
user:      adam <adam%pkgsrc.org@localhost>
date:      Tue Apr 05 07:17:31 2022 +0000

description:
py-validate-pyproject: added version 0.7.1

With the approval of PEP 517 and PEP 518, the Python community shifted towards
a strong focus on standardisation for packaging software, which allows more
freedom when choosing tools during development and make sure packages created
using different technologies can interoperate without the need for custom
installation procedures.

This shift became even more clear when PEP 621 was also approved, as a
standardised way of specifying project metadata and dependencies.

validate-pyproject was born in this context, with the mission of validating
pyproject.toml files, and make sure they are compliant with the standards and
PEPs. Behind the scenes, validate-pyproject relies on JSON Schema files, which,
in turn, are also a standardised way of checking if a given data structure
complies with a certain specification.

diffstat:

 textproc/Makefile                           |    3 +-
 textproc/py-validate-pyproject/ALTERNATIVES |    1 +
 textproc/py-validate-pyproject/DESCR        |   14 +++
 textproc/py-validate-pyproject/Makefile     |   37 ++++++++++
 textproc/py-validate-pyproject/PLIST        |  100 ++++++++++++++++++++++++++++
 textproc/py-validate-pyproject/distinfo     |    5 +
 6 files changed, 159 insertions(+), 1 deletions(-)

diffs (194 lines):

diff -r 25701ac36e25 -r 6c57f6d0c692 textproc/Makefile
--- a/textproc/Makefile Tue Apr 05 07:15:09 2022 +0000
+++ b/textproc/Makefile Tue Apr 05 07:17:31 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1298 2022/04/05 07:15:09 adam Exp $
+# $NetBSD: Makefile,v 1.1299 2022/04/05 07:17:31 adam Exp $
 #
 
 COMMENT=       Text processing utilities (does not include desktop publishing)
@@ -1134,6 +1134,7 @@
 SUBDIR+=       py-tomlkit
 SUBDIR+=       py-ujson
 SUBDIR+=       py-uritemplate
+SUBDIR+=       py-validate-pyproject
 SUBDIR+=       py-validators
 SUBDIR+=       py-vobject
 SUBDIR+=       py-wcmatch
diff -r 25701ac36e25 -r 6c57f6d0c692 textproc/py-validate-pyproject/ALTERNATIVES
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/py-validate-pyproject/ALTERNATIVES       Tue Apr 05 07:17:31 2022 +0000
@@ -0,0 +1,1 @@
+bin/validate-pyproject @PREFIX@/bin/validate-pyproject-@PYVERSSUFFIX@
diff -r 25701ac36e25 -r 6c57f6d0c692 textproc/py-validate-pyproject/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/py-validate-pyproject/DESCR      Tue Apr 05 07:17:31 2022 +0000
@@ -0,0 +1,14 @@
+With the approval of PEP 517 and PEP 518, the Python community shifted towards
+a strong focus on standardisation for packaging software, which allows more
+freedom when choosing tools during development and make sure packages created
+using different technologies can interoperate without the need for custom
+installation procedures.
+
+This shift became even more clear when PEP 621 was also approved, as a
+standardised way of specifying project metadata and dependencies.
+
+validate-pyproject was born in this context, with the mission of validating
+pyproject.toml files, and make sure they are compliant with the standards and
+PEPs. Behind the scenes, validate-pyproject relies on JSON Schema files, which,
+in turn, are also a standardised way of checking if a given data structure
+complies with a certain specification.
diff -r 25701ac36e25 -r 6c57f6d0c692 textproc/py-validate-pyproject/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/py-validate-pyproject/Makefile   Tue Apr 05 07:17:31 2022 +0000
@@ -0,0 +1,37 @@
+# $NetBSD: Makefile,v 1.1 2022/04/05 07:17:31 adam Exp $
+
+DISTNAME=      validate-pyproject-0.7.1
+PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
+CATEGORIES=    textproc python
+MASTER_SITES=  ${MASTER_SITE_PYPI:=v/validate-pyproject/}
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      https://github.com/abravalheri/validate-pyproject
+COMMENT=       Validation library and CLI tool for checking on pyproject.toml files
+LICENSE=       mpl-2.0 AND mit AND modified-bsd
+
+BUILD_DEPENDS+=        ${PYPKGPREFIX}-packaging>=20.7:../../devel/py-packaging
+TEST_DEPENDS+= ${PYPKGPREFIX}-test>0:../../devel/py-test
+TEST_DEPENDS+= ${PYPKGPREFIX}-test-cov>0:../../devel/py-test-cov
+
+USE_LANGUAGES= # none
+
+USE_PKG_RESOURCES=     yes
+
+PYTHON_VERSIONS_INCOMPATIBLE=  27
+
+.include "../../lang/python/pyversion.mk"
+
+.if ${_PYTHON_VERSION} == 37
+DEPENDS+=      ${PYPKGPREFIX}-importlib-metadata>0:../../devel/py-importlib-metadata
+.endif
+
+post-install:
+       cd ${DESTDIR}${PREFIX}/bin && \
+       ${MV} validate-pyproject validate-pyproject-${PYVERSSUFFIX} || ${TRUE}
+
+do-test:
+       cd ${WRKSRC} && ${SETENV} ${TEST_ENV} pytest-${PYVERSSUFFIX} tests
+
+.include "../../lang/python/egg.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 25701ac36e25 -r 6c57f6d0c692 textproc/py-validate-pyproject/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/py-validate-pyproject/PLIST      Tue Apr 05 07:17:31 2022 +0000
@@ -0,0 +1,100 @@
+@comment $NetBSD: PLIST,v 1.1 2022/04/05 07:17:31 adam Exp $
+bin/validate-pyproject-${PYVERSSUFFIX}
+${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
+${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
+${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
+${PYSITELIB}/${EGG_INFODIR}/entry_points.txt
+${PYSITELIB}/${EGG_INFODIR}/not-zip-safe
+${PYSITELIB}/${EGG_INFODIR}/requires.txt
+${PYSITELIB}/${EGG_INFODIR}/top_level.txt
+${PYSITELIB}/validate_pyproject/__init__.py
+${PYSITELIB}/validate_pyproject/__init__.pyc
+${PYSITELIB}/validate_pyproject/__init__.pyo
+${PYSITELIB}/validate_pyproject/__main__.py
+${PYSITELIB}/validate_pyproject/__main__.pyc
+${PYSITELIB}/validate_pyproject/__main__.pyo
+${PYSITELIB}/validate_pyproject/_vendor/__init__.py
+${PYSITELIB}/validate_pyproject/_vendor/__init__.pyc
+${PYSITELIB}/validate_pyproject/_vendor/__init__.pyo
+${PYSITELIB}/validate_pyproject/_vendor/fastjsonschema/LICENSE
+${PYSITELIB}/validate_pyproject/_vendor/fastjsonschema/__init__.py
+${PYSITELIB}/validate_pyproject/_vendor/fastjsonschema/__init__.pyc
+${PYSITELIB}/validate_pyproject/_vendor/fastjsonschema/__init__.pyo
+${PYSITELIB}/validate_pyproject/_vendor/fastjsonschema/__main__.py
+${PYSITELIB}/validate_pyproject/_vendor/fastjsonschema/__main__.pyc
+${PYSITELIB}/validate_pyproject/_vendor/fastjsonschema/__main__.pyo
+${PYSITELIB}/validate_pyproject/_vendor/fastjsonschema/draft04.py
+${PYSITELIB}/validate_pyproject/_vendor/fastjsonschema/draft04.pyc
+${PYSITELIB}/validate_pyproject/_vendor/fastjsonschema/draft04.pyo
+${PYSITELIB}/validate_pyproject/_vendor/fastjsonschema/draft06.py
+${PYSITELIB}/validate_pyproject/_vendor/fastjsonschema/draft06.pyc
+${PYSITELIB}/validate_pyproject/_vendor/fastjsonschema/draft06.pyo
+${PYSITELIB}/validate_pyproject/_vendor/fastjsonschema/draft07.py
+${PYSITELIB}/validate_pyproject/_vendor/fastjsonschema/draft07.pyc
+${PYSITELIB}/validate_pyproject/_vendor/fastjsonschema/draft07.pyo
+${PYSITELIB}/validate_pyproject/_vendor/fastjsonschema/exceptions.py
+${PYSITELIB}/validate_pyproject/_vendor/fastjsonschema/exceptions.pyc
+${PYSITELIB}/validate_pyproject/_vendor/fastjsonschema/exceptions.pyo
+${PYSITELIB}/validate_pyproject/_vendor/fastjsonschema/generator.py
+${PYSITELIB}/validate_pyproject/_vendor/fastjsonschema/generator.pyc
+${PYSITELIB}/validate_pyproject/_vendor/fastjsonschema/generator.pyo
+${PYSITELIB}/validate_pyproject/_vendor/fastjsonschema/indent.py
+${PYSITELIB}/validate_pyproject/_vendor/fastjsonschema/indent.pyc
+${PYSITELIB}/validate_pyproject/_vendor/fastjsonschema/indent.pyo
+${PYSITELIB}/validate_pyproject/_vendor/fastjsonschema/ref_resolver.py
+${PYSITELIB}/validate_pyproject/_vendor/fastjsonschema/ref_resolver.pyc
+${PYSITELIB}/validate_pyproject/_vendor/fastjsonschema/ref_resolver.pyo
+${PYSITELIB}/validate_pyproject/_vendor/fastjsonschema/version.py
+${PYSITELIB}/validate_pyproject/_vendor/fastjsonschema/version.pyc
+${PYSITELIB}/validate_pyproject/_vendor/fastjsonschema/version.pyo
+${PYSITELIB}/validate_pyproject/_vendor/vendoring_instructions.rst
+${PYSITELIB}/validate_pyproject/api.py
+${PYSITELIB}/validate_pyproject/api.pyc
+${PYSITELIB}/validate_pyproject/api.pyo
+${PYSITELIB}/validate_pyproject/cli.py
+${PYSITELIB}/validate_pyproject/cli.pyc
+${PYSITELIB}/validate_pyproject/cli.pyo
+${PYSITELIB}/validate_pyproject/error_reporting.py
+${PYSITELIB}/validate_pyproject/error_reporting.pyc
+${PYSITELIB}/validate_pyproject/error_reporting.pyo
+${PYSITELIB}/validate_pyproject/errors.py
+${PYSITELIB}/validate_pyproject/errors.pyc
+${PYSITELIB}/validate_pyproject/errors.pyo
+${PYSITELIB}/validate_pyproject/extra_validations.py
+${PYSITELIB}/validate_pyproject/extra_validations.pyc
+${PYSITELIB}/validate_pyproject/extra_validations.pyo
+${PYSITELIB}/validate_pyproject/formats.py
+${PYSITELIB}/validate_pyproject/formats.pyc
+${PYSITELIB}/validate_pyproject/formats.pyo
+${PYSITELIB}/validate_pyproject/plugins/__init__.py
+${PYSITELIB}/validate_pyproject/plugins/__init__.pyc
+${PYSITELIB}/validate_pyproject/plugins/__init__.pyo
+${PYSITELIB}/validate_pyproject/plugins/distutils.schema.json
+${PYSITELIB}/validate_pyproject/plugins/setuptools.schema.json
+${PYSITELIB}/validate_pyproject/pre_compile/NOTICE.template
+${PYSITELIB}/validate_pyproject/pre_compile/__init__.py
+${PYSITELIB}/validate_pyproject/pre_compile/__init__.pyc
+${PYSITELIB}/validate_pyproject/pre_compile/__init__.pyo
+${PYSITELIB}/validate_pyproject/pre_compile/__main__.py
+${PYSITELIB}/validate_pyproject/pre_compile/__main__.pyc
+${PYSITELIB}/validate_pyproject/pre_compile/__main__.pyo
+${PYSITELIB}/validate_pyproject/pre_compile/api-notice.template
+${PYSITELIB}/validate_pyproject/pre_compile/cli-notice.template
+${PYSITELIB}/validate_pyproject/pre_compile/cli.py
+${PYSITELIB}/validate_pyproject/pre_compile/cli.pyc
+${PYSITELIB}/validate_pyproject/pre_compile/cli.pyo
+${PYSITELIB}/validate_pyproject/pre_compile/main_file.template
+${PYSITELIB}/validate_pyproject/project_metadata.schema.json
+${PYSITELIB}/validate_pyproject/pyproject_toml.schema.json
+${PYSITELIB}/validate_pyproject/types.py
+${PYSITELIB}/validate_pyproject/types.pyc
+${PYSITELIB}/validate_pyproject/types.pyo
+${PYSITELIB}/validate_pyproject/vendoring/__init__.py
+${PYSITELIB}/validate_pyproject/vendoring/__init__.pyc
+${PYSITELIB}/validate_pyproject/vendoring/__init__.pyo
+${PYSITELIB}/validate_pyproject/vendoring/__main__.py
+${PYSITELIB}/validate_pyproject/vendoring/__main__.pyc
+${PYSITELIB}/validate_pyproject/vendoring/__main__.pyo
+${PYSITELIB}/validate_pyproject/vendoring/cli.py
+${PYSITELIB}/validate_pyproject/vendoring/cli.pyc
+${PYSITELIB}/validate_pyproject/vendoring/cli.pyo
diff -r 25701ac36e25 -r 6c57f6d0c692 textproc/py-validate-pyproject/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/py-validate-pyproject/distinfo   Tue Apr 05 07:17:31 2022 +0000
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1 2022/04/05 07:17:31 adam Exp $
+
+BLAKE2s (validate-pyproject-0.7.1.tar.gz) = dc0c090aba4c06bcd57e41c07bea8203b432f7d0447c329808661abe4c0aec23
+SHA512 (validate-pyproject-0.7.1.tar.gz) = b893e2d051c759452a1c26344a5964d065025eb58993e7314475217b7b385938234346f32c57bc46edc087a505914c2be971b011d881e228720685fda52ba628
+Size (validate-pyproject-0.7.1.tar.gz) = 102987 bytes



Home | Main Index | Thread Index | Old Index