[Python-modules-commits] [python-pluggy] 01/03: Import python-pluggy_0.3.1.orig.tar.gz

Barry Warsaw barry at moszumanska.debian.org
Mon Dec 14 20:54:12 UTC 2015


This is an automated email from the git hooks/post-receive script.

barry pushed a commit to branch master
in repository python-pluggy.

commit 5acb443d40487062458ea27cb6dfba53ae7a4c29
Author: Barry Warsaw <barry at python.org>
Date:   Mon Dec 14 15:46:33 2015 -0500

    Import python-pluggy_0.3.1.orig.tar.gz
---
 .gitignore                               | 58 ++++++++++++++++++++++++++++++++
 CHANGELOG                                |  7 ++++
 PKG-INFO                                 |  5 +--
 pluggy.egg-info/PKG-INFO                 |  5 +--
 pluggy.egg-info/SOURCES.txt              |  6 ++--
 pluggy.egg-info/pbr.json                 |  1 +
 pluggy.py                                | 21 ++++++++----
 setup.cfg                                |  3 ++
 setup.py                                 |  4 +--
 test_pluggy.py => testing/test_pluggy.py | 24 ++++++++++++-
 tox.ini                                  |  8 ++---
 11 files changed, 122 insertions(+), 20 deletions(-)

diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..e5c7e98
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,58 @@
+# Byte-compiled / optimized / DLL files
+__pycache__/
+*.py[cod]
+
+# C extensions
+*.so
+
+# Distribution / packaging
+.Python
+env/
+build/
+develop-eggs/
+dist/
+downloads/
+eggs/
+.eggs/
+lib/
+lib64/
+parts/
+sdist/
+var/
+*.egg-info/
+.installed.cfg
+*.egg
+
+# PyInstaller
+#  Usually these files are written by a python script from a template
+#  before PyInstaller builds the exe, so as to inject date/other infos into it.
+*.manifest
+*.spec
+
+# Installer logs
+pip-log.txt
+pip-delete-this-directory.txt
+
+# Unit test / coverage reports
+htmlcov/
+.tox/
+.coverage
+.coverage.*
+.cache
+nosetests.xml
+coverage.xml
+*,cover
+
+# Translations
+*.mo
+*.pot
+
+# Django stuff:
+*.log
+
+# Sphinx documentation
+docs/_build/
+
+# PyBuilder
+target/
+*.swp
diff --git a/CHANGELOG b/CHANGELOG
index 5dae91a..b27c2c4 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,3 +1,10 @@
+0.3.1
+-----
+
+- avoid using deprecated-in-python3.5 getargspec method. Thanks 
+  Michael Droettboom.
+
+
 0.3.0
 -----
 
diff --git a/PKG-INFO b/PKG-INFO
index ac2ae86..b16be9e 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: pluggy
-Version: 0.3.0
+Version: 0.3.1
 Summary: plugin and hook calling mechanisms for python
 Home-page: UNKNOWN
 Author: Holger Krekel
@@ -20,7 +20,7 @@ Platform: unix
 Platform: linux
 Platform: osx
 Platform: win32
-Classifier: Development Status :: 3 - Alpha 
+Classifier: Development Status :: 4 - Beta
 Classifier: Intended Audience :: Developers
 Classifier: License :: OSI Approved :: MIT License
 Classifier: Operating System :: POSIX
@@ -35,3 +35,4 @@ Classifier: Programming Language :: Python :: 2.7
 Classifier: Programming Language :: Python :: 3
 Classifier: Programming Language :: Python :: 3.3
 Classifier: Programming Language :: Python :: 3.4
+Classifier: Programming Language :: Python :: 3.5
diff --git a/pluggy.egg-info/PKG-INFO b/pluggy.egg-info/PKG-INFO
index ac2ae86..b16be9e 100644
--- a/pluggy.egg-info/PKG-INFO
+++ b/pluggy.egg-info/PKG-INFO
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: pluggy
-Version: 0.3.0
+Version: 0.3.1
 Summary: plugin and hook calling mechanisms for python
 Home-page: UNKNOWN
 Author: Holger Krekel
@@ -20,7 +20,7 @@ Platform: unix
 Platform: linux
 Platform: osx
 Platform: win32
-Classifier: Development Status :: 3 - Alpha 
+Classifier: Development Status :: 4 - Beta
 Classifier: Intended Audience :: Developers
 Classifier: License :: OSI Approved :: MIT License
 Classifier: Operating System :: POSIX
@@ -35,3 +35,4 @@ Classifier: Programming Language :: Python :: 2.7
 Classifier: Programming Language :: Python :: 3
 Classifier: Programming Language :: Python :: 3.3
 Classifier: Programming Language :: Python :: 3.4
+Classifier: Programming Language :: Python :: 3.5
diff --git a/pluggy.egg-info/SOURCES.txt b/pluggy.egg-info/SOURCES.txt
index 147e144..29fc89c 100644
--- a/pluggy.egg-info/SOURCES.txt
+++ b/pluggy.egg-info/SOURCES.txt
@@ -1,3 +1,4 @@
+.gitignore
 CHANGELOG
 LICENSE
 MANIFEST.in
@@ -5,9 +6,10 @@ README.rst
 pluggy.py
 setup.cfg
 setup.py
-test_pluggy.py
 tox.ini
 pluggy.egg-info/PKG-INFO
 pluggy.egg-info/SOURCES.txt
 pluggy.egg-info/dependency_links.txt
-pluggy.egg-info/top_level.txt
\ No newline at end of file
+pluggy.egg-info/pbr.json
+pluggy.egg-info/top_level.txt
+testing/test_pluggy.py
\ No newline at end of file
diff --git a/pluggy.egg-info/pbr.json b/pluggy.egg-info/pbr.json
new file mode 100644
index 0000000..d6b7986
--- /dev/null
+++ b/pluggy.egg-info/pbr.json
@@ -0,0 +1 @@
+{"is_release": false, "git_version": "7d4c9cd"}
\ No newline at end of file
diff --git a/pluggy.py b/pluggy.py
index 3a4fcb1..2090dbb 100644
--- a/pluggy.py
+++ b/pluggy.py
@@ -40,7 +40,7 @@ Pluggy currently consists of functionality for:
   is possible to register plugins for which a hook specification is not yet
   known and validate all hooks when the system is in a more referentially
   consistent state.  Setting an "optionalhook" attribution to a hook
-  implementation will avoid PluginValidationError's if a specifcation
+  implementation will avoid PluginValidationError's if a specification
   is missing.  This allows to have optional integration between plugins.
 
 - a "hook" relay object from which you can launch 1:N calls to
@@ -67,7 +67,7 @@ Pluggy currently consists of functionality for:
 import sys
 import inspect
 
-__version__ = '0.3.0'
+__version__ = '0.3.1'
 __all__ = ["PluginManager", "PluginValidationError",
            "HookspecMarker", "HookimplMarker"]
 
@@ -763,8 +763,15 @@ class PluginValidationError(Exception):
     """ plugin failed validation. """
 
 
-def _formatdef(func):
-    return "%s%s" % (
-        func.__name__,
-        inspect.formatargspec(*inspect.getargspec(func))
-    )
+if hasattr(inspect, 'signature'):
+    def _formatdef(func):
+        return "%s%s" % (
+            func.__name__,
+            str(inspect.signature(func))
+        )
+else:
+    def _formatdef(func):
+        return "%s%s" % (
+            func.__name__,
+            inspect.formatargspec(*inspect.getargspec(func))
+        )
diff --git a/setup.cfg b/setup.cfg
index 6f08d0e..3c0e4d9 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -1,6 +1,9 @@
 [bdist_wheel]
 universal = 1
 
+[devpi:upload]
+formats = sdist.tgz,bdist_wheel
+
 [egg_info]
 tag_build = 
 tag_date = 0
diff --git a/setup.py b/setup.py
index bb61f8a..0adb06f 100644
--- a/setup.py
+++ b/setup.py
@@ -4,7 +4,7 @@ import setuptools
 from setuptools import setup
 
 classifiers = [
-    'Development Status :: 3 - Alpha ',
+    'Development Status :: 4 - Beta',
     'Intended Audience :: Developers',
     'License :: OSI Approved :: MIT License',
     'Operating System :: POSIX',
@@ -14,7 +14,7 @@ classifiers = [
     'Topic :: Software Development :: Libraries',
     'Topic :: Utilities'] + [
     ('Programming Language :: Python :: %s' % x) for x in
-    '2 2.6 2.7 3 3.3 3.4'.split()]
+    '2 2.6 2.7 3 3.3 3.4 3.5'.split()]
 
 with open('README.rst') as fd:
     long_description = fd.read()
diff --git a/test_pluggy.py b/testing/test_pluggy.py
similarity index 98%
rename from test_pluggy.py
rename to testing/test_pluggy.py
index cb10fd5..110c31c 100644
--- a/test_pluggy.py
+++ b/testing/test_pluggy.py
@@ -6,7 +6,7 @@ import pytest
 from pluggy import (PluginManager, varnames, PluginValidationError,
                     HookimplMarker, HookspecMarker)
 
-from pluggy import (_MultiCall, _TagTracer, HookImpl)
+from pluggy import (_MultiCall, _TagTracer, HookImpl, _formatdef)
 
 hookspec = HookspecMarker("example")
 hookimpl = HookimplMarker("example")
@@ -665,6 +665,28 @@ def test_varnames_class():
     assert varnames(D) == ()
 
 
+def test_formatdef():
+    def function1():
+        pass
+
+    assert _formatdef(function1) == 'function1()'
+
+    def function2(arg1):
+        pass
+
+    assert _formatdef(function2) == "function2(arg1)"
+
+    def function3(arg1, arg2="qwe"):
+        pass
+
+    assert _formatdef(function3) == "function3(arg1, arg2='qwe')"
+
+    def function4(arg1, *args, **kwargs):
+        pass
+
+    assert _formatdef(function4) == "function4(arg1, *args, **kwargs)"
+
+
 class Test_MultiCall:
     def test_uses_copy_of_methods(self):
         l = [lambda: 42]
diff --git a/tox.ini b/tox.ini
index 40bf755..5a704b5 100644
--- a/tox.ini
+++ b/tox.ini
@@ -1,11 +1,11 @@
 [tox]
-envlist=check,{py26,py27,py34,pypy}-{pytest27,pytest}
+envlist=check,{py26,py27,py34,py35,pypy}-{pytest27,pytest}
 
 [testenv]
-commands= py.test {posargs:test_pluggy.py}
+commands= py.test {posargs:testing/test_pluggy.py}
 deps=
     pytest27: pytest>=2.7.0,<2.8.0
-    pytest: pytest>=2.8.0.dev1
+    pytest: pytest>=2.8.0.dev5
 
 [testenv:check]
 usedevelop=True
@@ -14,7 +14,7 @@ deps = pytest>=2.7.0,<2.8.0
        pytest-flakes
 commands =
     py.test --pep8
-    py.test --flakes -m flakes --pyargs pluggy test_pluggy
+    py.test --flakes -m flakes pluggy.py testing/test_pluggy.py
 
 [pytest]
 minversion=2.0

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-pluggy.git



More information about the Python-modules-commits mailing list