[Python-modules-commits] [purl] 03/08: Import purl_1.3.1.orig.tar.gz

Michael Fladischer fladi at moszumanska.debian.org
Wed May 24 08:45:09 UTC 2017


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

fladi pushed a commit to branch experimental
in repository purl.

commit 8d2d4451baebb0505bf4ac721dc272edbad4ab88
Author: Michael Fladischer <FladischerMichael at fladi.at>
Date:   Tue May 16 10:41:19 2017 +0200

    Import purl_1.3.1.orig.tar.gz
---
 PKG-INFO               | 11 ++++++++++-
 README.rst             |  9 +++++++++
 purl.egg-info/PKG-INFO | 11 ++++++++++-
 purl/url.py            |  4 ++++
 setup.py               |  2 +-
 5 files changed, 34 insertions(+), 3 deletions(-)

diff --git a/PKG-INFO b/PKG-INFO
index 1fd342d..157e061 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: purl
-Version: 1.3
+Version: 1.3.1
 Summary: An immutable URL class for easy URL-building and manipulation
 Home-page: https://github.com/codeinthehole/purl
 Author: David Winterbottom
@@ -150,6 +150,7 @@ Description: ================================
         * Since the URL class is immutable it can be used as a key in a dictionary
         * It can be pickled and restored
         * It supports equality operations
+        * It supports equality operations
         
         URL templates can be used either via a ``Template`` class:
         
@@ -176,6 +177,11 @@ Description: ================================
         Changelog
         ---------
         
+        v1.3.1
+        ~~~~~~
+        
+        * Ensure paths always have a leading slash
+        
         v1.3
         ~~~~
         
@@ -283,6 +289,9 @@ Description: ================================
         or::
         
             $ tox
+            $ tox
+            $ tox
+            $ tox
         
         Hack away.
         
diff --git a/README.rst b/README.rst
index 70edbda..8dba0da 100644
--- a/README.rst
+++ b/README.rst
@@ -142,6 +142,7 @@ Couple of other things:
 * Since the URL class is immutable it can be used as a key in a dictionary
 * It can be pickled and restored
 * It supports equality operations
+* It supports equality operations
 
 URL templates can be used either via a ``Template`` class:
 
@@ -168,6 +169,11 @@ A wide variety of expansions are possible - refer to the RFC_ for more details.
 Changelog
 ---------
 
+v1.3.1
+~~~~~~
+
+* Ensure paths always have a leading slash
+
 v1.3
 ~~~~
 
@@ -275,5 +281,8 @@ Ensure tests pass using::
 or::
 
     $ tox
+    $ tox
+    $ tox
+    $ tox
 
 Hack away.
diff --git a/purl.egg-info/PKG-INFO b/purl.egg-info/PKG-INFO
index 1fd342d..157e061 100644
--- a/purl.egg-info/PKG-INFO
+++ b/purl.egg-info/PKG-INFO
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: purl
-Version: 1.3
+Version: 1.3.1
 Summary: An immutable URL class for easy URL-building and manipulation
 Home-page: https://github.com/codeinthehole/purl
 Author: David Winterbottom
@@ -150,6 +150,7 @@ Description: ================================
         * Since the URL class is immutable it can be used as a key in a dictionary
         * It can be pickled and restored
         * It supports equality operations
+        * It supports equality operations
         
         URL templates can be used either via a ``Template`` class:
         
@@ -176,6 +177,11 @@ Description: ================================
         Changelog
         ---------
         
+        v1.3.1
+        ~~~~~~
+        
+        * Ensure paths always have a leading slash
+        
         v1.3
         ~~~~
         
@@ -283,6 +289,9 @@ Description: ================================
         or::
         
             $ tox
+            $ tox
+            $ tox
+            $ tox
         
         Hack away.
         
diff --git a/purl/url.py b/purl/url.py
index b81e056..57a845c 100644
--- a/purl/url.py
+++ b/purl/url.py
@@ -164,6 +164,10 @@ class URL(object):
                       'query': None,
                       'fragment': None}
 
+        # Ensure path starts with a slash
+        if path and not path.startswith("/"):
+            path = "/%s" % path
+
         # Kwargs override the url_str
         for var in 'host username password scheme port path query fragment'.split():
             if locals()[var] is not None:
diff --git a/setup.py b/setup.py
index 85433e7..cf5f7bf 100755
--- a/setup.py
+++ b/setup.py
@@ -3,7 +3,7 @@ from setuptools import setup, find_packages
 
 setup(
     name='purl',
-    version='1.3',
+    version='1.3.1',
     description=(
         "An immutable URL class for easy URL-building and manipulation"),
     long_description=open('README.rst').read(),

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



More information about the Python-modules-commits mailing list