Commits

Daniel Holth committed 110111b

replace dirspec with pyxdg (hosted on pypi); bump version to 0.23.0

  • Participants
  • Parent commits 66fc888

Comments (0)

Files changed (5)

 addopts=--ignore=dist --ignore=build --cov=wheel
 
 [metadata]
-provides-extra = 
+provides-extra =
     tool
     signatures
     faster-signatures
-requires-dist = 
+requires-dist =
     argparse; python_version == '2.6'
     keyring; extra == 'signatures'
-    dirspec; sys.platform != 'win32' and extra == 'signatures'
+    pyxdg; sys.platform != 'win32' and extra == 'signatures'
     ed25519ll; extra == 'faster-signatures'
 license-file = LICENSE.txt
 
 README = codecs.open(os.path.join(here, 'README.txt'), encoding='utf8').read()
 CHANGES = codecs.open(os.path.join(here, 'CHANGES.txt'), encoding='utf8').read()
 
-with codecs.open(os.path.join(os.path.dirname(__file__), 'wheel', '__init__.py'), 
+with codecs.open(os.path.join(os.path.dirname(__file__), 'wheel', '__init__.py'),
                  encoding='utf8') as version_file:
     metadata = dict(re.findall(r"""__([a-z]+)__ = "([^"]+)""", version_file.read()))
 
 #
 signature_reqs = ['keyring']
 if sys.platform != 'win32':
-    signature_reqs.append('dirspec')
+    signature_reqs.append('pyxdg')
 install_requires = []
 if sys.version_info[:2] < (2, 7):
     install_requires.append('argparse')
       keywords=['wheel', 'packaging'],
       license='MIT',
       packages=[
-          'wheel', 
-          'wheel.test', 
-          'wheel.tool', 
+          'wheel',
+          'wheel.test',
+          'wheel.tool',
           'wheel.signatures'
           ],
       install_requires=install_requires,
       extras_require={
           'signatures': signature_reqs,
-          'faster-signatures': ['ed25519ll'], 
+          'faster-signatures': ['ed25519ll'],
           'tool': []
           },
       tests_require=['jsonschema', 'pytest', 'coverage', 'pytest-cov'],
     pytest
     pytest-cov
     wheel[tool,signatures]
-    distribute>=0.6.34
+    setuptools>3.0

File wheel/__init__.py

 # __variables__ with double-quoted values will be available in setup.py:
-__version__ = "0.22.0"
+__version__ = "0.23.0"

File wheel/util.py

 import json
 import hashlib
 
-__all__ = ['urlsafe_b64encode', 'urlsafe_b64decode', 'utf8', 
+__all__ = ['urlsafe_b64encode', 'urlsafe_b64decode', 'utf8',
            'to_json', 'from_json', 'matches_requirement']
 
 def urlsafe_b64encode(data):
                 yield path
 else:
     def save_config_path(*resource):
-        import dirspec.basedir
-        return dirspec.basedir.save_config_path(*resource)
+        import xdg.BaseDirectory
+        return xdg.BaseDirectory.save_config_path(*resource)
     def load_config_paths(*resource):
-        import dirspec.basedir
-        return dirspec.basedir.load_config_paths(*resource)
+        import xdg.BaseDirectory
+        return xdg.BaseDirectory.load_config_paths(*resource)
 
 def matches_requirement(req, wheels):
     """List of wheels matching a requirement.