Make installable with pip - #9
Conversation
|
Thanks! This is great! Testing it, one question is how to deal with And with this change that will still work but it will report the version as "(local)". Is it possible to store the current version in |
|
Separate echo '1.1.0' > VERSIONsetup.py: version=open('VERSION').read().strip()That gets you one place to edit it for sure. I'm not sure if that's the best solution. I'm just throwing that out there. It's possible for python to read the version from the |
|
How about keeping version number and all history in a ChangeLog?
|
|
@fearphage A separate VERSION file doesn't combine well with offering a "download this one file and put it on your path" installation option. @svetlyak40wt Lots of people will use icdiff without having a git checkout, and I'd like people to be able to see what version they're running. (To debug problems, among other things.) |
|
Then the only option is to put |
|
But anyway, making a changelog is a good idea. That way people will be able to track what happening with the project. |
|
Yes, I think Separately, making a ChangeLog file sounds good. I'll do that. |
|
Added changelog. |
|
As |
|
I looked at |
|
@macro1 I dont see where setuptools helps you to extract version from the file. And whouldn't it be simple to use |
|
@svetlyak40wt, sorry, it didn't provide anything. I read their source and borrowed: The idea is you want to make sure |
|
Merged as 5af6255 |
|
As pointed out by @virtuald, that commit actually removes the contents of @jeffkaufman I can squash and rebase this branch if needed. |
|
#$%@ it. Fixed with 365dfef. Sorry! |
This will at least make the project installable with pip. Maybe it will facilitate getting it hosted on PyPI.
Once merged you could install directly from github with:
Since the changes are already hosted on github, you could try it out by installing from my branch like this:
If you've installed it, and want to try installing again, you can
pip uninstall icdiffbefore rerunning the install command.