Add .PKGINFO parser
- Jun 14, 2022
-
-
David Runge authored
docs/packages/contents.rst: Add documentation about .PKGINFO files, including JSON schema for PkgInfo.
-
David Runge authored
tox.ini: Also export the PkgInfo JSON schema when creating documentation.
-
David Runge authored
repod/files/pkginfo.py: Add a .PKGINFO parser, which fully validates files of version 1 and of version 2 (with pkgtype). tests/files/test_pkginfo.py: Add unit and integration tests for .PKGINFO parser.
-
David Runge authored
repod/common/enums.py: Add `PkgTypeEnum` to distinguish different types of pkgtype values. Add `pkg_types_for_pkgtype_regex()` to provide a string for the PKGTYPE regular expression. repod/common/regex.py: Add the `PKGTYPE` regular expression, which makes use of `repod.common.enums.pkg_types_for_pkgtype_regex`. tests/common/test_regex.py: Add tests for PKGTYPE regular expression. tests/conftest.py: Add defaults and specific fixtures for pkgtype. Add fixtures for default version. Add fixtures for creating .PKGINFO strings and files of version one and two.
-
David Runge authored
repod/common/models.py: Add the pydantic model `SchemaVersionV2` to track a schema version two in composite models.
-