[148011] trunk/dports/python/py-entrypoints
stromnov at macports.org
stromnov at macports.org
Sun Apr 24 12:46:11 PDT 2016
Revision: 148011
https://trac.macports.org/changeset/148011
Author: stromnov at macports.org
Date: 2016-04-24 12:46:11 -0700 (Sun, 24 Apr 2016)
Log Message:
-----------
py-entrypoints: update to version 0.2.1
Modified Paths:
--------------
trunk/dports/python/py-entrypoints/Portfile
trunk/dports/python/py-entrypoints/files/entrypoints.py
trunk/dports/python/py-entrypoints/files/setup.py
Modified: trunk/dports/python/py-entrypoints/Portfile
===================================================================
--- trunk/dports/python/py-entrypoints/Portfile 2016-04-24 17:01:31 UTC (rev 148010)
+++ trunk/dports/python/py-entrypoints/Portfile 2016-04-24 19:46:11 UTC (rev 148011)
@@ -5,8 +5,8 @@
PortGroup python 1.0
name py-entrypoints
-version 0.2
-revision 1
+version 0.2.1
+revision 0
categories-append devel
platforms darwin
license BSD
Modified: trunk/dports/python/py-entrypoints/files/entrypoints.py
===================================================================
--- trunk/dports/python/py-entrypoints/files/entrypoints.py 2016-04-24 17:01:31 UTC (rev 148010)
+++ trunk/dports/python/py-entrypoints/files/entrypoints.py 2016-04-24 19:46:11 UTC (rev 148011)
@@ -19,7 +19,7 @@
$
""", re.VERBOSE)
-__version__ = '0.2'
+__version__ = '0.2.1'
class BadEntryPoint(Exception):
"""Raised when an entry point can't be parsed.
@@ -48,6 +48,10 @@
return "No {!r} entry point found in group {!r}".format(self.name, self.group)
+class CaseSensitiveConfigParser(configparser.ConfigParser):
+ optionxform = staticmethod(str)
+
+
class EntryPoint(object):
def __init__(self, name, module_name, object_name, extras=None, distro=None):
self.name = name
@@ -125,7 +129,7 @@
if osp.isdir(folder):
ep_path = osp.join(folder, 'EGG-INFO', 'entry_points.txt')
if osp.isfile(ep_path):
- cp = configparser.ConfigParser()
+ cp = CaseSensitiveConfigParser()
cp.read(ep_path)
yield cp, distro
@@ -135,7 +139,7 @@
info = z.getinfo('EGG-INFO/entry_points.txt')
except KeyError:
continue
- cp = configparser.ConfigParser()
+ cp = CaseSensitiveConfigParser()
with z.open(info) as f:
fu = io.TextIOWrapper(f)
cp.read_file(fu,
@@ -156,7 +160,7 @@
distro_names_seen.add(distro.name)
else:
distro = None
- cp = configparser.ConfigParser()
+ cp = CaseSensitiveConfigParser()
cp.read(path)
yield cp, distro
Modified: trunk/dports/python/py-entrypoints/files/setup.py
===================================================================
--- trunk/dports/python/py-entrypoints/files/setup.py 2016-04-24 17:01:31 UTC (rev 148010)
+++ trunk/dports/python/py-entrypoints/files/setup.py 2016-04-24 19:46:11 UTC (rev 148011)
@@ -2,7 +2,7 @@
setup(
name='entrypoints',
- version='0.2',
+ version='0.2.1',
description='Discover and load entry points from installed packages.',
author='Thomas Kluyver',
author_email='thomas at kluyver.me.uk',
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160424/47da6a25/attachment.html>
More information about the macports-changes
mailing list