Skip to content

debian packaging#325

Merged
josegonzalez merged 4 commits into
python-beaver:masterfrom
dmvk:debian
Jul 15, 2015
Merged

debian packaging#325
josegonzalez merged 4 commits into
python-beaver:masterfrom
dmvk:debian

Conversation

@dmvk

@dmvk dmvk commented Jul 14, 2015

Copy link
Copy Markdown
Contributor

this fixes debian packaging and unifies names (username, package name, ...)

@dmvk

dmvk commented Jul 15, 2015

Copy link
Copy Markdown
Contributor Author

I've submitted two more pull request, which are necessary for this one to work properly

Thanks

@josegonzalez

Copy link
Copy Markdown
Member

Why was the name changed from python-beaver to beaver? The repo name is python-beaver, and I'd imagine this would break drop-in upgrades for users, no?

@dmvk

dmvk commented Jul 15, 2015

Copy link
Copy Markdown
Contributor Author

uff, changed it back. How about renaming /etc/beaver to /etc/python-beaver and bin link from /usr/bin/beaver to /usr/bin/python-beaver, so the naming would be more consistent (init script, package name, source location)?

@dmvk dmvk force-pushed the debian branch 2 times, most recently from 559096c to b91ddbd Compare July 15, 2015 17:42
@josegonzalez

Copy link
Copy Markdown
Member

That sounds fine to me :)

@dmvk

dmvk commented Jul 15, 2015

Copy link
Copy Markdown
Contributor Author

changed ;)

Comment thread debian/rules

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why this change?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

otherwise you'd end up with following error:

Exception:
Traceback (most recent call last):
  File "/home/dejv/Workspace/beaver/python-beaver/debian/python-beaver/usr/share/python-beaver/local/lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/basecommand.py", line 104, in main
    status = self.run(options, args)
  File "/home/dejv/Workspace/beaver/python-beaver/debian/python-beaver/usr/share/python-beaver/local/lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/commands/install.py", line 214, in run
    InstallRequirement.from_line(name, None))
  File "/home/dejv/Workspace/beaver/python-beaver/debian/python-beaver/usr/share/python-beaver/local/lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/req.py", line 107, in from_line
    return cls(req, comes_from, url=url)
  File "/home/dejv/Workspace/beaver/python-beaver/debian/python-beaver/usr/share/python-beaver/local/lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/req.py", line 40, in __init__
    req = pkg_resources.Requirement.parse(req)
  File "/home/dejv/Workspace/beaver/python-beaver/debian/python-beaver/usr/share/python-beaver/local/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/pkg_resources.py", line 2510, in parse
    reqs = list(parse_requirements(s))
  File "/home/dejv/Workspace/beaver/python-beaver/debian/python-beaver/usr/share/python-beaver/local/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/pkg_resources.py", line 2436, in parse_requirements
    line, p, specs = scan_list(VERSION,LINE_END,line,p,(1,2),"version spec")
  File "/home/dejv/Workspace/beaver/python-beaver/debian/python-beaver/usr/share/python-beaver/local/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/pkg_resources.py", line 2404, in scan_list
    raise ValueError("Expected "+item_name+" in",line,"at",line[p:])
ValueError: ('Expected version spec in', 'requirements/base.txt', 'at', '/base.txt')

this is because pip will be executed as pip install requirements/base.txt instead of pip install -r requirements/base.txt

I reckon there is no point of having preinstall here, because setuptools handle everything properly.

josegonzalez added a commit that referenced this pull request Jul 15, 2015
@josegonzalez josegonzalez merged commit 53504c4 into python-beaver:master Jul 15, 2015
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 this pull request may close these issues.

2 participants