pkgsrc-Changes archive

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

CVS commit: pkgsrc/devel/py-project-metadata



Module Name:    pkgsrc
Committed By:   adam
Date:           Thu Oct 24 20:24:06 UTC 2024

Modified Files:
        pkgsrc/devel/py-project-metadata: Makefile PLIST distinfo

Log Message:
py-project-metadata: updated to 0.9.0

0.9.0 (22-10-2024)

This release adds PEP 639 support (METADATA 2.4), refactors the RFC messages,
and adds a lot of validation (including warnings and opt-in errors), a way to
produce all validation errors at once, and more. The beta releases are intended
for backend authors to try out the changes before a final release.

Features:

- Added PEP 639 support for SPDX license and license files, METADATA 2.4
- Validate extra keys (warning, opt-in error)
- Functions to check top level and build-system (including PEP 735 support)
- Add TypedDict's in new module for typing pyproject.toml dicts
- `all_errors=True` causes `ExceptionGroup`'s to be emitted
- Support METADATA 2.1+ JSON format with new `.as_json()` method

Fixes:

- Match EmailMessage spacing
- Handle multilines the way setuptools does with smart indentation
- Warn on multiline Summary (`project.description`)
- Improve locking for just metadata fields
- Error on extra keys in author/maintainer
- URL name stylization removed matching PEP 753

Refactoring:

- Move fetcher methods
- Put validation in method
- Make `RFC822Message` compatible with and subclass of `EmailMessage` class with
  support for Unicode
- Remove indirection accessing `metadata_version`, add `auto_metadata_version`
- Rework how dynamic works, add `dynamic_metadata`
- Use dataclass instead of named tuple
- Use named arguments instead of positional
- Spit up over multiple files
- Remove `DataFetcher`, use static types wherever possible
- Reformat single quotes to double quotes to match packaging
- Produce standard Python repr style in error messages (keeping double quotes
  for key names)
- Show the types instead of values in error messages

Internal and CI:

- Better changelog auto-generation
- `macos-latest` now points at `macos-14`
- Refactor and cleanup tests
- Add human readable IDs to tests
- Require 100% coverage

Docs:

- Include extra badge in readme
- Rework docs, include README and more classes
- Changelog is now in markdown
- Better API section


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 pkgsrc/devel/py-project-metadata/Makefile
cvs rdiff -u -r1.3 -r1.4 pkgsrc/devel/py-project-metadata/PLIST \
    pkgsrc/devel/py-project-metadata/distinfo

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/devel/py-project-metadata/Makefile
diff -u pkgsrc/devel/py-project-metadata/Makefile:1.6 pkgsrc/devel/py-project-metadata/Makefile:1.7
--- pkgsrc/devel/py-project-metadata/Makefile:1.6       Tue Oct  8 18:11:50 2024
+++ pkgsrc/devel/py-project-metadata/Makefile   Thu Oct 24 20:24:06 2024
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.6 2024/10/08 18:11:50 adam Exp $
+# $NetBSD: Makefile,v 1.7 2024/10/24 20:24:06 adam Exp $
 
-DISTNAME=      pyproject_metadata-0.8.1
+DISTNAME=      pyproject_metadata-0.9.0
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME:S/py//:S/_/-/}
 CATEGORIES=    devel python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=p/pyproject-metadata/}

Index: pkgsrc/devel/py-project-metadata/PLIST
diff -u pkgsrc/devel/py-project-metadata/PLIST:1.3 pkgsrc/devel/py-project-metadata/PLIST:1.4
--- pkgsrc/devel/py-project-metadata/PLIST:1.3  Thu Apr 18 04:43:38 2024
+++ pkgsrc/devel/py-project-metadata/PLIST      Thu Oct 24 20:24:06 2024
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.3 2024/04/18 04:43:38 adam Exp $
+@comment $NetBSD: PLIST,v 1.4 2024/10/24 20:24:06 adam Exp $
 ${PYSITELIB}/${WHEEL_INFODIR}/LICENSE
 ${PYSITELIB}/${WHEEL_INFODIR}/METADATA
 ${PYSITELIB}/${WHEEL_INFODIR}/RECORD
@@ -6,4 +6,16 @@ ${PYSITELIB}/${WHEEL_INFODIR}/WHEEL
 ${PYSITELIB}/pyproject_metadata/__init__.py
 ${PYSITELIB}/pyproject_metadata/__init__.pyc
 ${PYSITELIB}/pyproject_metadata/__init__.pyo
+${PYSITELIB}/pyproject_metadata/constants.py
+${PYSITELIB}/pyproject_metadata/constants.pyc
+${PYSITELIB}/pyproject_metadata/constants.pyo
+${PYSITELIB}/pyproject_metadata/errors.py
+${PYSITELIB}/pyproject_metadata/errors.pyc
+${PYSITELIB}/pyproject_metadata/errors.pyo
+${PYSITELIB}/pyproject_metadata/project_table.py
+${PYSITELIB}/pyproject_metadata/project_table.pyc
+${PYSITELIB}/pyproject_metadata/project_table.pyo
 ${PYSITELIB}/pyproject_metadata/py.typed
+${PYSITELIB}/pyproject_metadata/pyproject.py
+${PYSITELIB}/pyproject_metadata/pyproject.pyc
+${PYSITELIB}/pyproject_metadata/pyproject.pyo
Index: pkgsrc/devel/py-project-metadata/distinfo
diff -u pkgsrc/devel/py-project-metadata/distinfo:1.3 pkgsrc/devel/py-project-metadata/distinfo:1.4
--- pkgsrc/devel/py-project-metadata/distinfo:1.3       Tue Oct  8 18:11:50 2024
+++ pkgsrc/devel/py-project-metadata/distinfo   Thu Oct 24 20:24:06 2024
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.3 2024/10/08 18:11:50 adam Exp $
+$NetBSD: distinfo,v 1.4 2024/10/24 20:24:06 adam Exp $
 
-BLAKE2s (pyproject_metadata-0.8.1.tar.gz) = cd4185ff51610efe928877357595dd7fd4b28a9f5e552cb62abb82754f03223d
-SHA512 (pyproject_metadata-0.8.1.tar.gz) = a9677d7d8d6004a86c92d3eb44c37494e2a4709c1ffcaad444d0f0e573ae56c753e6ec27efab6def03f89c357db7966f7dc9a819bf2cab02af2ee8718e7b5a39
-Size (pyproject_metadata-0.8.1.tar.gz) = 15404 bytes
+BLAKE2s (pyproject_metadata-0.9.0.tar.gz) = ef136925d0207b6f0cdb388215ccf5ec92f3bf6a36cca1d474e6f32203b6aa4f
+SHA512 (pyproject_metadata-0.9.0.tar.gz) = 55c89e02b15bacfed8954e363cc0ae295551572a2d3d6954ce43dea36f04735a9d8a314385702477a94d83ba4ce1a32548b6024b7697f6c6ec9d821c5d934b47
+Size (pyproject_metadata-0.9.0.tar.gz) = 32096 bytes



Home | Main Index | Thread Index | Old Index