From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id E901359CB2 for ; Sat, 16 Apr 2016 18:06:57 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 25B4C21C061; Sat, 16 Apr 2016 18:06:54 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 8E1DF21C00E for ; Sat, 16 Apr 2016 18:06:53 +0000 (UTC) Received: from localhost.localdomain (d202-252.icpnet.pl [109.173.202.252]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: mgorny) by smtp.gentoo.org (Postfix) with ESMTPSA id AA266340B09; Sat, 16 Apr 2016 18:06:51 +0000 (UTC) From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= To: gentoo-portage-dev@lists.gentoo.org Cc: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Subject: [gentoo-portage-dev] [PATCH 0/4] GLEP 67 test cleanup & XML Schema for repoman Date: Sat, 16 Apr 2016 20:06:41 +0200 Message-Id: <1460830005-20475-1-git-send-email-mgorny@gentoo.org> X-Mailer: git-send-email 2.8.1 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-portage-dev@lists.gentoo.org Reply-to: gentoo-portage-dev@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Archives-Salt: f3955f17-4107-4e83-8d83-d7101575873a X-Archives-Hash: 10d6c14b5564ed1e03fe459bf813bdfd Hi, Just a quick batch of patches. The first two modify the tests removing the use of obsolete element and adding type="" to 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 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