summaryrefslogtreecommitdiff
path: root/setuptools
Commit message (Collapse)AuthorAgeFilesLines
* Add upload support to setuptools, and make default downloads of setuptoolsPJ Eby2005-07-074-13/+225
| | | | | | | | | come from PyPI/python.org rather than from telecommunity.com. Bump to version 0.5a7. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041090
* Bump release versionPJ Eby2005-07-071-1/+1
| | | | | | --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041089
* Beefed up the "sdist" command so that if you don't have a MANIFEST.in, itPJ Eby2005-07-073-3/+85
| | | | | | | | | | | | will include all files under revision control (CVS or Subversion) in the current directory, and it will regenerate the list every time you create a source distribution, not just when you tell it to. This should make the default "do what you mean" more often than the distutils' default behavior did, while still retaining the old behavior in the presence of MANIFEST.in. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041087
* Slightly changed the format of the generated version when you usePJ Eby2005-07-071-1/+1
| | | | | | | | | | ``--tag-build`` on the "egg_info" command, so that you can make tagged revisions compare *lower* than the version specified in setup.py (e.g. by using ``--tag-build=dev``). --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041086
* Don't modify .pth files when in --dry-run/-n mode.PJ Eby2005-07-071-60/+19
| | | | | | --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041085
* Bump version to 0.5a5.PJ Eby2005-07-061-1/+1
| | | | | | --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041081
* Added ``develop`` command to ``setuptools``-based packages. This commandPJ Eby2005-07-064-47/+252
| | | | | | | | | | | | installs an ``.egg-link`` pointing to the package's source directory, and script wrappers that ``execfile()`` the source versions of the package's scripts. This lets you put your development checkout(s) on sys.path without having to actually install them. (To uninstall the link, use use ``setup.py develop --uninstall``.) --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041080
* Made ``easy_install`` a standard ``setuptools`` command, moving it fromPJ Eby2005-07-062-1/+821
| | | | | | | | | | | the ``easy_install`` module to ``setuptools.command.easy_install``. Note that if you were importing or extending it, you must now change your imports accordingly. ``easy_install.py`` is still installed as a script, but not as a module. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041079
* Enhanced the ``test`` command so that it doesn't install the package, butPJ Eby2005-07-062-27/+27
| | | | | | | | | | | | | 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.) --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041078
* Added ``egg_info`` command to ``setuptools``-based packages. This commandPJ Eby2005-07-062-98/+221
| | | | | | | | | | just creates or updates the "projectname.egg-info" directory, without building an egg. It's used by the ``bdist_egg`` command now, and will be used by the ``test`` and ``develop`` commands later on. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041077
* Fix a problem using bdist_egg with non-setuptools distributions.PJ Eby2005-07-042-6/+6
| | | | | | --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041076
* EasyInstall/setuptools 0.5a4: significant new features, including automaticPJ Eby2005-06-274-116/+198
| | | | | | | | | installation of dependencies, the ability to specify dependencies in a setup script, and several new options to control EasyInstall's behavior. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041073
* 0.5a3 bugfix releasePJ Eby2005-06-253-8/+8
| | | | | | --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041072
* Fix stupid typos.PJ Eby2005-06-151-2/+2
| | | | | | --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041071
* Add support for installing from .win32.exe's created by distutils (byPJ Eby2005-06-152-18/+59
| | | | | | | | converting them to eggs). Bump version to 0.5a1. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041070
* Add bootstrap installation support that "hitches a ride" on other packagesPJ Eby2005-06-152-19/+19
| | | | | | | | | | being installed via the normal distutils "setup.py install". Also, don't repeatedly download the setuptools egg if it's already in the target location. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041069
* Make write_stub() a function, so easy_install can use it too.PJ Eby2005-06-151-15/+56
| | | | | | --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041067
* Enhance unpack_* utilities to allow on-the-fly redirection of where filesPJ Eby2005-06-151-16/+16
| | | | | | | | are extracted to. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041066
* Bump version # for release.PJ Eby2005-06-141-1/+1
| | | | | | --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041065
* Add support for quiet/verbose/dry-run/optimize flags.PJ Eby2005-06-142-12/+12
| | | | | | --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041064
* Support downloading packages that were uploaded to PyPI (by scanning allPJ Eby2005-06-141-4/+4
| | | | | | | | links on package pages, not just the homepage/download links). --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041062
* Update to version 0.4a3PJ Eby2005-06-141-1/+1
| | | | | | --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041059
* Add lots of progress messages, so people know what the package search isPJ Eby2005-06-141-37/+78
| | | | | | | | doing. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041056
* Add 'ez_setup' bootstrap installer. Prep for 0.4a2 release.PJ Eby2005-06-122-17/+17
| | | | | | --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041054
* Restructure easy_install as a distutils "Command" object, so that it canPJ Eby2005-06-123-10/+122
| | | | | | | | | | access the distutils configuration and logging infrastructure, and can "inherit" options from a distutils setup script that wants to use it to install its own dependencies. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041052
* Move package index/downloading stuff to setuptools.package_index module.PJ Eby2005-06-121-0/+369
| | | | | | --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041051
* Rebalance responsibilities between PackageIndex, Installer, and main() soPJ Eby2005-06-121-1/+1
| | | | | | | | | | | | that PackageIndex handles all downloading of any kind, Installers can be reused for multiple packages, and main() manages temporary directories and all communication between PackageIndex and Installer. Also, change run_setup to take an argument sequence, because later we will probably need other arguments to control other aspects of run_setup's behavior. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041050
* Split setup-running and archive-extraction utilities into separate modules,PJ Eby2005-06-122-0/+369
| | | | | | | | for easy use by tools other than EasyInstall. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041049
* Package scripts under EGG-INFO/scripts. Refactor subcommand invocationsPJ Eby2005-06-071-35/+35
| | | | | | | | for less duplication and greater clarity. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041044
* Implement PyPI screenscraping for EasyInstall. Fix a bug in requirementPJ Eby2005-06-051-6/+13
| | | | | | | | version checking. Document new options for screen scraping. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041041
* Add "safe_name" and "safe_version" functions to allow sanitizing ofPJ Eby2005-06-052-19/+19
| | | | | | | | | distribution names and versions in arbitrary packages that might be built using EasyInstall. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041040
* Make ``AvailableDistributions`` keep track of the desired platform/python.PJ Eby2005-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. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041038
* Ensure that the distribution name written to PKG-INFO is the same as thePJ Eby2005-05-301-2/+2
| | | | | | | | name you'll use in 'require()' operations for that distribution. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041030
* Reorganize bdist_egg's handling of 'install_data' to better deal with thePJ Eby2005-05-301-10/+51
| | | | | | | | | | | | | | | | | | | | various kludges legacy packages are using to install data in their package directories. Some use absolute paths in 'distribution.data_files', while others create various subclasses of 'install_data', each with their own way of finding out what directory to use! So 'bdist_egg' now does all its 'install_lib' activity before 'install_data', and pokes the desired build directory into a wide variety of places, so that all of the known kludges so far will work correctly. It also checks for absolute paths in 'data_files' (carefully working around other packages' 'data_files' kludges!) and converts them back to relative ones, if they are subpaths of site-packages. Clearly, we need to get the word out about 'package_files' in Python 2.4 and above, and suggest using 'setuptools' for Python 2.3. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041028
* Added options to alter eggs' version number by tagging with the subversionPJ Eby2005-05-291-48/+48
| | | | | | | | | revision number, date, and/or a custom tag. This should make it easier for people to produce e.g. automated nightly builds of eggs. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041024
* Handle distributions with ' ' in their namesPJ Eby2005-05-291-1/+1
| | | | | | --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041020
* Add experimental 'install_data' support to 'bdist_egg'. The most commonPJ Eby2005-05-281-26/+26
| | | | | | | | | | | distutils custom command hack in the field is to make 'install_data' put data in with the target packages by changing the --install-data to match --install-lib, so this should let bdist_egg work with more packages "out of the box". --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041016
* Add tests for AvailableDistributions().resolve(). This effectivelyPJ Eby2005-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. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041009
* Added support for specifying options on requirements, so that a package'sPJ Eby2005-05-221-3/+44
| | | | | | | | | optional dependencies can be included when processing nested dependencies. Next up: tests for the resolve() algorithm. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041008
* Distribution metadata parsing: distribution objects can now extract theirPJ Eby2005-05-221-67/+108
| | | | | | | | | version from PKG-INFO and their dependencies from depends.txt, including optional dependencies. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041007
* Refine dependency resolution algorithm so it won't take exponential time,PJ Eby2005-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. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041006
* Add basic "Requirement" class that can tell whether a distribution orPJ Eby2005-05-211-3/+44
| | | | | | | | version meets its version requirements. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041005
* Added "AvailableDistributions" class that finds and indexes usablePJ Eby2005-04-032-10/+51
| | | | | | | | | | | | | 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. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041004
* Fix handling of -/_ so that they are canonicalized to '-' when doing namePJ Eby2005-04-031-2/+2
| | | | | | | | or version comparisons, but rendered as '_' in egg filenames. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041002
* Add a "Distribution" object that wraps a sys.path entry with metadata, andPJ Eby2005-04-031-5/+78
| | | | | | | | | | | can extract its name/version/pythonversion/platform if built from a .egg filename. Later, distributions will be able to add themselves to sys.path and request that their dependencies be added as well. Also, added some real-life version test cases supplied by jemfinch. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041001
* Add a simple version parser that combines the pre-release smarts ofPJ Eby2005-04-021-0/+58
| | | | | | | | | | distutils' StrictVersion, with the flexibility of LooseVersion. It also deals heuristically with common concepts like alpha/beta/candidate/rc and pre/preview, as well as '-' and 'pl' branching schemes. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041000
* Rough draft of version requirement parser. Make bdist_egg look for aPJ Eby2005-04-023-44/+118
| | | | | | | | | | | | distname.egg-info directory instead of EGG-INFO.in; this will be used later to support development of egg-distributed packages that an application under development expects to 'require()'. (Thanks to Fred Drake for pointing out this use case, and Bob Ippolito for helping me figure out how to support it, although the runtime support doesn't actually exist yet.) --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4040999
* Back out the addition of bogus 'if __name__=="__main__"' block; the OnePJ Eby2005-04-011-79/+174
| | | | | | | | | Obvious Way to test setuptools is to run 'setup.py test', because that also provides an integration test for the 'test' command. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4040998
* Fix bootstrap loader so extracted files don't have to be on sys.path.PJ Eby2005-03-221-2/+2
| | | | | | --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4040993
* Create stub loaders for C extensions, so that the actual dynamic libraryPJ Eby2005-03-221-5/+49
| | | | | | | | can be extracted from the egg. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4040992