Commit Graph

2791 Commits

Author SHA1 Message Date
Miss Islington (bot) 08c03cca59
remove hg support from patchcheck (GH-7440)
(cherry picked from commit b8c0845fee)

Co-authored-by: Benjamin Peterson <benjamin@python.org>
2018-06-05 23:00:20 -07:00
Steve Dower 0d8f83f59c
bpo-33522: Enable CI builds on Visual Studio Team Services (GH-6865) (GH-6925) 2018-05-17 09:46:00 -04:00
Miss Islington (bot) 6f870935c2
bpo-33189: pygettext.py now accepts only literal strings (GH-6364)
as docstrings and translatable strings, and rejects
bytes literals and f-string expressions.
(cherry picked from commit 69524821a8)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2018-04-19 00:34:20 -07:00
Miss Islington (bot) e0dbc57e11
bpo-31920: Fixed handling directories as arguments in the ``pygettext`` script. (GH-6259)
Based on patch by Oleg Krasnikov.
(cherry picked from commit c93938b5be)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2018-04-09 11:06:09 -07:00
Christian Heimes f5befbb0d1
[3.6] bpo-33127: Compatibility patch for LibreSSL 2.7.0 (GH-6210) (GH-6214)
LibreSSL 2.7 introduced OpenSSL 1.1.0 API. The ssl module now detects
LibreSSL 2.7 and only provides API shims for OpenSSL < 1.1.0 and
LibreSSL < 2.7.

Documentation updates and fixes for failing tests will be provided in
another patch set.

Signed-off-by: Christian Heimes <christian@python.org>.
(cherry picked from commit 4ca0739c9d)

Co-authored-by: Christian Heimes <christian@python.org>
2018-03-24 18:38:14 +01:00
Miss Islington (bot) a954919788 [3.6] bpo-32885: Tools/scripts/pathfix.py: Add -n option for no backup~ (GH-5772) (#6104)
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 5affd5c29e)

Co-authored-by: Miro Hrončok <miro@hroncok.cz>
2018-03-14 18:52:22 +01:00
Miss Islington (bot) ec5569b08e
bpo-32222: Fix pygettext skipping docstrings for funcs with arg typehints (GH-4745)
(cherry picked from commit eee72d4778)

Co-authored-by: Tobotimus <Tobotimus@users.noreply.github.com>
2018-02-26 15:59:55 -08:00
Steve Dower ccf7f05c5d
[3.6] bpo-32588 Move _distutils_findvs into its own module (GH-5227) (#5228) 2018-01-19 09:09:49 +11:00
Miss Islington (bot) 8676ac5419 Allows non-critical upload steps to fail (GH-4742) (#4743)
(cherry picked from commit 9ab11b3a02)
2017-12-06 12:12:44 -08:00
Victor Stinner 6979fcdc91
bpo-32155: Bugfixes found by flake8 F841 warnings (#4619)
* 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".
2017-11-28 23:04:12 +01:00
Miss Islington (bot) 40708cc7d2 bpo-31944: Fixes build and Modify button (GH-4278) (#4284)
(cherry picked from commit 0d2a9088d1)
2017-11-04 17:07:31 -07:00
Tal Einat f8b3f6b178 [3.6] bpo-31926: fix missing *_METHODDEF statements by argument clinic (GH-4230) (#4253)
When a single .c file contains several functions and/or methods with
the same name, a safety _METHODDEF GH-define statement is generated
only for one of them.

This fixes the bug by using the full name of the function to avoid
duplicates rather than just the name..
(cherry picked from commit 4f57409a2f)
2017-11-03 06:43:13 -07:00
Miss Islington (bot) b3af7fa453 Update multissltests: 1.0.2m, 1.1.0g (GH-4232) (#4236)
(cherry picked from commit 0d2c645d41)
2017-11-02 18:22:31 +01:00
Miss Islington (bot) a5f9d24c17 bpo-30722: Make redemo work with Python 3.6+ (GH-2311)
(cherry picked from commit 62adc55aff)
2017-10-23 20:40:36 +03:00
Miss Islington (bot) 051295a8c5 [3.6] bpo-31523: Reliability improvements to the Windows build files (GH-3900) (#3902)
(cherry picked from commit 2084b30e54)
2017-10-05 14:09:30 -07:00
Miss Islington (bot) d6201cb0e8 [3.6] bpo-31662: Fix typos in uploadrelease.bat script (#3858)
(cherry picked from commit efb560eee2)
2017-10-02 09:20:28 -07:00
Miss Islington (bot) ec3d34c5b2 [3.6] bpo-31536: Avoid wholesale rebuild after `make regen-all` (GH-3678) (#3797)
bpo-31536: Avoid wholesale rebuild after `make regen-all`
2017-09-28 13:21:32 +02:00
Christian Heimes 2a75012b82 [3.6] Update multissl test helper (GH-3349) (#3415)
Signed-off-by: Christian Heimes <christian@python.org>
(cherry picked from commit d3b9f97)
2017-09-07 10:12:03 -07:00
Steve Dower cb44b626da Add props file for nuget packages (#3410) (#3413) 2017-09-06 20:41:32 -07:00
Miss Islington (bot) e00e1b812c [3.6] Update `make patchcheck` for blurb and NEWS.d (GH-3406)
(cherry picked from commit 1ba9469e9f)
2017-09-07 10:38:51 +10:00
Steve Dower fd645ec6f5 [3.6] bpo-31340: Change to building with MSVC v141 (included with Visual Studio 2017) (GH-3311) (#3386) 2017-09-06 15:55:25 -07:00
Łukasz Langa 8e572491b5 [3.6] bpo-30983: [gdb] Fix py-bt, etc. for non-debug shared builds (GH-3153) (#3192)
PEP 523 introduced _PyEval_EvalFrameDefault which inlines PyEval_EvalFrameEx on
non-debug shared builds.  This breaks the ability to use py-bt, py-up, and
a few other Python-specific gdb integrations.

This patch fixes the problem by only looking for _PyEval_EvalFrameDefault
frames.

test_gdb passes on both a debug and a non-debug build.

Original patch by Bruno "Polaco" Penteado.
(cherry picked from commit 5fe59f8e3a)
2017-08-22 13:20:40 -07:00
Victor Stinner d23b1c4fd8 [3.6] bpo-31221: patchcheck ignores external libraries (#3109) (#3116)
* bpo-31221: patchcheck ignores external libraries (#3109)

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
(cherry picked from commit 4a347ce426)

* Exclude also Modules/_ctypes/libffi on Python 3.6
2017-08-17 16:53:27 +02:00
Victor Stinner 98e26979aa Revert "[3.6] bpo-30983: eval frame rename in pep 0523 broke gdb's python extension (GH-2803) (#3090)" (#3101)
This reverts commit 09b77165e3.
2017-08-16 11:02:08 +02:00
Łukasz Langa 09b77165e3 [3.6] bpo-30983: eval frame rename in pep 0523 broke gdb's python extension (GH-2803) (#3090)
pep 0523 renames PyEval_EvalFrameEx to _PyEval_EvalFrameDefault while the gdb python extension only looks for PyEval_EvalFrameEx to understand if it is dealing with a frame.

Final effect is that attaching gdb to a python3.6 process doesnt resolve python objects. Eg. py-list and py-bt dont work properly.

This patch fixes that. Tested locally on python3.6
(cherry picked from commit 2e0f4db114)
2017-08-14 16:06:28 -07:00
Steve Dower bb7fd3f4d0 Fix build batch files (#2750) (#2897)
* Enable building MSI, zip and nuget packages when Py_OutDir is set.

* Restore the --build option, which got reverted at some point.

* Ensure output directory is created.

* Enables BuildForDaily and DailyBuildVersion options for nuget package.
2017-07-26 14:20:41 -07:00
Steve Dower e99d3a52a5 [3.6] bpo-30450: Improved logic for obtaining dependencies (#2751)
Adds alternate download approach for nuget.exe
Fall back to git.exe if no Python is found. (#2739)
Also check whether git.exe is on PATH if it will be used.
Add support for HOST_PYTHON variable.
Clear internal environment variables used in find_python.bat
Use HOST_PYTHON as the actual Python if it is recent enough.
Adds HOST_PYTHON variable to AppVeyor configuration
2017-07-19 09:11:08 +02:00
Brett Cannon 57ee0c8c9e [3.6] Check the whitespace of pull requests on Travis (GH-2367) (GH-2386)
(cherry picked from commit 70cb1875bb)
2017-06-24 17:59:49 -07:00
Steve Dower 06d6e3d0bb bpo-30687: Fixes build scripts to find msbuild.exe and stop relying on vcvarsall.bat (#2252) (#2280)
* Fixes build scripts to find msbuild.exe and stop relying on vcvarsall.bat
Also fixes bdist_wininst.vcxproj to use correct version in generated name.
2017-06-19 11:12:56 -07:00
Victor Stinner 085a57a8d6 Revert "bpo-30673: test.bat: add -t option (timeout) (#2211) (#2225)" (#2246)
This reverts commit e064d4dfed.
2017-06-16 14:38:32 +02:00
Zachary Ware 04431c926a bpo-30450: Pull Windows dependencies from GitHub rather than svn (GH-1783) (GH-2237)
The Windows build now depends on Python 3.6 to fetch externals, but it will be downloaded via NuGet (which is downloaded via PowerShell) if it is not available via `py -3.6`.  This means the only thing that must be installed on a modern Windows box to do a full build of CPython with all extensions is Visual Studio.

Also fixes an outdated note about _lzma in PCbuild/readme.txt

(cherry-picked from commit 51599e2bdd)
2017-06-16 01:06:36 -05:00
Victor Stinner e064d4dfed bpo-30673: test.bat: add -t option (timeout) (#2211) (#2225)
(cherry picked from commit 258bfc462b)
2017-06-16 00:14:35 +02:00
Zachary Ware 964c261dc9 [3.6] bpo-27425: Be more explicit in .gitattributes (GH-840) (GH-2083)
Also updates checked-in line endings on some files
2017-06-10 15:39:29 -05:00
Victor Stinner d05f7fdf6c [3.6] bpo-30345: Update test_gdb.py and python-gdb.py from master (#1549)
* python-gdb.py supports method-wrapper

bpo-29367: python-gdb.py now supports also method-wrapper (wrapperobject)
objects.

(cherry picked from commit 611083331d)

* Update and enhance python-gdb.py

bpo-29259: Detect PyCFunction is the current frame, not only in the
older frame.
2017-05-13 00:21:50 +02:00
Victor Stinner 9d02f56296 [3.6] bpo-23404: make touch becomes make regen-all (#1405) (#1461)
* bpo-23404: make touch becomes make regen-all (#1405)

Don't rebuild generated files based on file modification time
anymore, the action is now explicit. Replace "make touch"
with "make regen-all".

Changes:

* Remove "make touch", Tools/hg/hgtouch.py and .hgtouch
* Add a new "make regen-all" command to rebuild all generated files
* Add subcommands to only generate specific files:

  - regen-ast: Include/Python-ast.h and Python/Python-ast.c
  - regen-grammar: Include/graminit.h and Python/graminit.c
  - regen-importlib: Python/importlib_external.h and Python/importlib.h
  - regen-opcode: Include/opcode.h
  - regen-opcode-targets: Python/opcode_targets.h
  - regen-typeslots: Objects/typeslots.inc

* Rename PYTHON_FOR_GEN to PYTHON_FOR_REGEN
* pgen is now only built by by "make regen-grammar"
* Add $(srcdir)/ prefix to paths to source files to handle correctly
  compilation outside the source directory

Note: $(PYTHON_FOR_REGEN) is no more used nor needed by "make"
default target building Python.
(cherry picked from commit a5c62a8e9f)

* bpo-30273: Update sysconfig (#1464)

The AST_H_DIR variable was removed from Makefile.pre.in by the commit
a5c62a8e9f (bpo-23404).

AST_H_DIR was hardcoded to "Include", so replace the removed variable
by its content.

Remove also ASDLGEN variable from sysconfig example since this
variable was also removed.
(cherry picked from commit b109a1d336)
2017-05-05 00:46:56 +02:00
Mariatta 430020500c [3.6] bpo-30109: Fix reindent.py (GH-1207) (GH-1208)
Skip the file if it has bad encoding.
(cherry picked from commit 58f3c9dc8f)
2017-04-20 07:12:37 -07:00
Nick Coghlan 4c116cb3b3 bpo-29798: Handle git worktree in patchcheck (#1058) (#1060)
The original attempted fix missed an `isdir()` call in
`get_base_branch()`.
(cherry picked from commit 2abfdf5a81)
2017-04-09 19:22:36 +10:00
Steve Dower 9cd5e87bac Takes vcruntime140.dll from the correct source. (#684) 2017-03-16 11:03:03 -07:00
Nick Coghlan 61a82a5fbf bpo-29798: Handle git worktree in `make patchcheck` (#629) (#633)
In git worktree directories, `.git` is a configuration
file rather than a subdirectory
(cherry picked from commit 6a6d090612)
2017-03-12 20:00:20 +10:00
Nick Coghlan 2f386254e2 bpo-29656: Handle PR branches in 'make patchcheck' (#302) (#626)
(cherry picked from commit 482f7a274f)
2017-03-12 16:17:46 +10:00
Mariatta 23b26c4e20 Fixes bpo-29680: Older gdb does not have gdb.error. (GH-363) (GH-534)
This change is required to make python-dbg.py compatible with GDB versions before 7.3.
(cherry picked from commit 661ca8843f)
2017-03-07 02:44:11 -08:00
Steve Dower e544b40faa Fixes the upload script to purge the CDN correctly and display success output. (#466) (#497) 2017-03-05 19:58:06 -08:00
Steve Dower d3e1e9df72 bpo-27593: Updates Windows build to use information from git (#262) (#450)
* bpo-27593: Updates Windows build to use information from git
2017-03-03 21:32:17 -08:00
Steve Dower f2beceb7e5 bpo-29624: Adds purge step and layout test after uploading files. (#258) (#264) 2017-02-23 15:03:20 -08:00
Senthil Kumaran a4afdfcf27 Change some mercurial/ hg.python.org references. (#8) (#185)
(cherry picked from commit b2ee40ed9c)
2017-02-19 18:58:33 -08:00
Steve Dower d372cda5cd bpo-29579: Removes readme.txt from the installer. (#161) 2017-02-18 16:12:06 -08:00
Steve Dower f007b49eb9 Includes ensurepip and venv packages in nuget package. 2017-02-06 14:12:19 -08:00
Steve Dower 5288477cfd Includes ensurepip and venv packages in nuget package. 2017-02-06 14:11:34 -08:00
Victor Stinner cb5fe9c22c Merge 3.5 2016-12-16 10:00:53 +01:00
Victor Stinner 610f5d739d python-gdb.py: catch gdb.error on gdb.selected_frame() 2016-12-16 10:00:39 +01:00