den-run-ai / ctypesgen

Automatically exported from code.google.com/p/ctypesgen
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Include SVN revision number in ctypesgen version #9

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I've uploaded it http://code.google.com/p/ctypesgen/ and manually added SVN 
revision to version number in setup.py This information can be updated 
semi-automatically. Feel free to copy the svn revision extraction function from 
http://bitbucket.org/techtonik/pypi-rietveld/src/tip/refresh.py

Original issue reported on code.google.com by techtonik@gmail.com on 20 Sep 2010 at 1:24

GoogleCodeExporter commented 9 years ago
Hi techtonik,

I'm not sure what you've uploaded or where. Are you asking for the version 
number in setup.py to be based on the svn revision? 

If you could clarify that would be helpful.

Thanks!

Original comment by clac...@gmail.com on 20 Sep 2010 at 9:39

GoogleCodeExporter commented 9 years ago
Uploaded to PyPI. Wrong link, sorry. Here is the correct one - 
http://pypi.python.org/pypi/ctypesgen

And about version number - it will be useful to get SVN revision a part of 
version string. Both in setup.py for packaging, and in ctypesgen for 
troubleshooting.

Original comment by techtonik@gmail.com on 20 Sep 2010 at 10:19

GoogleCodeExporter commented 9 years ago
OK, that makes sense :-)

As you are the PyPI submitter would you mind doing the work for this?

The classic way to do this is to import the module in setup.py and pick up the 
version from there. The question then is how to get the version number into the 
module. This can be done with a static version field in the module that is 
either updated by hand OR using something like your refresh.py example. However 
the version number needs to work even if svn is not available (e.g. extracted 
tarball).

I've updated the module and script to use a central location for the version 
string but it still needs the svn stuff adding. See r121 
http://code.google.com/p/ctypesgen/source/detail?r=121

Original comment by clac...@gmail.com on 21 Sep 2010 at 3:19

GoogleCodeExporter commented 9 years ago
I've updated http://code.google.com/p/ctypesgen/wiki/GettingStarted with a link 
to the PyPI (tarball). Thanks for making this available on PyPI!

Original comment by clac...@gmail.com on 21 Sep 2010 at 3:24

GoogleCodeExporter commented 9 years ago
The main reason I've uploaded it to PyPI is to be able to install it with 
easy_install. If you're registered on PyPI - I can add you to maintainers also, 
so that you can update the package with:

setup.py sdist upload

As for r121 commit - if you enable code reviews for this project - I may 
comment inline.

Original comment by techtonik@gmail.com on 21 Sep 2010 at 9:25

GoogleCodeExporter commented 9 years ago
Would you mind joining the developers mailing list/group:

   http://groups.google.com/group/ctypesgen

It sounds like you've a few ideas on enhancements and it would be good to get 
more discussion going.

I'm not the project owner so I can't enable code reviews, I just have commit 
permissions.

Chris

Original comment by clac...@gmail.com on 21 Sep 2010 at 3:56