Gentoo Archives: gentoo-portage-dev

From: "Michał Górny" <mgorny@g.o>
To: gentoo-portage-dev@l.g.o
Cc: "Michał Górny" <mgorny@g.o>
Subject: [gentoo-portage-dev] [PATCH 0/4] GLEP 67 test cleanup & XML Schema for repoman
Date: Sat, 16 Apr 2016 18:06:57
Message-Id: 1460830005-20475-1-git-send-email-mgorny@gentoo.org
1 Hi,
2
3 Just a quick batch of patches. The first two modify the tests removing
4 the use of obsolete <herd/> element and adding type="" to <maintainer/>
5 so that the tests will pass once updated schema is in place. The third
6 one replaces use of DTD with XML Schema in repoman so that more rules
7 of GLEP 68 can be enforced correctly. Finally, the fourth one includes
8 the current schema for tests and replaces the DTD with it.
9
10 It should be noted that repoman still needs a more complete GLEP 67
11 support and removal of obsolete herd code. I've limited my changes here
12 to the bare minimum needed to prevent repoman from accepting invalid
13 metadata.xml files. If time permits, I will be submitting further
14 improvements.
15
16
17 Michał Górny (4):
18 tests: Stop using herds
19 tests: Add type="" to <maintainer/>
20 repoman: Use XML Schema for metadata.xml validation
21 tests: Include metadata.xsd for repoman tests
22
23 .travis.yml | 4 +-
24 MANIFEST.in | 2 +-
25 cnf/metadata.dtd | 102 -----
26 cnf/metadata.xsd | 547 +++++++++++++++++++++++
27 pym/portage/tests/emerge/test_simple.py | 2 -
28 pym/portage/tests/repoman/test_simple.py | 11 +-
29 pym/portage/tests/resolver/ResolverPlayground.py | 24 +-
30 pym/repoman/_xml.py | 16 +-
31 pym/repoman/checks/ebuilds/pkgmetadata.py | 6 +-
32 pym/repoman/metadata.py | 39 +-
33 pym/repoman/scanner.py | 8 +-
34 11 files changed, 590 insertions(+), 171 deletions(-)
35 delete mode 100644 cnf/metadata.dtd
36 create mode 100644 cnf/metadata.xsd
37
38 --
39 2.8.1

Replies