Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't import kiva/_version.py from setup.py #257

Merged
merged 3 commits into from
Dec 8, 2016
Merged

Conversation

jwiggins
Copy link
Member

@jwiggins jwiggins commented Dec 3, 2016

Fixes #254 and #253

six was already in the __requires__ list in enable/init.py.

Instead, compile()/exec() to avoid triggering kiva/__init__.py
@codecov-io
Copy link

codecov-io commented Dec 3, 2016

Current coverage is 52.05% (diff: 100%)

Merging #257 into master will not change coverage

@@             master       #257   diff @@
==========================================
  Files           126        126          
  Lines         13176      13176          
  Methods           0          0          
  Messages          0          0          
  Branches       1943       1943          
==========================================
  Hits           6859       6859          
  Misses         5872       5872          
  Partials        445        445          

Powered by Codecov. Last update 682c6bc...ff55ae5

raise ImportError("Unable to import git_revision. Try removing "
"kiva/_version.py and the build directory "
"before building.")
git_revision, full_version = read_version_py('kiva/_version.py')
Copy link
Contributor

Choose a reason for hiding this comment

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

Probably need to be careful here:

  • cross-platform path construction
  • need to ensure that it works if setup.py is not in current working dir (ie. base off of os.dirname(__file__)).

Copy link
Member Author

Choose a reason for hiding this comment

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

Good point. Done.

@jwiggins
Copy link
Member Author

jwiggins commented Dec 8, 2016

I've built the sdist from this branch on both 2.7 and 3.5. It should be good to go, right?

@corranwebster
Copy link
Contributor

Yep - sorry should have said it LGTM earlier.

@jwiggins
Copy link
Member Author

jwiggins commented Dec 8, 2016

Better late than never! 😄

@jwiggins jwiggins merged commit 3555620 into master Dec 8, 2016
@jwiggins jwiggins deleted the fix/setup-versioning branch December 8, 2016 21:17
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.

3 participants