[Python-modules-commits] [python-social-auth] 15/71: Fix pypy support, no python-saml for it, silence python2.6 warnings

Wolfgang Borgert debacle at moszumanska.debian.org
Sat Dec 24 15:14:22 UTC 2016


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

debacle pushed a commit to tag v0.2.14
in repository python-social-auth.

commit ce3da987c83d89cfc77df3256eee67f436394d02
Author: Matías Aguirre <matiasaguirre at gmail.com>
Date:   Mon Oct 5 09:49:14 2015 -0300

    Fix pypy support, no python-saml for it, silence python2.6 warnings
---
 .gitignore                         | 2 ++
 social/tests/__init__.py           | 8 ++++++++
 social/tests/requirements-pypy.txt | 8 ++++++++
 tox.ini                            | 3 +++
 4 files changed, 21 insertions(+)

diff --git a/.gitignore b/.gitignore
index e6c34a6..f6bf775 100644
--- a/.gitignore
+++ b/.gitignore
@@ -44,3 +44,5 @@ changelog.sh
 .DS_Store
 .\#*
 \#*\#
+
+.python-version
diff --git a/social/tests/__init__.py b/social/tests/__init__.py
index e69de29..3dee975 100644
--- a/social/tests/__init__.py
+++ b/social/tests/__init__.py
@@ -0,0 +1,8 @@
+import sys
+import warnings
+
+
+# Ignore deprecation warnings on Python2.6. Maybe it's time to ditch this
+# oldie?
+if sys.version_info[0] == 2 and sys.version_info[1] == 6:
+    warnings.filterwarnings('ignore', category=Warning)
diff --git a/social/tests/requirements-pypy.txt b/social/tests/requirements-pypy.txt
new file mode 100644
index 0000000..33cef25
--- /dev/null
+++ b/social/tests/requirements-pypy.txt
@@ -0,0 +1,8 @@
+httpretty==0.6.5
+coverage>=3.6
+mock==1.0.1
+nose>=1.2.1
+rednose>=0.4.1
+requests>=1.1.0
+PyJWT>=1.0.0,<2.0.0
+unittest2==0.5.1
diff --git a/tox.ini b/tox.ini
index 298244e..57eec34 100644
--- a/tox.ini
+++ b/tox.ini
@@ -10,6 +10,9 @@ envlist = py26, py27, py33, py34, pypy, doc
 commands = nosetests --where=social/tests --stop
 deps = -r{toxinidir}/social/tests/requirements.txt
 
+[testenv:pypy]
+deps = -r{toxinidir}/social/tests/requirements-pypy.txt
+
 [testenv:py33]
 deps = -r{toxinidir}/social/tests/requirements-python3.txt
 

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



More information about the Python-modules-commits mailing list