summaryrefslogtreecommitdiffstats
path: root/Tools/scripts
Commit message (Collapse)AuthorAgeFilesLines
* pypi.python.org -> pypi.org (GH-7613)Ned Deily2018-06-111-1/+1
|
* bpo-33738: Fix macros which contradict PEP 384 (GH-7477)Christian Tismer2018-06-091-0/+148
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | During development of the limited API support for PySide, we saw an error in a macro that accessed a type field. This patch fixes the 7 errors in the Python headers. Macros which were not written as capitals were implemented as function. To do the necessary analysis again, a script was included that parses all headers and looks for "->tp_" in serctions which can be reached with active limited API. It is easily possible to call this script as a test. Error listing: ../../Include/objimpl.h:243 #define PyObject_IS_GC(o) (PyType_IS_GC(Py_TYPE(o)) && \ (Py_TYPE(o)->tp_is_gc == NULL || Py_TYPE(o)->tp_is_gc(o))) Action: commented only ../../Include/objimpl.h:362 #define PyType_SUPPORTS_WEAKREFS(t) ((t)->tp_weaklistoffset > 0) Action: commented only ../../Include/objimpl.h:364 #define PyObject_GET_WEAKREFS_LISTPTR(o) \ ((PyObject **) (((char *) (o)) + Py_TYPE(o)->tp_weaklistoffset)) Action: commented only ../../Include/pyerrors.h:143 #define PyExceptionClass_Name(x) \ ((char *)(((PyTypeObject*)(x))->tp_name)) Action: implemented function ../../Include/abstract.h:593 #define PyIter_Check(obj) \ ((obj)->ob_type->tp_iternext != NULL && \ (obj)->ob_type->tp_iternext != &_PyObject_NextNotImplemented) Action: implemented function ../../Include/abstract.h:713 #define PyIndex_Check(obj) \ ((obj)->ob_type->tp_as_number != NULL && \ (obj)->ob_type->tp_as_number->nb_index != NULL) Action: implemented function ../../Include/abstract.h:924 #define PySequence_ITEM(o, i)\ ( Py_TYPE(o)->tp_as_sequence->sq_item(o, i) ) Action: commented only
* remove hg support from patchcheck (GH-7440)Benjamin Peterson2018-06-061-21/+3
|
* bpo-25427: Remove pyvenv (GH-5962)Brett Cannon2018-04-201-17/+0
|
* bpo-32885: Tools/scripts/pathfix.py: Add -n option for no backup~ (#5772)Miro Hrončok2018-03-131-8/+20
| | | | | | | 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.
* bpo-31355: Travis-CI: re-enable macOS job (#5858)Antoine Pitrou2018-02-271-1/+6
| | | | The long build queues that plagued macOS builds on Travis seem to be a thing of the past now.
* 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)