summaryrefslogtreecommitdiffstats
path: root/Tools/scripts
Commit message (Collapse)AuthorAgeFilesLines
* bpo-35133: Fix mistakes when concatenate string literals on different lines. ↵Miss Islington (bot)2018-11-051-2/+2
| | | | | | | | | | | | (GH-10284) Two kind of mistakes: 1. Missed space. After concatenating there is no space between words. 2. Missed comma. Causes unintentional concatenating in a list of strings. (cherry picked from commit 34fd4c20198dea6ab2fe8dc6d32d744d9bde868d) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-32256: Make patchcheck.py work for out-of-tree builds (GH-4760)Miss Islington (bot)2018-10-201-3/+9
| | | | | | Set SRCDIR as the current directory for git. (cherry picked from commit aa95bfb5fee366aa58c90b7e1c77fc7e183dbf3a) Co-authored-by: Alexey Izbyshev <izbyshev@ispras.ru>
* pypi.python.org -> pypi.org (GH-7613) (GH-7614)Miss Islington (bot)2018-06-111-1/+1
| | | | | (cherry picked from commit 9d6d06e8065d45f375f4a80e2d7e13b032da1f5b) Co-authored-by: Ned Deily <nad@python.org>
* remove hg support from patchcheck (GH-7440)Miss Islington (bot)2018-06-061-21/+3
| | | | | (cherry picked from commit b8c0845fee9277b1106ceecbf7592f8806c73ec8) Co-authored-by: Benjamin Peterson <benjamin@python.org>
* [3.7] bpo-32885: Tools/scripts/pathfix.py: Add -n option for no backup~ ↵Miss Islington (bot)2018-03-141-8/+20
| | | | | | | | | | | | (GH-5772) (#6103) Creating backup files with ~ suffix can be undesirable in some environment, such as when building RPM packages. Instead of requiring the user to remove those files manually, option -n was added, that simply disables this feature. -n was selected because 2to3 has the same option with this behavior. (cherry picked from commit 5affd5c29eb1493cb31ef3cfdde15538ac134689) Co-authored-by: Miro Hrončok <miro@hroncok.cz>
* bpo-20361: Remove workaround for a now fixed bug (#5283)Victor Stinner2018-01-231-3/+0
| | | | "python3 -bb -Wd" now works as expected: "python3 -bb -Wd -Werror::BytesWarning" is no more needed.
* bpo-32159: Remove tools for CVS and Subversion (#4615)Victor Stinner2017-11-283-326/+0
| | | | | | | | | | CPython migrated from CVS to Subversion, to Mercurial, and then to Git. CVS and Subversion are not more used to develop CPython. * platform module: drop support for sys.subversion. The sys.subversion attribute has been removed in Python 3.3. * Remove Misc/svnmap.txt * Remove Tools/scripts/svneol.py * Remove Tools/scripts/treesync.py
* bpo-32155: Bugfixes found by flake8 F841 warnings (#4608)Victor Stinner2017-11-281-1/+1
| | | | | | | | | | | * distutils.config: Use the PyPIRCCommand.realm attribute if set * turtledemo: wait until macOS osascript command completes to not create a zombie process * Tools/scripts/treesync.py: declare 'default_answer' and 'create_files' as globals to modify them with the command line arguments. Previously, -y, -n, -f and -a options had no effect. flake8 warning: "F841 local variable 'p' is assigned to but never used".
* bpo-31810: Add smelly.py to check exported symbols (#4057)Victor Stinner2017-10-241-0/+78
| | | | | | | * Add Tools/scripts/smelly.py: script checking if all symbols exported by libpython start with "Py" or "_Py". * Modify "make smelly" to run smelly.py: the command now fails with a non-zero exit code if libpython leaks a "smelly" symbol. * Travis CI now runs "make smelly"
* bpo-31536: Avoid wholesale rebuild after `make regen-all` (#3678)Antoine Pitrou2017-09-201-0/+28
| | | | | | * bpo-31536: Avoid wholesale rebuild after `make regen-all` * Add NEWS
* Simplify run_tests.py (#3482)Antoine Pitrou2017-09-101-5/+1
|
* remove IRIX support (closes bpo-31341) (#3310)Benjamin Peterson2017-09-041-4/+4
| | | See PEP 11.
* bpo-31221: patchcheck ignores external libraries (#3109)Victor Stinner2017-08-171-2/+20
| | | | | | | | | | | | | | | | Tools/scripts/patchcheck.py now ignores changes in directories which are copies of external libraries: * Modules/_ctypes/libffi_msvc/ * Modules/_ctypes/libffi_osx/ * Modules/_decimal/libmpdec/ * Modules/expat/ * Modules/zlib/ Drop also support for Mercurial, since CPython migrated to Git. Exclude also libmpdec patchcheck: exclude also libffi_osx and libffi_msvc
* Update `make patchcheck` for blurb and NEWS.d (#2381)Antoine Pitrou2017-06-251-5/+5
|
* Check the whitespace of pull requests on Travis (GH-2367)Brett Cannon2017-06-241-2/+32
|
* bpo-30296 Remove unnecessary tuples, lists, sets, and dicts (#1489)Jon Dufresne2017-05-181-1/+1
| | | | | | | | * Replaced list(<generator expression>) with list comprehension * Replaced dict(<generator expression>) with dict comprehension * Replaced set(<list literal>) with set literal * Replaced builtin func(<list comprehension>) with func(<generator expression>) when supported (e.g. any(), all(), tuple(), min(), & max())
* bpo-30109: Fix reindent.py (GH-1207)Mariatta2017-04-201-1/+5
| | | Skip the file if it has bad encoding.
* Issue #29798: Handle git worktree in patchcheck (#1058)Nick Coghlan2017-04-091-1/+1
| | | | The original attempted fix missed an `isdir()` call in `get_base_branch()`.
* bpo-29798: Handle git worktree in `make patchcheck` (#629)Nick Coghlan2017-03-121-1/+4
| | | | In git worktree directories, `.git` is a configuration file rather than a subdirectory
* bpo-29656: Handle PR branches in 'make patchcheck' (#302)Nick Coghlan2017-03-121-6/+52
|
* Reintroduce Python2 support in generate_opcode_h.pyVictor Stinner2016-11-281-3/+9
| | | | | | Issue #28821. Add also a message to show that the command did something :-)
* Fix a ResourceWarning in generate_opcode_h.pyVictor Stinner2016-11-251-1/+5
| | | | | Use a context manager to close the Python file. Replace also open() with tokenize.open() to handle coding cookie if any in Lib/opcode.py.
* regrtest: add -u for unbuffered stdout/stderrVictor Stinner2016-09-211-0/+1
|
* Issue #26830: Refactor Tools/scripts/google.pyBerker Peksag2016-09-141-15/+17
| | | | Patch by Francisco Couzo.
* Issue #27952: Merge fixcid.py from 3.5Martin Panter2016-09-111-25/+27
|\
| * Issue #27952: Get fixcid.py working with the re moduleMartin Panter2016-09-111-25/+27
| |
* | Remove legacy "from __future__ import with_statement" lines.Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D)2016-09-081-2/+0
| |
* | #27364: fix "incorrect" uses of escape character in the stdlib.R David Murray2016-09-089-25/+25
| | | | | | | | | | | | | | And most of the tools. Patch by Emanual Barry, reviewed by me, Serhiy Storchaka, and Martin Panter.
* | Issue #24225: Fix additional renamed module references.Ned Deily2016-06-041-1/+1
| |
* | Removed unused imports.Serhiy Storchaka2016-04-241-1/+1
| |
* | Issue #26581: Use the first coding cookie on a line, not the last one.Serhiy Storchaka2016-03-201-1/+1
|\ \ | |/
| * Issue #26581: Use the first coding cookie on a line, not the last one.Serhiy Storchaka2016-03-201-1/+1
| |
* | Issue #25985: sys.version_info is now used instead of sys.versionSerhiy Storchaka2016-02-111-2/+2
| | | | | | | | to format short Python version.
* | Issue #5319: New Py_FinalizeEx() API to exit with status 120 on failureMartin Panter2015-11-301-2/+2
| |
* | Merge with 3.5Terry Jan Reedy2015-10-301-2/+0
|\ \ | |/
| * Merge with 3.4Terry Jan Reedy2015-10-301-2/+0
| |\
| | * Issue #25505: Remove unused buggy method.Terry Jan Reedy2015-10-301-2/+0
| | |
* | | Fix a variable typo by switching to a f-string.Brett Cannon2015-10-271-1/+1
| | |
* | | Issue #25154: Make the file argument apply to the print function andBrett Cannon2015-10-261-1/+1
| | | | | | | | | | | | not str.format call.
* | | Issue #25154: Deprecate the pyvenv script.Brett Cannon2015-10-161-0/+6
|/ / | | | | | | | | | | This was done so as to move users to `python3 -m venv` which prevents confusion over which Python interpreter will be used in the virtual environment when more than one is installed.
* | Issue #19235: Add new RecursionError exception. Patch by Georg Brandl.Yury Selivanov2015-07-031-2/+2
| |
* | Issue #24288: Generated opcode.h no longer contains trailing spaces and tabs.Serhiy Storchaka2015-05-271-2/+2
| |
* | Issue #16261: Converted some bare except statements to except statementsSerhiy Storchaka2015-05-201-1/+1
| | | | | | | | with specified exception type. Original patch by Ramchandra Apte.
* | Issue #23330: h2py now supports arbitrary filenames in #include.Serhiy Storchaka2015-05-031-1/+1
|\ \ | |/
| * Issue #23330: h2py now supports arbitrary filenames in #include.Serhiy Storchaka2015-05-031-1/+1
| |
* | Issue #24031: make patchcheck now supports git checkouts, too.Christian Heimes2015-04-231-9/+25
|\ \ | |/
| * Issue #24031: make patchcheck now supports git checkouts, too.Christian Heimes2015-04-231-9/+25
| |
* | Removed trailing whitespaces in miscalenous files.Serhiy Storchaka2015-04-031-3/+3
| |
* | Closes #23437: Make user scripts directory versioned on Windows (patch by ↵Steve Dower2015-02-141-1/+2
| | | | | | | | pmoore)
* | merge 3.4 (#23130)Benjamin Peterson2014-12-301-405/+0
|\ \ | |/