From: "Michał Górny" <mgorny@gentoo.org>
To: gentoo-portage-dev@lists.gentoo.org
Cc: "Michał Górny" <mgorny@gentoo.org>
Subject: [gentoo-portage-dev] [PATCH 0/4] GLEP 67 test cleanup & XML Schema for repoman
Date: Sat, 16 Apr 2016 20:06:41 +0200 [thread overview]
Message-ID: <1460830005-20475-1-git-send-email-mgorny@gentoo.org> (raw)
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
next reply other threads:[~2016-04-16 18:06 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-16 18:06 Michał Górny [this message]
2016-04-16 18:06 ` [gentoo-portage-dev] [PATCH 1/4] tests: Stop using herds Michał Górny
2016-04-16 18:06 ` [gentoo-portage-dev] [PATCH 2/4] tests: Add type="" to <maintainer/> 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
2016-04-16 18:06 ` [gentoo-portage-dev] [PATCH 4/4] tests: Include metadata.xsd for repoman tests Michał Górny
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1460830005-20475-1-git-send-email-mgorny@gentoo.org \
--to=mgorny@gentoo.org \
--cc=gentoo-portage-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox