ionelmc / cookiecutter-pylibrary

Enhanced cookiecutter template for Python libraries.
BSD 2-Clause "Simplified" License
1.25k stars 206 forks source link

Use pip cache on AppVeyor and Travis #38

Closed cmeeren closed 8 years ago

cmeeren commented 9 years ago

Speed up pip install is a really great idea. Caches are supported on both Travis and AppVeyor. It would be great if you could enable caching so it works locally and at Travis and AppVeyor!

(I'm developing an extension that depends on numpy, which takes quite a while to compile each time...)

ionelmc commented 9 years ago

This should be solved by https://github.com/ionelmc/cookiecutter-pylibrary/pull/36, at least for Travis.

Doesn't it work?

cmeeren commented 9 years ago

Probably - I'm still on an old version of cookiecutter-pypackage. However I'd really like to see this for AppVeyor as well, since fully testing my aacgmv2 package with no cache takes several hours due to building numpy.

cmeeren commented 9 years ago

Oh, and if it could work locally as well, that would be swell. Creating/re-creating a test environment with numpy with no cache takes maybe 10 minutes on Windows. D:

ionelmc commented 9 years ago

Try https://pypi.python.org/pypi/cookiepatcher to update project.

cmeeren commented 9 years ago

Thanks! The configuration files are rather heavily changed though, don't know how well it will work in this specific case. Will keep it in mind for the future, though!

cmeeren commented 8 years ago

Are you planning on implementing this on AppVeyor or locally? Building things can take a long time on Windows, so at least on Appveyor it's needed.

ionelmc commented 8 years ago

Yes, on my long TODO list :grimacing:. Wouldn't mind if someone else do it :yum:

cmeeren commented 8 years ago

I see that appveyor.yml already has

cache:
  - '%LOCALAPPDATA%\pip\Cache'

Is this all that's needed? In other words, is AppVeyor caching already implemented? Ref. https://github.com/ionelmc/cookiecutter-pylibrary/pull/36 to see how it was implemented for Travis. Also perhaps see https://github.com/ionelmc/cookiecutter-pylibrary/commit/164476281e06f0c0917ad8a077de620637c239af where these lines were added.

cmeeren commented 8 years ago

Also, from what I can see from the pip changelog, it automatically builds and caches wheels since 7.0.0. If this is true, and it's already implemented on AppVeyor as indicated above, then there's really nothing to do here and this issue can be closed.

ionelmc commented 8 years ago

Let me verify this