summaryrefslogtreecommitdiff
path: root/setuptools/tests
Commit message (Collapse)AuthorAgeFilesLines
* Snapshot pre-merger changes, mostly SSL support and a few bugfixesphillip.eby2013-05-152-4/+95
| | | | git-svn-id: http://svn.python.org/projects/sandbox/trunk/setuptools@88994 6015fed2-1504-0410-9fe1-9d1591cc4771
* Major updates and fixes include:phillip.eby2009-10-121-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Fix for the Python 2.6.3 build_ext API change * Support for the most recent Sourceforge download link insanity * Support for SVN 1.6 * Stop crashing on certain types of HTTP error * Stop re-trying URLs that already failed retrieval once * Fixes for various dependency management problems such as looping builds, re-downloading packages already present on sys.path (but not in a registered "site" directory), and randomly preferring local -f packages over local installed packages * Prevent lots of spurious "already imported from another path" warnings (e.g. when pkg_resources is imported late) * Ensure C libraries (as opposed to extensions) are also built when doing bdist_egg * Fixed running the "test" command under Python 2.6+ Other changes: * Misc. documentation fixes * Improved Jython support * Fewer warnings under Python 2.6+ * Warn when 'packages' uses paths instead of package names (because it causes other problems, like spurious "already imported" warnings) * Stop using /usr/bin/sw_vers on Mac OS (replaced w/'platform' module calls) Note: This is NOT a merge from Distribute; upon review, many of the tracker-submitted patches used as a basis for forking were incorrect, incomplete, introduced new bugs, or were not addressing the root causes. (E.g., one of the changes in this patch fixes three superficially unrelated issues in the setuptools bug tracker.) Careful review will be required if you want to merge this work back into Distribute. git-svn-id: http://svn.python.org/projects/sandbox/trunk/setuptools@75384 6015fed2-1504-0410-9fe1-9d1591cc4771
* Fix for http://bugs.python.org/setuptools/issue27 (Jython shebangphillip.eby2008-09-241-7/+47
| | | | | | | lines) git-svn-id: http://svn.python.org/projects/sandbox/trunk/setuptools@66596 6015fed2-1504-0410-9fe1-9d1591cc4771
* Fix for http://bugs.python.org/setuptools/issue31phillip.eby2008-08-211-9/+10
| | | | git-svn-id: http://svn.python.org/projects/sandbox/trunk/setuptools@65947 6015fed2-1504-0410-9fe1-9d1591cc4771
* Fix for http://bugs.python.org/setuptools/issue7phillip.eby2008-08-211-0/+8
| | | | git-svn-id: http://svn.python.org/projects/sandbox/trunk/setuptools@65942 6015fed2-1504-0410-9fe1-9d1591cc4771
* chmod/test cleanups and Jython support.phillip.eby2008-01-182-14/+12
| | | | git-svn-id: http://svn.python.org/projects/sandbox/trunk/setuptools@60061 6015fed2-1504-0410-9fe1-9d1591cc4771
* Fix gui.exe launcher issue reported by Alexander Michael and Robin Dunn.phillip.eby2008-01-031-3/+36
| | | | git-svn-id: http://svn.python.org/projects/sandbox/trunk/setuptools@59683 6015fed2-1504-0410-9fe1-9d1591cc4771
* Setting svn:eol properties everywhere where they weren't set yet.guido.van.rossum2007-04-251-104/+104
| | | | git-svn-id: http://svn.python.org/projects/sandbox/trunk/setuptools@54966 6015fed2-1504-0410-9fe1-9d1591cc4771
* Changed setuptools.package_index.PackageIndex.open_url to include thejim.fulton2007-03-091-0/+19
| | | | | | | url in the exception. git-svn-id: http://svn.python.org/projects/sandbox/trunk/setuptools@54242 6015fed2-1504-0410-9fe1-9d1591cc4771
* Get rid of 'sets' module usage under Python 2.4+, so that no warnings phillip.eby2007-02-231-3/+5
| | | | | | | are issued by Python 2.6. git-svn-id: http://svn.python.org/projects/sandbox/trunk/setuptools@53870 6015fed2-1504-0410-9fe1-9d1591cc4771
* Fix #! parsing problems w/whitespace in quoted strings or at the endphillip.eby2007-01-241-5/+6
| | | | | | | of the #! line. git-svn-id: http://svn.python.org/projects/sandbox/trunk/setuptools@53547 6015fed2-1504-0410-9fe1-9d1591cc4771
* Fix "dev" versions being considered newer than release candidates. :(phillip.eby2006-09-251-0/+10
| | | | git-svn-id: http://svn.python.org/projects/sandbox/trunk/setuptools@52001 6015fed2-1504-0410-9fe1-9d1591cc4771
* Added quoting of script arguments and extended the quoting logic tojim.fulton2006-08-222-5/+112
| | | | | | | | | | | | handle embedded quotes. Added support for passing a single argument on the shebang line to pass things like -O and -i. Fixed bug in handling trailing whitespace in Python command. git-svn-id: http://svn.python.org/projects/sandbox/trunk/setuptools@51485 6015fed2-1504-0410-9fe1-9d1591cc4771
* Fix entry point parsing when a standalone module name has whitespace phillip.eby2006-04-271-4/+4
| | | | | | | between it and the extras. git-svn-id: http://svn.python.org/projects/sandbox/trunk/setuptools@45764 6015fed2-1504-0410-9fe1-9d1591cc4771
* Backport whitespace normalization from 2.5 trunk.phillip.eby2006-04-192-16/+2
| | | | git-svn-id: http://svn.python.org/projects/sandbox/trunk/setuptools@45554 6015fed2-1504-0410-9fe1-9d1591cc4771
* Changes to the experimental 'Feature' feature to be compatible with phillip.eby2006-04-181-3/+3
| | | | | | | Python 2.5 distutils, so the tests don't bomb under 2.5 git-svn-id: http://svn.python.org/projects/sandbox/trunk/setuptools@45519 6015fed2-1504-0410-9fe1-9d1591cc4771
* Make errors __repr__ the same as the default exception repr in Python phillip.eby2006-04-181-2/+2
| | | | | | | 2.5, so doctests will work right. :( git-svn-id: http://svn.python.org/projects/sandbox/trunk/setuptools@45517 6015fed2-1504-0410-9fe1-9d1591cc4771
* Move api_tests.txt file to tests subpackage for easier integration phillip.eby2006-04-182-1/+331
| | | | | | | w/stdlib test suites. git-svn-id: http://svn.python.org/projects/sandbox/trunk/setuptools@45515 6015fed2-1504-0410-9fe1-9d1591cc4771
* Backport pkgutil, pydoc, and doctest from the 2.5 trunk to setuptools phillip.eby2006-04-181-2677/+0
| | | | | | | | | | | | | 0.7 trunk. (Sideport?) Setuptools 0.7 will install these in place of the 2.3/2.4 versions (at least of pydoc and doctest) to let them work properly with eggs. pkg_resources now depends on the 2.5 pkgutil, which is included here as _pkgutil, to work around the fact that some system packagers will install setuptools without overriding the stdlib modules. But users who install their own setuptools will get them, and the system packaged people probably don't need them. git-svn-id: http://svn.python.org/projects/sandbox/trunk/setuptools@45514 6015fed2-1504-0410-9fe1-9d1591cc4771
* Enhanced test loader to scan packages as well as modules, and callphillip.eby2006-03-281-47/+6
| | | | | | | ``additional_tests()`` if present to get non-unittest tests. git-svn-id: http://svn.python.org/projects/sandbox/trunk/setuptools@43412 6015fed2-1504-0410-9fe1-9d1591cc4771
* ``safe_name()`` now allows dots in project names, and there is a newphillip.eby2006-01-101-1/+1
| | | | | | | | | | | | | | ``to_filename()`` function that escapes project names and versions for safe use in constructing egg filenames from a Distribution object's metadata. Note that allowing dots may now cause problems for projects with '.' in the name that were previously installed, since such projects had to be spelled with a '-' before. The '-' name will no longer match the '.' project, and there is no real room for backward compatibility here. :( git-svn-id: http://svn.python.org/projects/sandbox/trunk/setuptools@41994 6015fed2-1504-0410-9fe1-9d1591cc4771
* Make it clearer that Requirement.parse() is the only way for users phillip.eby2006-01-031-11/+11
| | | | | | | to create correct Requirement instances. git-svn-id: http://svn.python.org/projects/sandbox/trunk/setuptools@41909 6015fed2-1504-0410-9fe1-9d1591cc4771
* Changed ``parse_version()`` to remove dashes before pre-release tags, sophillip.eby2005-12-061-3/+3
| | | | | | | | | | | that ``0.2-rc1`` is considered an *older* version than ``0.2``, and is equal to ``0.2rc1``. The idea that a dash *always* meant a post-release version was highly non-intuitive to setuptools users and Python developers, who seem to want to use ``-rc`` version numbers a lot. git-svn-id: http://svn.python.org/projects/sandbox/trunk/setuptools@41630 6015fed2-1504-0410-9fe1-9d1591cc4771
* Added support for ``.egg-info`` files or directories with version/platformphillip.eby2005-12-061-2/+2
| | | | | | | | | | | information embedded in the filename, so that system packagers have the option of including ``PKG-INFO`` files to indicate the presence of a system-installed egg, without needing to use ``.egg`` directories, zipfiles, or ``.pth`` manipulation. git-svn-id: http://svn.python.org/projects/sandbox/trunk/setuptools@41615 6015fed2-1504-0410-9fe1-9d1591cc4771
* Fixed a problem with ``WorkingSet.resolve()`` that prevented versionphillip.eby2005-11-031-4/+4
| | | | | | | conflicts from being detected at runtime. (As reported by Ian Bicking.) git-svn-id: http://svn.python.org/projects/sandbox/trunk/setuptools@41380 6015fed2-1504-0410-9fe1-9d1591cc4771
* 0.6a7 bugfix releasephillip.eby2005-11-021-1/+1
| | | | git-svn-id: http://svn.python.org/projects/sandbox/trunk/setuptools@41377 6015fed2-1504-0410-9fe1-9d1591cc4771
* Bugfixes. :(pje2005-09-291-1/+1
| | | | git-svn-id: http://svn.python.org/projects/sandbox/trunk/setuptools@41258 6015fed2-1504-0410-9fe1-9d1591cc4771
* Ensure that WorkingSet.resolve() (and therefore require() as well)pje2005-09-261-6/+6
| | | | | | | | | returns a list of the relevant distributions, even if they are found in the working set rather than the environment. This fixes some problems in the 0.6a3 release. git-svn-id: http://svn.python.org/projects/sandbox/trunk/setuptools@41256 6015fed2-1504-0410-9fe1-9d1591cc4771
* Fix a problem with inconsistent quoting of "extras", reported by Ianpje2005-09-241-1/+1
| | | | | | | Bicking on the distutils-sig. git-svn-id: http://svn.python.org/projects/sandbox/trunk/setuptools@41253 6015fed2-1504-0410-9fe1-9d1591cc4771
* Document the "Environment" class, and simplify its API.pje2005-08-141-6/+6
| | | | git-svn-id: http://svn.python.org/projects/sandbox/trunk/setuptools@41194 6015fed2-1504-0410-9fe1-9d1591cc4771
* Added docs for main EntryPoint APIs, and cleaned up the API itself a bit.pje2005-08-131-4/+4
| | | | | | | Also fixed a few bugs. git-svn-id: http://svn.python.org/projects/sandbox/trunk/setuptools@41192 6015fed2-1504-0410-9fe1-9d1591cc4771
* Renamed AvailableDistributions -> Environment. Add sketch of pkg_resourcespje2005-08-071-2/+2
| | | | | | | manual outline. git-svn-id: http://svn.python.org/projects/sandbox/trunk/setuptools@41184 6015fed2-1504-0410-9fe1-9d1591cc4771
* Got rid of the no-longer meaningful "depends" command. Consolidated thepje2005-08-061-41/+0
| | | | | | | | | | | replacement of the "install" command so that installation is always via easy_install, but doesn't use the previous kludgy intereception technique. Allow ``extra_path`` to be set, but ignore it, so that when easy_install wraps a package that uses it, there won't be any confusion as to the desired installation location. git-svn-id: http://svn.python.org/projects/sandbox/trunk/setuptools@41181 6015fed2-1504-0410-9fe1-9d1591cc4771
* Misc. bug fixes and doc additions. Add 'iter_entry_points()' API.pje2005-07-251-6/+6
| | | | git-svn-id: http://svn.python.org/projects/sandbox/trunk/setuptools@41153 6015fed2-1504-0410-9fe1-9d1591cc4771
* Implement "entry points" for dynamic discovery of drivers and plugins.pje2005-07-241-1/+83
| | | | | | | | | Change setuptools to discover setup commands using an entry point group called "distutils.commands". Thanks to Ian Bicking for the suggestion that led to designing this super-cool feature. git-svn-id: http://svn.python.org/projects/sandbox/trunk/setuptools@41152 6015fed2-1504-0410-9fe1-9d1591cc4771
* Fix eager resource extraction. Add eager_resources setup() argument. Addpje2005-07-241-2/+2
| | | | | | | | support for obtaining project-level resources by making get_provider() accept Requirement objects. git-svn-id: http://svn.python.org/projects/sandbox/trunk/setuptools@41151 6015fed2-1504-0410-9fe1-9d1591cc4771
* Catch a few missed terminology changes.pje2005-07-181-11/+11
| | | | git-svn-id: http://svn.python.org/projects/sandbox/trunk/setuptools@41137 6015fed2-1504-0410-9fe1-9d1591cc4771
* Massive API refactoring; see setuptools.txt changelog for details. Also,pje2005-07-183-37/+2707
| | | | | | | | add ``#egg=project-version`` link support, and docs on how to make your package available for EasyInstall to find. git-svn-id: http://svn.python.org/projects/sandbox/trunk/setuptools@41135 6015fed2-1504-0410-9fe1-9d1591cc4771
* ``Distribution`` objects now implement the ``IResourceProvider`` andpje2005-07-171-1/+1
| | | | | | | | ``IMetadataProvider`` interfaces, so you don't need to reference the (no longer available) ``metadata`` attribute to get at these interfaces. git-svn-id: http://svn.python.org/projects/sandbox/trunk/setuptools@41133 6015fed2-1504-0410-9fe1-9d1591cc4771
* Renamings for consistent terminology; distributions and requirements nowpje2005-07-171-5/+5
| | | | | | | | | | | | both have 'project_name' attributes, instead of one having 'name' and the other 'distname'. Requirements no longer have 'options', they have 'extras'. This is the beginning of the terminology/architecture refactoring described at: http://mail.python.org/pipermail/distutils-sig/2005-June/004652.html git-svn-id: http://svn.python.org/projects/sandbox/trunk/setuptools@41132 6015fed2-1504-0410-9fe1-9d1591cc4771
* Enhanced the ``test`` command so that it doesn't install the package, butpje2005-07-061-5/+5
| | | | | | | | | | | | instead builds any C extensions in-place, updates the ``.egg-info`` metadata, adds the source directory to ``sys.path``, and runs the tests directly on the source. This avoids an "unmanaged" installation of the package to ``site-packages`` or elsewhere. (Also, fix a breaking test of older dependency support; this should probably be removed altogether, as long as nobody's using it.) git-svn-id: http://svn.python.org/projects/sandbox/trunk/setuptools@41078 6015fed2-1504-0410-9fe1-9d1591cc4771
* Implement PyPI screenscraping for EasyInstall. Fix a bug in requirementpje2005-06-051-6/+13
| | | | | | | version checking. Document new options for screen scraping. git-svn-id: http://svn.python.org/projects/sandbox/trunk/setuptools@41041 6015fed2-1504-0410-9fe1-9d1591cc4771
* Add "safe_name" and "safe_version" functions to allow sanitizing ofpje2005-06-051-15/+15
| | | | | | | | distribution names and versions in arbitrary packages that might be built using EasyInstall. git-svn-id: http://svn.python.org/projects/sandbox/trunk/setuptools@41040 6015fed2-1504-0410-9fe1-9d1591cc4771
* Make ``AvailableDistributions`` keep track of the desired platform/python.pje2005-06-051-1/+1
| | | | | | | | | Add a ``can_add()`` method that indicates whether a distribution matches the collection's desired platform and Python version. Fix a bug in ``Distribution.from_filename()`` when the filename has no Python version. git-svn-id: http://svn.python.org/projects/sandbox/trunk/setuptools@41038 6015fed2-1504-0410-9fe1-9d1591cc4771
* Add tests for AvailableDistributions().resolve(). This effectivelypje2005-05-231-0/+41
| | | | | | | | | | | completes the core dependency resolution engine; all we need now is a way to turn sys.path entries into "distribution sources" that can list Distribution objects for inclusion in an instance of AvailableDistributions, and the 'require("SomePkg>=2.7")' API will be usable. git-svn-id: http://svn.python.org/projects/sandbox/trunk/setuptools@41009 6015fed2-1504-0410-9fe1-9d1591cc4771
* Added support for specifying options on requirements, so that a package'spje2005-05-221-3/+44
| | | | | | | | optional dependencies can be included when processing nested dependencies. Next up: tests for the resolve() algorithm. git-svn-id: http://svn.python.org/projects/sandbox/trunk/setuptools@41008 6015fed2-1504-0410-9fe1-9d1591cc4771
* Distribution metadata parsing: distribution objects can now extract theirpje2005-05-221-67/+108
| | | | | | | | version from PKG-INFO and their dependencies from depends.txt, including optional dependencies. git-svn-id: http://svn.python.org/projects/sandbox/trunk/setuptools@41007 6015fed2-1504-0410-9fe1-9d1591cc4771
* Refine dependency resolution algorithm so it won't take exponential time,pje2005-05-221-10/+51
| | | | | | | | | | | or bomb on cyclic dependencies. (But it's still an untested sketch.) Added list of things that need to be implemented before dependency resolution can actually work. Added tests for lower-level parts of the dependency resolution system, and a hook to support subclasses doing automatic download of needed dependencies. git-svn-id: http://svn.python.org/projects/sandbox/trunk/setuptools@41006 6015fed2-1504-0410-9fe1-9d1591cc4771
* Add basic "Requirement" class that can tell whether a distribution orpje2005-05-211-3/+44
| | | | | | | version meets its version requirements. git-svn-id: http://svn.python.org/projects/sandbox/trunk/setuptools@41005 6015fed2-1504-0410-9fe1-9d1591cc4771
* Added "AvailableDistributions" class that finds and indexes usablepje2005-04-031-6/+47
| | | | | | | | | | | | distributions; this replaces the previous "iter_distributions()" API. Added basic platform support to Distribution and AvailableDistributions so that platform-independent distros as well as local platform-compatible distros are acceptable. The actual platform scheme is currently delegated to distutils.util.get_platform(), but needs to be replaced with a better scheme of some kind, especially for OS X. git-svn-id: http://svn.python.org/projects/sandbox/trunk/setuptools@41004 6015fed2-1504-0410-9fe1-9d1591cc4771