Merge lp://qastaging/~adam.russell/pyexiv2/pyexiv2-0.3 into lp://qastaging/pyexiv2

Proposed by Adam
Status: Needs review
Proposed branch: lp://qastaging/~adam.russell/pyexiv2/pyexiv2-0.3
Merge into: lp://qastaging/pyexiv2
Diff against target: 57 lines (+40/-0)
3 files modified
.bzrignore (+2/-0)
setup.py (+25/-0)
src/libexiv2python.py (+13/-0)
To merge this branch: bzr merge lp://qastaging/~adam.russell/pyexiv2/pyexiv2-0.3
Reviewer Review Type Date Requested Status
Olivier Tilloy Pending
Review via email: mp+96040@code.qastaging.launchpad.net

Description of the change

I have added a setup.py file for you. I didn't want to touch the system you have in place with scons, though, so I worked around that. However, I (and many others, I'm sure) love the pip and virtualenv tools, and currently pyexiv2 isn't very friendly with those. This branch allows pyexiv2 to easily be installed by pip, e.g.:

pip install -e bzr+lp:~adam.russell/pyexiv2/pyexiv2-0.3#egg=pyexiv2

This branch will make things easier on any project that depends on pyexiv2, as they will be able to put it in a requirements.txt file. It's a step closer to being able to put pyexiv2 on PyPI, too, if that's something you want to do.

I should note that I only tested these changes with Python 2.7. Not sure how old of a Python version you want to support, or if that even really matters. Anyway, let me know if you have any questions about what I wrote or if there are any changes you'd like me to make.

To post a comment you must log in.
Revision history for this message
Olivier Tilloy (osomon) wrote :

Thanks for your contribution Adam!

I’m not familiar with pip and virtualenv myself, but I guess making pyexiv2 more accessible to developers who use those tools can only be a good thing.

I don’t have much spare time on my hands now, but I’ll eventually review your code, thanks in advance for your patience.

I hadn’t though of publishing pyexiv2 on PyPI before (it’s already available in a number of distributions as native packages), but it can’t hurt :)

Regarding the versions of Python supported, it’s 2.6 and upwards (unfortunately Python 3 is not supported yet). When I get to testing your code I’ll make sure I test with 2.6 too.

Revision history for this message
Hobson Lane (hobs) wrote :

Awesome. Pip and setup.py support will makes pyexiv2 easier to integrate into Pinax and Django webapps.

Revision history for this message
Adam (adam.russell) wrote :

Have you had a chance to review these changes yet, by any chance?

Revision history for this message
Olivier Tilloy (osomon) wrote :

> Have you had a chance to review these changes yet, by any chance?

Unfortunately, no, not yet. Sorry about the delay, I hope you don’t interpret it as a lack of interest from my part, your contribution is most welcome but at the moment I can’t spare time to review it. I’ll eventually get to it…

Unmerged revisions

376. By Adam Russell <email address hidden>

Reload libexiv2python in libexiv2python.py.

375. By Adam Russell <email address hidden>

Remove relative import from libexiv2python.py.

374. By Adam Russell <email address hidden>

Add setup.py.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches