public inbox for gentoo-portage-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-portage-dev] [PATCH 0/4] GLEP 67 + XML Schema, rebased against repoman
@ 2016-04-17  8:06 Michał Górny
  2016-04-17  8:06 ` [gentoo-portage-dev] [PATCH 1/4] tests: Stop using herds Michał Górny
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: Michał Górny @ 2016-04-17  8:06 UTC (permalink / raw
  To: gentoo-portage-dev; +Cc: Michał Górny

Same as before, rebased on top of repoman branch. Tested on git-mirror
checkout (with metadata/xml-schema dir) and local git checkout
(fetching from www). Travis also seems happy.

Michał Górny (4):
  tests: Stop using herds
  tests: Add type="" to <maintainer/>
  repoman: Use XML Schema for metadata.xml validation
  tests: Include metadata.xsd for repoman tests

 .travis.yml                                      |   4 +-
 MANIFEST.in                                      |   2 +-
 cnf/metadata.dtd                                 | 102 -----
 cnf/metadata.xsd                                 | 547 +++++++++++++++++++++++
 pym/portage/tests/emerge/test_simple.py          |   2 -
 pym/portage/tests/repoman/test_simple.py         |  11 +-
 pym/portage/tests/resolver/ResolverPlayground.py |  24 +-
 pym/repoman/_xml.py                              |  16 +-
 pym/repoman/metadata.py                          |  39 +-
 pym/repoman/modules/scan/metadata/__init__.py    |   2 +-
 pym/repoman/modules/scan/metadata/pkgmetadata.py |   6 +-
 pym/repoman/scanner.py                           |   8 +-
 12 files changed, 591 insertions(+), 172 deletions(-)
 delete mode 100644 cnf/metadata.dtd
 create mode 100644 cnf/metadata.xsd

-- 
2.8.1



^ permalink raw reply	[flat|nested] 7+ messages in thread
* [gentoo-portage-dev] [PATCH 0/4] GLEP 67 test cleanup & XML Schema for repoman
@ 2016-04-16 18:06 Michał Górny
  2016-04-16 18:06 ` [gentoo-portage-dev] [PATCH 3/4] repoman: Use XML Schema for metadata.xml validation Michał Górny
  0 siblings, 1 reply; 7+ messages in thread
From: Michał Górny @ 2016-04-16 18:06 UTC (permalink / raw
  To: gentoo-portage-dev; +Cc: Michał Górny

Hi,

Just a quick batch of patches. The first two modify the tests removing
the use of obsolete <herd/> element and adding type="" to <maintainer/>
so that the tests will pass once updated schema is in place. The third
one replaces use of DTD with XML Schema in repoman so that more rules
of GLEP 68 can be enforced correctly. Finally, the fourth one includes
the current schema for tests and replaces the DTD with it.

It should be noted that repoman still needs a more complete GLEP 67
support and removal of obsolete herd code. I've limited my changes here
to the bare minimum needed to prevent repoman from accepting invalid
metadata.xml files. If time permits, I will be submitting further
improvements.


Michał Górny (4):
  tests: Stop using herds
  tests: Add type="" to <maintainer/>
  repoman: Use XML Schema for metadata.xml validation
  tests: Include metadata.xsd for repoman tests

 .travis.yml                                      |   4 +-
 MANIFEST.in                                      |   2 +-
 cnf/metadata.dtd                                 | 102 -----
 cnf/metadata.xsd                                 | 547 +++++++++++++++++++++++
 pym/portage/tests/emerge/test_simple.py          |   2 -
 pym/portage/tests/repoman/test_simple.py         |  11 +-
 pym/portage/tests/resolver/ResolverPlayground.py |  24 +-
 pym/repoman/_xml.py                              |  16 +-
 pym/repoman/checks/ebuilds/pkgmetadata.py        |   6 +-
 pym/repoman/metadata.py                          |  39 +-
 pym/repoman/scanner.py                           |   8 +-
 11 files changed, 590 insertions(+), 171 deletions(-)
 delete mode 100644 cnf/metadata.dtd
 create mode 100644 cnf/metadata.xsd

-- 
2.8.1



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2016-04-17 14:07 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-17  8:06 [gentoo-portage-dev] [PATCH 0/4] GLEP 67 + XML Schema, rebased against repoman Michał Górny
2016-04-17  8:06 ` [gentoo-portage-dev] [PATCH 1/4] tests: Stop using herds Michał Górny
2016-04-17  8:06 ` [gentoo-portage-dev] [PATCH 2/4] tests: Add type="" to <maintainer/> Michał Górny
2016-04-17  8:06 ` [gentoo-portage-dev] [PATCH 3/4] repoman: Use XML Schema for metadata.xml validation Michał Górny
2016-04-17  8:06 ` [gentoo-portage-dev] [PATCH 4/4] tests: Include metadata.xsd for repoman tests Michał Górny
2016-04-17 14:06 ` [gentoo-portage-dev] [PATCH 0/4] GLEP 67 + XML Schema, rebased against repoman Brian Dolbec
  -- strict thread matches above, loose matches on Subject: below --
2016-04-16 18:06 [gentoo-portage-dev] [PATCH 0/4] GLEP 67 test cleanup & XML Schema for repoman Michał Górny
2016-04-16 18:06 ` [gentoo-portage-dev] [PATCH 3/4] repoman: Use XML Schema for metadata.xml validation Michał Górny

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox