Skip to content

Fix setup version - #12

Merged
astrofrog merged 3 commits into
astropy:masterfrom
embray:fix-setup-version
Oct 14, 2011
Merged

astrofrog merged 3 commits into
astropy:masterfrom
embray:fix-setup-version

Conversation

@embray

@embray embray commented Oct 13, 2011

Copy link
Copy Markdown
Member

This request illustrates my proposed solution to issue #8. There's plenty of room here for massaging, but I wanted to put something up as a starting point.

This fix has 3 advantages over the current situation:

  • version.py is updated for commands besides build, such as sdist
  • the base version string is kept in the setup.py, which is the first place where most people and tools will look for it
  • the revision number is automatically updated on each astropy import if the package is installed in develop mode

…ION string is kept in the setup.py where all other metadata for the package already ends up. To me, putting it in version_helper, which are really just utitilites, seems odd. The version.py contains some code to optionally update the version string on each import if the package is installed with 'setup.py' develop. 'import astropy' succeeds even if the version.py file is missing--though this situtation should only occur on initial setup, so maybe a warning should be issued in all other contexts.
astrofrog added a commit that referenced this pull request Oct 14, 2011
@astrofrog
astrofrog merged commit 12c5591 into astropy:master Oct 14, 2011
keflavich referenced this pull request in keflavich/astropy Oct 9, 2013
taldcroft referenced this pull request in taldcroft/astropy Apr 25, 2014
Implementation of frames/low-level classes
cdeil pushed a commit to cdeil/astropy that referenced this pull request Dec 17, 2014
mirca pushed a commit to mirca/astropy that referenced this pull request Jun 22, 2017
add simple test case against numpy.convolve
jeffjennings pushed a commit to jeffjennings/astropy that referenced this pull request Jul 2, 2025
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