Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setup.cfg contains a version, causing pip install directly from github to fail #8

Closed
onitake opened this issue May 11, 2016 · 2 comments

Comments

@onitake
Copy link

onitake commented May 11, 2016

When I use pip to install the retry version from Github, I get the following error:

  Updating ./src/decorator clone
    Complete output from command python setup.py egg_info:
    ERROR:root:Error parsing
    Traceback (most recent call last):
      File "/tmp/src/decorator/.eggs/pbr-1.9.1-py2.6.egg/pbr/core.py", line 111, in pbr
        attrs = util.cfg_to_args(path, dist.script_args)
      File "/tmp/src/decorator/.eggs/pbr-1.9.1-py2.6.egg/pbr/util.py", line 246, in cfg_to_args
        pbr.hooks.setup_hook(config)
      File "/tmp/src/decorator/.eggs/pbr-1.9.1-py2.6.egg/pbr/hooks/__init__.py", line 25, in setup_hook
        metadata_config.run()
      File "/tmp/src/decorator/.eggs/pbr-1.9.1-py2.6.egg/pbr/hooks/base.py", line 27, in run
        self.hook()
      File "/tmp/src/decorator/.eggs/pbr-1.9.1-py2.6.egg/pbr/hooks/metadata.py", line 26, in hook
        self.config['name'], self.config.get('version', None))
      File "/tmp/src/decorator/.eggs/pbr-1.9.1-py2.6.egg/pbr/packaging.py", line 701, in get_version
        version = _get_version_from_git(pre_version)
      File "/tmp/src/decorator/.eggs/pbr-1.9.1-py2.6.egg/pbr/packaging.py", line 641, in _get_version_from_git
        result = _get_version_from_git_target(git_dir, target_version)
      File "/tmp/src/decorator/.eggs/pbr-1.9.1-py2.6.egg/pbr/packaging.py", line 603, in _get_version_from_git_target
        dict(new=new_version, target=target_version))
    ValueError: git history requires a target version of pbr.version.SemanticVersion(0.9.2), but target version is pbr.version.SemanticVersion(0.9.1)
    error in setup command: Error parsing /tmp/src/decorator/setup.cfg: ValueError: git history requires a target version of pbr.version.SemanticVersion(0.9.2), but target version is pbr.version.SemanticVersion(0.9.1)

This happens because setup.cfg mentions an explicit version number, but the current commit is ahead of the last version tag.

Could you remove this version specifier (like it was done here) or release a new version soon? I'm currently stuck in dependency limbo because of the decorator<4.0.0 limitation in 0.9.1.

@invl
Copy link
Owner

invl commented May 11, 2016

I've pushed a new release v0.9.2 to PyPI, please let me know if the problem is still there.

@onitake
Copy link
Author

onitake commented May 11, 2016

As far as I can tell, it's working now.
Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants