Last active
October 5, 2015 22:45
-
-
Save rafamanzo/ae7090ee8e616fe71ca6 to your computer and use it in GitHub Desktop.
Mock PBR Bug
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
python setup.py test (env: mock_pbr_bug) | |
Installed /home/manzo/workspace/mock_pbr_bug/.eggs/pbr-1.8.0-py3.5.egg | |
running test | |
Searching for mock>=1.0.1 | |
Reading https://pypi.python.org/simple/mock/ | |
Best match: mock 1.3.0 | |
Downloading https://pypi.python.org/packages/source/m/mock/mock-1.3.0.tar.gz#md5=73ee8a4afb3ff4da1b4afa287f39fdeb | |
Processing mock-1.3.0.tar.gz | |
Writing /tmp/easy_install-wkszibq2/mock-1.3.0/setup.cfg | |
Running mock-1.3.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-wkszibq2/mock-1.3.0/egg-dist-tmp-rmo_n41n | |
ERROR:root:Error parsing | |
Traceback (most recent call last): | |
File "/home/manzo/workspace/mock_pbr_bug/.eggs/pbr-1.8.0-py3.5.egg/pbr/core.py", line 109, in pbr | |
attrs = util.cfg_to_args(path) | |
File "/home/manzo/workspace/mock_pbr_bug/.eggs/pbr-1.8.0-py3.5.egg/pbr/util.py", line 245, in cfg_to_args | |
kwargs = setup_cfg_to_setup_kwargs(config) | |
File "/home/manzo/workspace/mock_pbr_bug/.eggs/pbr-1.8.0-py3.5.egg/pbr/util.py", line 379, in setup_cfg_to_setup_kwargs | |
cmd = cls(dist) | |
File "/home/manzo/.virtualenvs/mock_pbr_bug/lib/python3.5/site-packages/setuptools/__init__.py", line 127, in __init__ | |
_Command.__init__(self,dist) | |
File "/usr/lib64/python3.5/distutils/cmd.py", line 57, in __init__ | |
raise TypeError("dist must be a Distribution instance") | |
TypeError: dist must be a Distribution instance |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
""" | |
Mock PBR Bug | |
=================== | |
There is a parse bug from pbr 1.8.0 with mock 1.3.0. | |
""" | |
from setuptools import setup, find_packages | |
setup_requires = [ | |
'pbr', | |
] | |
install_requires = [ | |
] | |
tests_require = [ | |
'mock>=1.3.0', | |
] | |
setup( | |
name="mock_pbr_bug", | |
version='0.0.1', | |
author='Rafael Reggiani Manzo', | |
author_email='[email protected]', | |
url='https://gist.github.com/rafamanzo/ae7090ee8e616fe71ca6', | |
description='There is a parse bug from pbr 1.8.0 with mock 1.3.0.', | |
long_description=__doc__, | |
license='GPL3', | |
packages=find_packages(), | |
zip_safe=False, | |
setup_requires=setup_requires, | |
pbr=False, | |
install_requires=install_requires, | |
tests_require=tests_require, | |
extras_require={'test': tests_require}, | |
include_package_data=True, | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment