Skip to content

Instantly share code, notes, and snippets.

View hpk42's full-sized avatar

holger krekel hpk42

View GitHub Profile
+def get_name_version_doczip(path):
+ path = str(path)
+ DOCZIPSUFFIX = ".doc.zip"
+ assert path.endswith(DOCZIPSUFFIX)
+ fn = path[:-len(DOCZIPSUFFIX)]
+ # for documentation we presume that versions do not contain "-"
+ name, version = re.match("(.*)-([a-zA-Z0-9\.!]+)", fn).groups()
+ return name, version
if self.name_version:
name, version = self.name_version
else:
name, version = pkginfo.name, pkginfo.version
Collecting devpi-common<2.1,>=2.0.6.dev2 (from devpi-server==2.2.0.dev1)
Could not find a version that satisfies the requirement devpi-common<2.1,>=2.0.6.dev2 (from devpi-server==2.2.0.dev1) (from versions: 1.2, 2.0.0, 2.0.1, 2.0.2, 2.0.3, 2.0.4, 2.0.5, 2.0.6.dev2)
from setuptools import setup
if __name__ == "__main__":
setup(
name='pytest-pep8',
description='pytest plugin to check PEP8 requirements',
long_description=open("README.txt").read(),
license="MIT license",
version='1.0.7.dev1',
author='Holger Krekel and Ronny Pfannschmidt',
from _pytest.core import PluginManager
pm = PluginManager("devpi_server")
class MyHooks:
def devpi_server_whatever(self, arg1):
pass
pm.addhooks(MyHooks)
from tox import hookimpl
class GlobinterpreterPlugin:
@hookimpl
def tox_configure(self, config):
self.config = config
# postprocess config
@hookimpl
diff --git a/server/devpi_server/model.py b/server/devpi_server/model.py
--- a/server/devpi_server/model.py
+++ b/server/devpi_server/model.py
@@ -421,6 +421,10 @@ class PrivateStage(BaseStage):
def modify(self, index=None, **kw):
attrs = get_ixconfigattrs(self.xom.config.hook, self.ixconfig["type"])
+ if "type" in kw and kw["type"] not in ("mirror", "stage"):
+ raise InvalidIndexconfig(
+ ["invalid index type: %s" %(kw["type"],)])
diff --git a/server/tox.ini b/server/tox.ini
--- a/server/tox.ini
+++ b/server/tox.ini
@@ -1,5 +1,5 @@
[tox]
-envlist=py26,py27,py34,py35,pypy,py27-bare,flakes
+envlist={py26,py27,py34,py35,pypy}-{sqlite,postgres},py27-bare,flakes
#,gendeploy
indexserver=
pypi = https://pypi.python.org/simple
============================= test session starts ==============================
platform linux -- Python 3.5.2, pytest-3.3.1, py-1.5.2, pluggy-0.6.0
rootdir: /home/hpk/p/pyac, inifile: tox.ini
collected 27 items
tests/test_crypto.py EEEEEEEE [ 29%]
tests/test_message.py ..F..F..F.F...F.... [100%]
==================================== ERRORS ====================================
__________ ERROR at setup of TestCrypto.test_gen_key_and_get_keydata ___________
Return-Path: <[email protected]>
X-Original-To: [email protected]
Delivered-To: [email protected]
Received: from [127.0.0.1] (localhost [127.0.0.1])
(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))
(No client certificate requested)
by mail.merlinux.eu (Postfix) with ESMTPSA id 6DA04100406
for <[email protected]>; Thu, 25 Jan 2018 17:45:35 +0000 (UTC)
DMARC-Filter: OpenDMARC Filter v1.2.0 mail.merlinux.eu 6DA04100406
Authentication-Results: mail.merlinux.eu; dmarc=none header.from=merlinux.eu