Skip to content
Snippets Groups Projects

Add .PKGINFO parser

Merged David Runge requested to merge pkginfo_parser into master
  1. Jun 14, 2022
    • David Runge's avatar
      Add documentation for .PKGINFO files · 6aa2f8f8
      David Runge authored
      docs/packages/contents.rst:
      Add documentation about .PKGINFO files, including JSON schema for
      PkgInfo.
      Verified
      6aa2f8f8
    • David Runge's avatar
      Export PkgInfo JSON schema when creating docs · dee3ddc4
      David Runge authored
      tox.ini:
      Also export the PkgInfo JSON schema when creating documentation.
      Verified
      dee3ddc4
    • David Runge's avatar
      Add .PKGINFO parser · 8f0402bf
      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.
      Verified
      8f0402bf
    • David Runge's avatar
      Add enums and regexes for pkgtype and extend fixtures · 55d7fbde
      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.
      Verified
      55d7fbde
    • David Runge's avatar
      Add SchemaVersionV2 model · 4cb77f1e
      David Runge authored
      repod/common/models.py:
      Add the pydantic model `SchemaVersionV2` to track a schema version two
      in composite models.
      Verified
      4cb77f1e
Loading