[Python-modules-commits] [whichcraft] 01/01: Import whichcraft_0.4.0.orig.tar.gz

Vincent Bernat bernat at moszumanska.debian.org
Sun Dec 25 19:56:25 UTC 2016


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

bernat pushed a commit to branch upstream
in repository whichcraft.

commit 73ba81b65d87396c4ec2b5c5933986a0dba740ca
Author: Vincent Bernat <bernat at debian.org>
Date:   Sun Dec 25 20:48:54 2016 +0100

    Import whichcraft_0.4.0.orig.tar.gz
---
 AUTHORS.rst                     |  3 ++-
 HISTORY.rst                     | 19 +++++++++++++++++++
 LICENSE                         |  4 ++--
 MANIFEST.in                     |  3 ++-
 PKG-INFO                        | 25 ++++++++++++++++++++++++-
 README.rst                      |  3 +++
 setup.cfg                       |  2 +-
 setup.py                        |  3 ++-
 test_whichcraft.py              | 20 ++++++++++++++++++++
 whichcraft.egg-info/PKG-INFO    | 25 ++++++++++++++++++++++++-
 whichcraft.egg-info/SOURCES.txt |  1 +
 whichcraft.py                   | 13 ++++---------
 12 files changed, 104 insertions(+), 17 deletions(-)

diff --git a/AUTHORS.rst b/AUTHORS.rst
index 562f390..4623a7d 100644
--- a/AUTHORS.rst
+++ b/AUTHORS.rst
@@ -10,4 +10,5 @@ Development Lead
 Contributors
 ------------
 
-None yet. Why not be the first?
\ No newline at end of file
+* Edward Betts (@EdwardBetts)
+* Nick Coghlan (@ncoghlan)
diff --git a/HISTORY.rst b/HISTORY.rst
index 0399378..c7cf262 100644
--- a/HISTORY.rst
+++ b/HISTORY.rst
@@ -1,6 +1,25 @@
 History
 =========
 
+0.3.1 (2016-05-10)
+---------------------
+
+* Now testing for `which` directly, so we can support versions of Python 3 before 3.3 (@nickcoghlan)
+
+0.3.1 (2016-04-24)
+---------------------
+
+* Correcting version in whichcraft.py
+
+0.3.0 (2016-04-24)
+---------------------
+
+* Include tests in release source tarball (@Edwardbetts)
+
+0.2.0 (2016-04-23)
+---------------------
+
+* Python 3.5 compatability
 
 0.1.1 (2015-09-09)
 ---------------------
diff --git a/LICENSE b/LICENSE
index 5daad23..58b63d2 100644
--- a/LICENSE
+++ b/LICENSE
@@ -1,4 +1,4 @@
-Copyright (c) 2015, Daniel Roy Greenfeld
+Copyright (c) 2015-2016, Daniel Roy Greenfeld
 All rights reserved.
 
 Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
@@ -9,4 +9,4 @@ Redistribution and use in source and binary forms, with or without modification,
 
 * Neither the name of whichcraft nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
 
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROF [...]
\ No newline at end of file
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROF [...]
diff --git a/MANIFEST.in b/MANIFEST.in
index 4ac7293..51a1a5f 100644
--- a/MANIFEST.in
+++ b/MANIFEST.in
@@ -3,6 +3,7 @@ include CONTRIBUTING.rst
 include HISTORY.rst
 include LICENSE
 include README.rst
+include test_whichcraft.py
 
 recursive-exclude * __pycache__
-recursive-exclude * *.py[co]
\ No newline at end of file
+recursive-exclude * *.py[co]
diff --git a/PKG-INFO b/PKG-INFO
index 4ca03b8..02be475 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: whichcraft
-Version: 0.1.1
+Version: 0.4.0
 Summary: This package provides cross-platform cross-python shutil.which functionality.
 Home-page: https://github.com/pydanny/whichcraft
 Author: Daniel Roy Greenfeld
@@ -15,6 +15,9 @@ Description: ===============================
         
         .. image:: https://travis-ci.org/pydanny/whichcraft.png?branch=master
                 :target: https://travis-ci.org/pydanny/whichcraft
+                
+        .. image:: http://codecov.io/github/pydanny/whichcraft/coverage.svg?branch=master
+                :target: http://codecov.io/github/pydanny/whichcraft?branch=master
         
         ::
         
@@ -57,6 +60,25 @@ Description: ===============================
         History
         =========
         
+        0.3.1 (2016-05-10)
+        ---------------------
+        
+        * Now testing for `which` directly, so we can support versions of Python 3 before 3.3 (@nickcoghlan)
+        
+        0.3.1 (2016-04-24)
+        ---------------------
+        
+        * Correcting version in whichcraft.py
+        
+        0.3.0 (2016-04-24)
+        ---------------------
+        
+        * Include tests in release source tarball (@Edwardbetts)
+        
+        0.2.0 (2016-04-23)
+        ---------------------
+        
+        * Python 3.5 compatability
         
         0.1.1 (2015-09-09)
         ---------------------
@@ -79,3 +101,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/README.rst b/README.rst
index acfd204..1b9f00c 100644
--- a/README.rst
+++ b/README.rst
@@ -7,6 +7,9 @@ whichcraft
 
 .. image:: https://travis-ci.org/pydanny/whichcraft.png?branch=master
         :target: https://travis-ci.org/pydanny/whichcraft
+        
+.. image:: http://codecov.io/github/pydanny/whichcraft/coverage.svg?branch=master
+        :target: http://codecov.io/github/pydanny/whichcraft?branch=master
 
 ::
 
diff --git a/setup.cfg b/setup.cfg
index 414c525..50b2bf6 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -5,7 +5,7 @@ universal = 1
 universal = 1
 
 [egg_info]
-tag_build = 
 tag_date = 0
 tag_svn_revision = 0
+tag_build = 
 
diff --git a/setup.py b/setup.py
index cbe7f7f..64aba85 100644
--- a/setup.py
+++ b/setup.py
@@ -9,7 +9,7 @@ try:
 except ImportError:
     from distutils.core import setup
 
-version = "0.1.1"
+version = "0.4.0"
 
 if sys.argv[-1] == 'publish':
     try:
@@ -64,5 +64,6 @@ setup(
         'Programming Language :: Python :: 3',
         'Programming Language :: Python :: 3.3',
         'Programming Language :: Python :: 3.4',
+        'Programming Language :: Python :: 3.5',
     ],
 )
diff --git a/test_whichcraft.py b/test_whichcraft.py
new file mode 100644
index 0000000..239944d
--- /dev/null
+++ b/test_whichcraft.py
@@ -0,0 +1,20 @@
+import os
+
+import pytest
+from whichcraft import which
+
+
+def test_existing_command():
+    cmd = which('date')
+    assert cmd
+    assert os.path.exists(cmd)
+    assert os.access(cmd, os.F_OK | os.X_OK)
+    assert not os.path.isdir(cmd)
+
+
+def test_non_existing_command():
+    assert which('stringthatisntashellcommand') is None
+
+
+if __name__ == '__main__':
+    pytest.main()
diff --git a/whichcraft.egg-info/PKG-INFO b/whichcraft.egg-info/PKG-INFO
index 4ca03b8..02be475 100644
--- a/whichcraft.egg-info/PKG-INFO
+++ b/whichcraft.egg-info/PKG-INFO
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: whichcraft
-Version: 0.1.1
+Version: 0.4.0
 Summary: This package provides cross-platform cross-python shutil.which functionality.
 Home-page: https://github.com/pydanny/whichcraft
 Author: Daniel Roy Greenfeld
@@ -15,6 +15,9 @@ Description: ===============================
         
         .. image:: https://travis-ci.org/pydanny/whichcraft.png?branch=master
                 :target: https://travis-ci.org/pydanny/whichcraft
+                
+        .. image:: http://codecov.io/github/pydanny/whichcraft/coverage.svg?branch=master
+                :target: http://codecov.io/github/pydanny/whichcraft?branch=master
         
         ::
         
@@ -57,6 +60,25 @@ Description: ===============================
         History
         =========
         
+        0.3.1 (2016-05-10)
+        ---------------------
+        
+        * Now testing for `which` directly, so we can support versions of Python 3 before 3.3 (@nickcoghlan)
+        
+        0.3.1 (2016-04-24)
+        ---------------------
+        
+        * Correcting version in whichcraft.py
+        
+        0.3.0 (2016-04-24)
+        ---------------------
+        
+        * Include tests in release source tarball (@Edwardbetts)
+        
+        0.2.0 (2016-04-23)
+        ---------------------
+        
+        * Python 3.5 compatability
         
         0.1.1 (2015-09-09)
         ---------------------
@@ -79,3 +101,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/whichcraft.egg-info/SOURCES.txt b/whichcraft.egg-info/SOURCES.txt
index 9a3359d..e2e8c64 100644
--- a/whichcraft.egg-info/SOURCES.txt
+++ b/whichcraft.egg-info/SOURCES.txt
@@ -6,6 +6,7 @@ MANIFEST.in
 README.rst
 setup.cfg
 setup.py
+test_whichcraft.py
 whichcraft.py
 whichcraft.egg-info/PKG-INFO
 whichcraft.egg-info/SOURCES.txt
diff --git a/whichcraft.py b/whichcraft.py
index 0eded9c..8511d97 100644
--- a/whichcraft.py
+++ b/whichcraft.py
@@ -2,20 +2,15 @@
 
 __author__ = 'Daniel Roy Greenfeld'
 __email__ = 'pydanny at gmail.com'
-__version__ = '0.1.1'
-
+__version__ = '0.4.0'
 
 import os
 import sys
 
-PY3 = sys.version_info[0] == 3
-
-
-if PY3:  # Forced testing
-
+try:
     from shutil import which
-
-else:  # Forced testing
+except ImportError:
+    # Versions prior to Python 3.3 don't have shutil.which
 
     def which(cmd, mode=os.F_OK | os.X_OK, path=None):
         """Given a command, mode, and a PATH string, return the path which

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



More information about the Python-modules-commits mailing list