Commit Graph

34 Commits

Author SHA1 Message Date
Ralf Schmitt af62cfbf3e better handling for wheel files
use pip's wheel regex. this should fix #44.
2014-01-20 21:37:52 +01:00
Ralf Schmitt 95f24b0a99 test package name and version guessing with wheel files
see https://github.com/schmir/pypiserver/issues/44
2014-01-19 21:55:14 +01:00
Ralf Schmitt 72a4bfc3ce test guess_pkgname_and_version with one more filename 2013-07-22 21:24:29 +02:00
Nick Pope 402a04e9af More robust guessing of package name and version.
Added support for some other package naming schemes.
2013-07-19 16:00:20 +01:00
Nick Pope c3737bdf07 Fix guessing of package name and version.
The fix in commit 7f97612 for supporting the package naming used by the
pytz module caused a regression if the package name contained a dash
followed by a number. We fix this by splitting on all dashes followed by
numbers and recreating the package name from all components but the
last.
2013-07-19 11:42:36 +01:00
Ralf Schmitt 3154943d3b fix is_stable_version 2013-06-22 22:50:51 +02:00
Ralf Schmitt ab599f98f1 add a test for a package that uses both _ and - 2013-04-02 22:07:08 +02:00
Eliot 7ad9e2afd1 Remove duplicates from "/simple" index page
The main line repo
(c1b9386dff)
currently lists duplicate entries on the "/simple" index page if the
package name contains hyphens and if both a source file and egg file are
uploaded. One index entry contains hyphens in the name which matches the
source file name and the other entry contains underscores in the name
which matches the egg file. Clicking both links lead to pages which list
the same files (both the source file and the egg file).

The previous fix
(c6966afeed)
mostly fixed this problem but it did not account for package names that
included an underscore. Change the "/simple" index to use the name from
a non-egg file, since this name should not have hyphens converted to
underscores as egg files do. If there are only egg files, use the egg
file name.
2013-04-01 16:49:15 -07:00
Ralf Schmitt 2232295412 implement multi-root support
one can now specify multiple package roots. watch out for filename
conflicts!
2013-01-22 23:00:48 +01:00
Ralf Schmitt b2c6410a39 handle package names case insensitive in filter_latest_pkgs
we probably also need to normalize _ vs - someday
2012-12-28 01:53:10 +01:00
Ralf Schmitt 16e3a2cd14 add some test for manage.py 2012-12-28 01:48:18 +01:00
Ralf Schmitt c76390e333 get rid of pkgset class
instead we use an iterator that returns all relevant information. that
simplifies the code quite a bit because we now mostly operate on the
iterators result instead of handling filenames, versions, prefixes...
2012-12-26 01:15:03 +01:00
Ralf Schmitt 7a999fb8cb test that root view returns absolute paths in hrefs
this is github issue 25
2012-12-02 23:07:48 +01:00
Ralf Schmitt e90a7ef822 make tests succeed under python 3 2012-12-02 01:20:52 +01:00
Ralf Schmitt 6989d316c5 use webtest instead of twill
webtest works with python 3.

we now also get rid of paste and pastedeploy and use
bottle.Bottle.mount instead.
2012-12-02 01:17:55 +01:00
Ralf Schmitt 2f2eeee593 use new pytest.fixture functionality 2012-11-26 22:25:30 +01:00
Orne Brocaar 55273d55e3 Add --fallback-url argument to pypi-server script to make it configurable. 2012-08-15 10:02:58 +02:00
Ralf Schmitt 3df36e66a0 instantiate a new app object/module for each pypiserver.app call
adapt test_main to the new situation.
2012-04-07 23:23:29 +02:00
Ralf Schmitt 81571c60a3 use pypiserver.app factory function in test_app 2012-04-07 23:10:49 +02:00
Ralf Schmitt 1b2f37ede5 do not use the default bottle app 2012-04-07 22:57:40 +02:00
Ralf Schmitt c0f82470c6 move bottle app function to _app module
I'd like to run multiple pypiserver wsgi apps inside one process and
plan to do so by reloading pypiserver._app.

this is the first step. we move all of the @route'd functions to _app.
2012-04-07 22:30:54 +02:00
Ralf Schmitt e7cf0e1d7f use paste to test non-root installations 2012-04-03 22:59:01 +02:00
Ralf Schmitt ec01935af6 test guess_pkgname_and_version with 'pep8' 2012-03-26 01:05:11 +02:00
Ralf Schmitt f8818e2d9e add some more tests for guess_pkgname_and_version 2012-03-26 00:59:59 +02:00
Ralf Schmitt dc0303bb1f add some tests for the pytz issue #6
pytz's version is '2012b' which we currently don't recognize as a
version string.
2012-03-26 00:59:59 +02:00
Ralf Schmitt b680e34527 test that directories starting with a dot are ignored 2011-10-07 20:39:52 +02:00
Ralf Schmitt 219497b555 test for 404 when we don't have a package 2011-09-01 01:38:22 +02:00
Ralf Schmitt 16684872d0 cleanup with twill.remove_wsgi_intercept 2011-09-01 01:08:32 +02:00
Ralf Schmitt cd811d131f add more tests for /simple/ 2011-09-01 00:19:14 +02:00
Ralf Schmitt 01a9288108 test that we don't serve files starting with a dot 2011-09-01 00:07:40 +02:00
Ralf Schmitt c24b490cfa test fallback to pypi.python.org 2011-08-31 22:00:09 +02:00
Ralf Schmitt ee3c545932 test that /favicon.ico doesn't redirect and returns a 404 2011-08-31 21:22:52 +02:00
Ralf Schmitt baa2936217 add some tests for the WSGI app 2011-08-30 03:38:59 +02:00
Ralf Schmitt 775f64783d add some tests for core.main function 2011-08-30 02:36:25 +02:00