summaryrefslogtreecommitdiff
path: root/setuptools/command
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | remove unneeded code from last commitRandy Syring2014-09-201-2/+1
| | | |
* | | | sdist command: fix case insensitivity when adding some files to filelistRandy Syring2014-09-201-4/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This should fix the problem in Bitbucket issue #100. It gives the same behavior for inclusion of default files (README*, etc.) on Windows as Linux. BACKWARDS INCOMPATABILITY: This may result in a backwards incompatible change for users on a case insensitive file system. If they were relying on some files getting included in their distribution due to setuptools defaults, and their files do not have the same case as the files being looked for in setuptools, those files will no longer be included in the package. For example, if a package had a file: readme.rst Previous to this commit, that file would have been included in the distribution as: README.rst But it will now no longer be included at all. To get the file included in the package, it can be added to the package's MANIFEST.in file: include readme.rst Files affected by this change will have a case variant of the files or patterns listed below: README README.txt README.rst setup.py (or whatever your setuptools script is named) setup.cfg test/test*.py
* | | | Backed out changeset: be37eff86c76Jason R. Coombs2014-08-211-1/+1
| |/ / |/| | | | | | | | Syntax was invalid.
* | | make order of lines in top_level.txt deterministicBenedikt Morbach2014-08-071-1/+1
| |/ |/| | | | | like it was done for requirements and entry_points
* | Remove doctests module. It is now part of Python.Jason R. Coombs2014-07-051-2/+1
| |
* | next compatibility is no longer requiredJason R. Coombs2014-07-051-1/+1
| |
* | Resave with excess whitespace removedJason R. Coombs2014-07-021-1/+1
|/
* Merge pull-request #575.3Jason R. Coombs2014-06-281-5/+5
|\
| * Prune paths file list starting with (RCS|CVS|.svn) as well as path withPhilip Thiem2014-04-231-1/+2
| | | | | | | | such sub directories.
| * Applied Patch from cazabon to handle svn tag revisionsPhilip Thiem2014-04-161-3/+4
| |
* | Always generate the lines, even in dry run.Jason R. Coombs2014-06-221-2/+4
| |
* | Prefer the writelines method.Jason R. Coombs2014-06-221-1/+1
| |
* | Extract method for generating lines for a pkg in nsp. Fixes issue in ↵Jason R. Coombs2014-06-221-23/+26
| | | | | | | | 67bdf3a726962 where only the last dat would be written.
* | Reindent long lineJason R. Coombs2014-06-221-1/+2
| |
* | Use context manager for opening and closing the fileJason R. Coombs2014-06-221-2/+2
| |
* | Use short-circuit for less nestingJason R. Coombs2014-06-221-13/+15
| |
* | Extract the additional trailing lines when a parent package is indicated.Jason R. Coombs2014-06-221-10/+13
| |
* | Extract the lines of the namespace package pth file template for readability.Jason R. Coombs2014-06-221-12/+12
| |
* | Remove trailing newlineJason R. Coombs2014-06-221-1/+0
| |
* | Merge Pull Request 67 from bb://agronholm/bitbucketJason R. Coombs2014-06-221-8/+7
|\ \
| * | Clean up _get_all_ns_packagesMatthew Iversen2014-06-221-5/+4
| | |
| * | Fix pep8 issues for install_egg_infoMatthew Iversen2014-06-221-42/+23
| | |
* | | Fixed PEP 8 compliancy of the setuptools.command packageAlex Gr?nholm2014-06-1822-602/+734
|/ /
* | Merge template loader refactoringJason R. Coombs2014-06-151-14/+16
|\ \
| * | Moved filename resolution into _load_templateJason R. Coombs2014-06-151-7/+8
| | |
| * | Extract embedded function as protected staticmethod.Jason R. Coombs2014-06-151-9/+10
| | |
* | | Merge issue202 changes. Fixes #202.Jason R. Coombs2014-06-152-27/+16
|\ \ \ | |/ /
| * | Rename script template to use .tmpl extensions.Jason R. Coombs2014-06-141-2/+2
| | |
| * | Now that 2to3 is no longer run on the codebase, it's safe for the templates ↵Jason R. Coombs2014-06-141-7/+1
| | | | | | | | | | | | to be syntactically incorrect (prior to substitution).
| * | Normalize whitespaceJason R. Coombs2014-06-141-13/+7
| | |
| * | Reorganize importsJason R. Coombs2014-06-141-5/+6
| | |
* | | remove instead of fix stale zipimport._zip_directory_cache data on PyPyJurko Gospodneti?2014-06-151-25/+42
| | | | | | | | | | | | | | | | | | | | | PyPy's zipimport._zip_directory_cache implementation does not support direct item assignment, thus breaking our attempts at silently updating the cached zip archive directory information behind the scene. As a workaround, when using PyPy, we fall back to simply clearing the stale cached information.
* | | clear cached zip archive directory data when removing it from cacheJurko Gospodneti?2014-06-041-10/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is an extra safety measure to avoid someone holding a reference to this cached data and using its content even after we know that the underlying zip archive has been removed and possibly even replaced. Change suggested by PJ Eby (pje on BitBucket) in a setuptools pull request #51 comment: https://bitbucket.org/pypa/setuptools/pull-request/51/diff#comment-2018183
* | | extract function for updating zipimporter cache dataJurko Gospodneti?2014-06-041-14/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | _update_zipimporter_cache() extracted from _uncache() & _replace_zip_directory_cache_data(). Code cleanup done in preparation for adding a bit more detailed cache item clearing logic, so that would not require adding a separate function with yet more code duplication.
* | | extract duplicate codeJurko Gospodneti?2014-06-041-13/+18
| | | | | | | | | | | | | | | Extracted code for collecting a list of zipimporter cache entries related to a given path into _collect_zipimporter_cache_entries().
* | | update zipimporter cache clearing related code commentsJurko Gospodneti?2014-06-041-25/+31
| | |
* | | fix clearing zipimport._zip_directory_cache on pypyJurko Gospodneti?2014-06-021-1/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | pypy uses a custom zipimport._zip_directory_cache implementation class that does not support the complete dict interface, e.g. it does not support the dict.pop() method. For more detailed information see the following links: https://bitbucket.org/pypa/setuptools/issue/202/more-robust-zipimporter-cache-invalidation#comment-10495960 https://bitbucket.org/pypy/pypy/src/dd07756a34a41f674c0cacfbc8ae1d4cc9ea2ae4/pypy/module/zipimport/interp_zipimport.py#cl-99
* | | remove quick-fix comment for the solution to issue #169.Jurko Gospodneti?2014-05-081-7/+0
| | | | | | | | | | | | | | | | | | | | | Although the original problematic use case when we are replacing a zipped egg distribution with another zipped egg distribution is now cleanly handled by fixing all existing zipimport.zipimporter loaders, this fix is still valid for cases when replacing a distribution with a non-zipped egg folder.
* | | fix issue202 - update existing zipimporters when replacing a zipped eggJurko Gospodneti?2014-05-081-30/+109
|/ / | | | | | | | | | | | | | | | | | | | | When replacing a zipped egg distribution with a different zipped egg, we make all existing zipimport.zipimporter loaders valid again instead of having to go hunting them down one by one. This is done by updating their shared zip directory information cache - zipimport._zip_directory_cache. Related to the following project issues: #169 - http://bitbucket.org/pypa/setuptools/issue/168 #202 - http://bitbucket.org/pypa/setuptools/issue/202
* | Use compat's StringIO. Should fix bitbucket #213Matthew Iversen2014-06-021-3/+2
|/ | | | https://bitbucket.org/pypa/setuptools/issue/213/regression-setuptools-37-installation
* Restore Python 2 compatibility.Jason R. Coombs2014-05-171-1/+1
|
* Use StringIO to write out requirements. Use more common convention of adding ↵Jason R. Coombs2014-05-171-4/+12
| | | | newline to each line of the file, not just intervening lines.
* Write requirements in a deterministic order.Jason R. Coombs2014-05-171-1/+2
|
* Extract variableJason R. Coombs2014-05-171-1/+2
|
* Use PY3 and PY2 throughoutJason R. Coombs2014-05-175-15/+17
|
* with_statement is available naturally in Python 2.6Jason R. Coombs2014-05-171-3/+2
|
* In corporate the old unicode with the spirit of what the FileList updating.Philip Thiem2014-05-171-6/+25
|
* with_statements and output utf-8 outputPhilip Thiem2014-05-171-6/+9
| | | | | | | *Since py2.5 has been dropped, we can use future imports to make use of with statements. *End goal was to always decode to utf-8 in write_file on 307
* Add a _repair method to repair the FileList after unsafe entries have been ↵Jason R. Coombs2014-05-161-0/+12
| | | | added.
* Also override extend to check paths for safety.Jason R. Coombs2014-05-161-0/+3
|