Commit Graph

77 Commits

Author SHA1 Message Date
Donald Stufft 52ca02608e Use CacheControl instead of custom cache code
* Deprecates the --download-cache option & removes the download
  cache code.
* Removes the in memory page cache on the index
* Uses CacheControl to cache all cacheable HTTP requests to the
  filesystem.
  * Properly handles CacheControl headers for unconditional
    caching.
  * Will use ETag and Last-Modified headers to attempt to do a
    conditional HTTP request to speed up cache misses and turn
    them into cache hits.
  * Removes some concurrency unsafe code in the download cache
    accesses.
  * Uses a Cache-Control request header to limit the maximum
    length of time a cache is valid for.
* Adds pip.appdirs to handle platform specific application
  directories such as cache, config, data, etc.
2014-05-09 18:28:20 -04:00
Donald Stufft a4fec67bba Merge branch 'master' into develop
Conflicts:
	.travis.yml
	CHANGES.txt
	PROJECT.txt
	README.rst
	docs/installing.rst
	pip/__init__.py
	pip/_vendor/vendor.txt
	setup.py
	tox.ini
2014-05-03 02:37:03 -04:00
Donald Stufft 0e72f65bf4 Merge branch '1.5.X'
Conflicts:
	.travis/py34.sh
	CHANGES.txt
	PROJECT.txt
2014-05-03 01:13:28 -04:00
Donald Stufft b67c00e9b8 Update tox.ini 2014-05-02 17:23:49 -04:00
Donald Stufft 8d9041446f Refactor the Travis running into a shell command 2014-04-26 00:56:42 -04:00
Donald Stufft 79bda14bed pytest-xdist and Python 3.2 do not get along 2014-04-26 00:32:27 -04:00
Donald Stufft ea8d16d7f4 Use a tarball because it's faster than cloning a repository 2014-04-26 00:19:48 -04:00
Donald Stufft 4c028186ac Parallelize running tests with pytest-xdist
We've had a number of problems with pytest-xdist, primarily on
Python 3.x where we had intermittent failure. However we're also
getting intermittent failures on Travis due to how long the tests
actually take to run. Given two different intermittent failures
it seems that the one that runs faster should be preferred.
2014-04-26 00:06:18 -04:00
Marcus Smith f2a9d7403e have setup.py long_description just be README.rst 2014-03-01 11:12:03 -08:00
Donald Stufft 95035fc5c4 Turn on everything in flake8
flake8 ignores some errors by default, these ignored by defaults
change sometimes. This will make things stabler by selecting
everything.
2014-02-24 16:52:23 -05:00
Donald Stufft 7a0bdd8a51 Run flake8 on the entire repository 2014-01-28 19:48:04 -05:00
Donald Stufft d76330e0d8 Ignore the test data's flake8 results 2014-01-28 19:48:04 -05:00
Donald Stufft b72f44b20c Run flake8 as part of the test suite 2014-01-27 14:40:32 -05:00
Donald Stufft 51346470ed Setup ignores for flake8 2014-01-27 09:08:33 -05:00
Donald Stufft e7c2ca220d Fix the branch for virtualenv testing 2014-01-02 09:04:37 -05:00
Donald Stufft 953e08288f Test against virtualenv 1.11.X 2013-11-22 09:07:04 -05:00
Donald Stufft ae15dfcc7a Remove concurrent test runs because they are failing randomly 2013-11-04 15:28:30 -05:00
Donald Stufft 6c36e77e16 Work around Python 3.2 import issues 2013-09-05 10:39:28 -04:00
Donald Stufft eae5ffc11a Test that the documentation builds successfully 2013-08-28 06:49:28 -04:00
Donald Stufft 8df86cac0b Test the collection of tests
This is to workaround pytest issues #149 / #180 where distributed
testing doesn't error out if it fails to collect tests.
2013-08-28 06:24:25 -04:00
Donald Stufft 07597dd412 Setup tox so that it matches current state of the art for testing
* Uses parallel testing where it's able to
* Sets PYTHONHASHSEED=0 Where it's required
2013-08-28 04:28:40 -04:00
Donald Stufft ff6cef6c0d Require the newest version of scripttest 2013-08-21 22:40:17 -04:00
Donald Stufft da0bc4b1d1 Switch to using py.test as the test runner instead of nose
* Better output with the bare asserts we use throughout the tests
* Function fixtures are pretty nice, especially as a way to
  start a background server or create an isolated virtualenv
2013-08-21 10:19:58 -04:00
Marcus Smith 156c909b95 can't use easy_install to install virtualenv test req from git 2013-07-01 21:14:10 -07:00
Marcus Smith bc3e3d9ac9 add back in old tox.ini 2013-05-29 13:41:13 -07:00
Marcus Smith 2e2ce0f4e9 break up tests dir into data, unit tests, and functional tests 2013-05-29 13:41:12 -07:00
Chris McDonough d95f2e1b45 add a tox.ini 2012-09-08 10:18:25 -04:00