Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
| * | Make egg_info command write out setup requirements | Richard Ipsum | 2014-11-03 | 1 | -0/+6 | |
| | | | | | | | | | | | | | | | | | | | | This commit makes the egg_info command write out setup requirements as well as install requirements, setup requirements are written to a setup_requires.txt file. The commit adds a new function write_setup_requirements which uses the existing _write_requirements function to write setup requirements out to a file and adds a new entry point to the egg_info.writers group. | |||||
* | | Setuptools now uses the 'packaging' package from pkg_resources, unifying the ↵ | Jason R. Coombs | 2014-12-24 | 1 | -7/+1 | |
| | | | | | | | | behavior around resolution of that package. | |||||
* | | Move vendored packaging module into pkg_resources._vendor, restoring ↵ | Jason R. Coombs | 2014-12-24 | 1 | -2/+2 | |
| | | | | | | | | independence of pkg_resources from setuptools. Fixes #311. | |||||
* | | Force list type for easy concatenation. | Jason R. Coombs | 2014-12-23 | 1 | -1/+1 | |
| | | ||||||
* | | Add comments for clarity. | Jason R. Coombs | 2014-12-23 | 1 | -0/+2 | |
| | | ||||||
* | | Extract logic for getting the extensions for outputs. | Jason R. Coombs | 2014-12-23 | 1 | -4/+7 | |
| | | ||||||
* | | Collapse two generator expressions. | Jason R. Coombs | 2014-12-23 | 1 | -2/+2 | |
| | | ||||||
* | | Use itertools.product to pair each base with each extension. | Jason R. Coombs | 2014-12-23 | 1 | -5/+7 | |
| | | ||||||
* | | Extract method for clarity. | Jason R. Coombs | 2014-12-23 | 1 | -1/+4 | |
| | | ||||||
* | | Rewrite function to use extend and a generator expression. | Jason R. Coombs | 2014-12-23 | 1 | -5/+4 | |
| | | ||||||
* | | Reindent | Jason R. Coombs | 2014-12-23 | 1 | -5/+5 | |
| | | ||||||
* | | Extract filtering of extensions that need stubs. | Jason R. Coombs | 2014-12-23 | 1 | -2/+2 | |
| | | ||||||
* | | Rewrite short-circuit for/if/else loop as any on generator expression. | Jason R. Coombs | 2014-12-23 | 1 | -4/+1 | |
| | | ||||||
* | | Extract variable for simplicity of indentation. | Jason R. Coombs | 2014-12-23 | 1 | -3/+2 | |
| | | ||||||
* | | Extract variables for clarity and simpler indentation. | Jason R. Coombs | 2014-12-23 | 1 | -4/+4 | |
| | | ||||||
* | | Define if_dl using simple lambda. | Jason R. Coombs | 2014-12-23 | 1 | -4/+1 | |
| | | ||||||
* | | Use hasattr per recommendation in docs for dl. | Jason R. Coombs | 2014-12-23 | 1 | -4/+2 | |
| | | ||||||
* | | Silence PEP440Warning by default unless invoking easy_install | Donald Stufft | 2014-12-18 | 1 | -0/+5 | |
| | | ||||||
* | | Move invocation bypass into function itself, pertinent to the docstring. | Jason R. Coombs | 2014-12-13 | 1 | -2/+5 | |
| | | ||||||
* | | Extract variables to capture substeps. | Jason R. Coombs | 2014-12-13 | 1 | -3/+3 | |
| | | ||||||
* | | Remove superfluous list construction. | Jason R. Coombs | 2014-12-13 | 1 | -2/+2 | |
| | | ||||||
* | | Edit docstring for imperative form | Jason R. Coombs | 2014-12-13 | 1 | -5/+6 | |
| | | ||||||
* | | egg_info: Split manifest_maker._add_egg_info into its own method | W. Trevor King | 2014-10-16 | 1 | -3/+20 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On Sat, Oct 11, 2014 at 04:23:37PM -0000, Jason R. Coombs wrote [1]: > I suggest implementing the functionality as a separate method with a > docstring explaining the purpose. so that's what we have here. The docstring is adapted from the cbd4f603 (egg_info: Search egg-base for files to add to the manifest, 2014-10-16) commit message. It's a lot of docs for a single command (although there is a newsted list comprehension), so I'm fine if you drop this commit before merging. The motivation behind the lines would still be available in the version control history: $ hg blame -c setuptools/command/egg_info.py | grep -A1 ei_cmd.egg_base cbd4f6038604: if ei_cmd.egg_base != os.curdir: cbd4f6038604: self.filelist.allfiles.extend([ cbd4f6038604: os.path.join(ei_cmd.egg_base, path) cbd4f6038604: for path in distutils.filelist.findall(ei_cmd.egg_base)]) 80108b046cb6: self.filelist.include_pattern("*", prefix=ei_cmd.egg_info) $ hg log -vr cbd4f6038604 changeset: 3163:cbd4f6038604 ... description: egg_info: Search egg-base for files to add to the manifest Before this commit, this: $ mkdir -p /tmp/xyz/{home,lib,scripts,data,egg} $ cat >/tmp/xyz/home/.pydistutils.cfg <<EOF ... [1]: https://bitbucket.org/pypa/setuptools/pull-request/85/egg_info-search-egg-base-for-files-to-add/diff#comment-3418032 | |||||
* | | egg_info: Search egg-base for files to add to the manifest | "W. Trevor King" | 2014-10-16 | 1 | -0/+5 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Before this commit, this: $ mkdir -p /tmp/xyz/{home,lib,scripts,data,egg} $ cat >/tmp/xyz/home/.pydistutils.cfg <<EOF > [egg_info] > egg-base = /tmp/xyz/egg > EOF $ export PYTHONPATH=/tmp/xyz/lib $ export HOME=/tmp/xyz/home $ setup.py install --home=/tmp/xyz/home --install-lib=/tmp/xyz/lib \ > --install-scripts=/tmp/xyz/scripts --install-data=/tmp/xyz/data drops a lot of metadata, installing only SOURCES.txt and zip-safe under EGG-INFO. The problem is that the metadata files are written to egg-base, but egg-base is not searched when creating the manifest because it's outside of the current directory. Work around this by explicitly searching egg-base with distutils.filelist.findall (which is really the version monkeypatched in by setuptools/__init__.py). Since findall records relative paths, prefix the returned paths with egg-base, so the include_pattern looking for the absolute ei_cmd.egg_info will match them. | |||||
* | | Merge branch 'master' into use-packaging | Donald Stufft | 2014-11-19 | 2 | -3/+3 | |
|\| | | | | | | | | | | | | | | | | | Conflicts: .hgtags CHANGES.txt ez_setup.py setuptools.egg-info/requires.txt setuptools/version.py | |||||
| * | Remove Python 2.5 compatibility for sys.dont_write_bytecode | Jason R. Coombs | 2014-10-25 | 1 | -2/+2 | |
| | | ||||||
| * | Backout 5692cd26a08e; Ref #262.6.0.2b1 | Jason R. Coombs | 2014-09-29 | 1 | -1/+1 | |
| | | ||||||
* | | Prefer packaging library if available. | Jason R. Coombs | 2014-09-27 | 1 | -2/+9 | |
| | | ||||||
* | | Fix indent | Jason R. Coombs | 2014-09-27 | 1 | -2/+1 | |
| | | ||||||
* | | Merge github pull request #13 (dstufft/setuptools:use-packaging). | Jason R. Coombs | 2014-09-27 | 1 | -1/+7 | |
|\ \ | |/ |/| | ||||||
| * | Implement PEP 440 by using the packaging library | Donald Stufft | 2014-09-25 | 1 | -1/+7 | |
| | | ||||||
* | | Use rpartition here, essential to the algorithm. Fixes #259. | Jason R. Coombs | 2014-09-27 | 1 | -1/+1 | |
| | | | | | | | | | | --HG-- extra : amend_source : d7b3c001b4db616a67793dcc57d5c13e3828ad3a | |||||
* | | Fix issue #118: Prevent the egg-info directory from being redundantly ↵ | Jesse Weinstein | 2014-08-28 | 1 | -1/+1 | |
| | | | | | | | | | | | | | | included in the list of modified files. --HG-- extra : rebase_source : 8bad8bf37ef1fdc59b4c1ba21fcff43d25f9b2be | |||||
* | | Merge Pull Request #78 correcting regression in Pull Request #76. | Jason R. Coombs | 2014-09-26 | 1 | -1/+1 | |
|\ \ | ||||||
| * | | [Fix/Typo] Fix missing parenthesis in egg_info.py | Hugues Lerebours | 2014-08-18 | 1 | -1/+1 | |
| | | | | | | | | | | | | Syntax error introduced in be37eff86c761a399c1ec98b0e5eeed9a90c9cd7 | |||||
* | | | Move inline function into an instance method and rename for clarity. | Jason R. Coombs | 2014-09-26 | 1 | -11/+11 | |
| | | | ||||||
* | | | Return the exclusions directly | Jason R. Coombs | 2014-09-26 | 1 | -6/+8 | |
| | | | ||||||
* | | | Incorporate the exclusion path in the _exclude function. | Jason R. Coombs | 2014-09-26 | 1 | -2/+6 | |
| | | | ||||||
* | | | Reorganize imports | Jason R. Coombs | 2014-09-26 | 1 | -2/+3 | |
| | | | ||||||
* | | | Use itertools.product for a cross-product of two iterables | Jason R. Coombs | 2014-09-26 | 1 | -3/+3 | |
| | | | ||||||
* | | | Reindent | Jason R. Coombs | 2014-09-26 | 1 | -2/+2 | |
| | | | ||||||
* | | | Rewrite package traversal as a generator expression | Jason R. Coombs | 2014-09-26 | 1 | -2/+6 | |
| | | | ||||||
* | | | Extract path calculation for paths | Jason R. Coombs | 2014-09-26 | 1 | -3/+2 | |
| | | | ||||||
* | | | Extract method for computing parent packages of a package | Jason R. Coombs | 2014-09-26 | 1 | -4/+13 | |
| | | | ||||||
* | | | Extract method for calculating namespace packages for ↵ | Jason R. Coombs | 2014-09-26 | 1 | -11/+23 | |
| | | | | | | | | | | | | single_version_externally_managed | |||||
* | | | Add docstring for get_exclusions. Just return the set as it is a sized ↵ | Jason R. Coombs | 2014-09-26 | 1 | -1/+5 | |
| | | | | | | | | | | | | container. | |||||
* | | | Construct exclusions as a set | Jason R. Coombs | 2014-09-26 | 1 | -3/+3 | |
| | | | ||||||
* | | | Add comment | Jason R. Coombs | 2014-09-26 | 1 | -0/+2 | |
| | | | ||||||
* | | | Extract calculation of base path | Jason R. Coombs | 2014-09-26 | 1 | -2/+3 | |
| | | | ||||||
* | | | Generate the filenames more directly. | Jason R. Coombs | 2014-09-26 | 1 | -15/+11 | |
| | | |