From fe77748aed03faf5fe691e4096740d16cbf131de Mon Sep 17 00:00:00 2001 From: Fabio Zadrozny Date: Wed, 31 Jan 2024 20:55:57 -0300 Subject: [PATCH] Release pydevd 3.0.2 --- .../workflows/pydevd-release-manylinux.yml | 4 +-- .github/workflows/pydevd-release.yml | 2 +- .github/workflows/pydevd-tests-python.yml | 33 +++++++++++++++---- README.md | 15 +++++---- build_tools/check_no_git_modifications.py | 15 +++++++++ pydevd.py | 2 +- setup.py | 2 -- 7 files changed, 54 insertions(+), 19 deletions(-) diff --git a/.github/workflows/pydevd-release-manylinux.yml b/.github/workflows/pydevd-release-manylinux.yml index 8061b26f..e85e8f87 100644 --- a/.github/workflows/pydevd-release-manylinux.yml +++ b/.github/workflows/pydevd-release-manylinux.yml @@ -24,7 +24,7 @@ jobs: - uses: actions/setup-python@v3 - name: Install cibuildwheel - run: python -m pip install cibuildwheel==2.16.5 + run: python -m pip install cibuildwheel==2.16.2 - name: Remove .so files (will be rebuilt) run: rm pydevd_attach_to_process/*.so @@ -32,7 +32,7 @@ jobs: - name: Build wheels run: python -m cibuildwheel --output-dir wheelhouse env: - CIBW_SKIP: pp* + CIBW_SKIP: pp* cp36-* cp37-* CIBW_BUILD_VERBOSITY: 1 - uses: actions/upload-artifact@v3 diff --git a/.github/workflows/pydevd-release.yml b/.github/workflows/pydevd-release.yml index d645596e..72198a98 100644 --- a/.github/workflows/pydevd-release.yml +++ b/.github/workflows/pydevd-release.yml @@ -16,7 +16,7 @@ jobs: fail-fast: false matrix: os: [macos-latest, windows-latest] - python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12'] + python-version: ['3.8', '3.9', '3.10', '3.11', '3.12'] steps: - uses: actions/checkout@v3 - name: Set up Python diff --git a/.github/workflows/pydevd-tests-python.yml b/.github/workflows/pydevd-tests-python.yml index 7b41ddda..e0a9849f 100644 --- a/.github/workflows/pydevd-tests-python.yml +++ b/.github/workflows/pydevd-tests-python.yml @@ -17,26 +17,27 @@ jobs: name: [ "ubuntu-pypy3", # "macos-py37-cython", -- misbehaving on github actions - "ubuntu-py38-cython", + "ubuntu-py38-cython-checkbin", "windows-py39-cython", "windows-py310-cython-checkbin", "windows-py311-cython", "ubuntu-py311-cython", - "ubuntu-py312-cython", + "ubuntu-py312-cython-checkbin", + "windows-py312-cython-checkbin", ] include: - name: "ubuntu-pypy3" python: "pypy3.10" - os: ubuntu-latest + os: ubuntu-20.04 PYDEVD_USE_CYTHON: NO # - name: "macos-py37-cython" # python: "3.7" # os: macos-latest # PYDEVD_USE_CYTHON: YES - - name: "ubuntu-py38-cython" + - name: "ubuntu-py38-cython-checkbin" python: "3.8" - os: ubuntu-latest + os: ubuntu-20.04 PYDEVD_USE_CYTHON: YES - name: "windows-py39-cython" python: "3.9" @@ -53,11 +54,15 @@ jobs: PYDEVD_USE_CYTHON: YES - name: "ubuntu-py311-cython" python: "3.11.0" - os: ubuntu-latest + os: ubuntu-20.04 PYDEVD_USE_CYTHON: YES - name: "ubuntu-py312-cython" python: "3.12.0" - os: ubuntu-latest + os: ubuntu-20.04 + PYDEVD_USE_CYTHON: YES + - name: "windows-py312-cython-checkbin" + python: "3.12" + os: windows-latest PYDEVD_USE_CYTHON: YES steps: @@ -103,6 +108,18 @@ jobs: if: contains(matrix.name, 'py3') run: | pip install trio + + - name: Check that wheels can be built + if: contains(matrix.name, 'checkbin') && contains(matrix.name, 'ubuntu') + run: | + python -m pip install cibuildwheel==2.16.2 + # Remove these .so files (will be rebuilt) + rm pydevd_attach_to_process/*.so + python -m cibuildwheel --output-dir wheelhouse + env: + CIBW_BUILD: cp38-*manylinux*x86_64 + CIBW_BUILD_VERBOSITY: 1 + - name: Check cython unchanged if: contains(matrix.name, 'checkbin') env: @@ -110,6 +127,8 @@ jobs: run: | python build_tools/build.py python build_tools/check_no_git_modifications.py + + - name: Create cython binaries if: contains(matrix.name, 'cython') run: | diff --git a/README.md b/README.md index 90b47add..88f69b03 100644 --- a/README.md +++ b/README.md @@ -8,23 +8,22 @@ The PyDev Debugger is a Python debugger which historically was created to work with `PyDev` (in Eclipse). Over the years (as it's open source -- EPL) it was adopted by other IDEs/companies -(so, it was integrated into PyCharm and is also bundled in VSCode Python by -the usage of debugpy). +(so, it was integrated into PyCharm and VSCode Python through `debugpy`, which bundles `pydevd`). Note that although it was adopted by other IDEs (and over the years companies of other commercial IDEs did provide backing), by far most of the work was done without any external backing and the ongoing work on the project relies on community support. -If you like using it, please consider becoming a backer of the project (this is +So, if you like using it, please consider becoming a backer of the project (this is done through the `PyDev` umbrella, so please see https://www.pydev.org/about.html -for how to financially contribute to the project). +for how to contribute to the project). The sources for the PyDev.Debugger may be seen at: https://github.com/fabioz/PyDev.Debugger In general, the debugger backend should **NOT** be installed separately if you're using an IDE which already -bundles it (such as PyDev, PyCharm or bundled through debugpy, which is the debug adapter used in +bundles it (such as PyDev, PyCharm or bundled through debugpy, which is the debug adapter used in VSCode Python and Visual Studio Python). It is however available in PyPi so that it can be installed for doing remote debugging with `pip` -- so, when @@ -32,7 +31,11 @@ debugging a process which runs in another machine, it's possible to `pip install `pydevd.settrace(host='10.1.1.1')` to connect the debugger backend to the debugger UI running in the IDE (whereas previously the sources had to be manually copied from the IDE installation). -`pydevd` is compatible with Python 3.6 onwards and is tested both with CPython as well as PyPy. +For instructions on how to `Remote Debug` with `PyDev`, see: https://www.pydev.org/manual_adv_remote_debugger.html + +`pydevd` is compatible with Python 3.8 onwards and is tested both with CPython as well as PyPy. + +For `Python 3.3 to 3.7` please keep using `pydevd 2.10.0`. For `Python 2` please keep using `pydevd 2.8.0`. diff --git a/build_tools/check_no_git_modifications.py b/build_tools/check_no_git_modifications.py index b8bd59ca..4bb85f76 100644 --- a/build_tools/check_no_git_modifications.py +++ b/build_tools/check_no_git_modifications.py @@ -25,6 +25,21 @@ + "_pydevd_frame_eval\\\\pydevd_frame_evaluator.pyx", - "_pydevd_bundle/pydevd_cython.pxd", + "_pydevd_bundle\\\\pydevd_cython.pxd", + +--- a/_pydevd_sys_monitoring/_pydevd_sys_monitoring_cython.c ++++ b/_pydevd_sys_monitoring/_pydevd_sys_monitoring_cython.c +- "_pydevd_sys_monitoring\\\\\\\\_pydevd_sys_monitoring_cython.pyx", ++ "_pydevd_sys_monitoring/_pydevd_sys_monitoring_cython.pyx", +- ".\\\\\\\\_pydevd_bundle\\\\\\\\pydevd_cython.pxd", ++ "./_pydevd_bundle/pydevd_cython.pxd", +-static const char __pyx_k_pydevd_sys_monitoring__pydevd_s[] = "_pydevd_sys_monitoring\\\\_pydevd_sys_monitoring_cython.pyx"; ++static const char __pyx_k_pydevd_sys_monitoring__pydevd_s[] = "_pydevd_sys_monitoring/_pydevd_sys_monitoring_cython.pyx"; + +- "_pydevd_sys_monitoring\\\\_pydevd_sys_monitoring_cython.pyx", +- ".\\\\\\\\_pydevd_bundle\\\\pydevd_cython.pxd", +-static const char __pyx_k_pydevd_sys_monitoring__pydevd_s[] = "_pydevd_sys_monitoring\\_pydevd_sys_monitoring_cython.pyx"; +- ".\\\\\\\\_pydevd_bundle\\\\\\\\pydevd_cython.pxd", +- ".\\\\_pydevd_bundle\\\\pydevd_cython.pxd", '''.splitlines() if line.strip()) diff --git a/pydevd.py b/pydevd.py index 7d162ea5..d1421a93 100644 --- a/pydevd.py +++ b/pydevd.py @@ -119,7 +119,7 @@ if USE_CUSTOM_SYS_CURRENT_FRAMES_MAP: from _pydevd_bundle.pydevd_constants import constructed_tid_to_last_frame -__version_info__ = (3, 0, 1) +__version_info__ = (3, 0, 2) __version_info_str__ = [] for v in __version_info__: __version_info_str__.append(str(v)) diff --git a/setup.py b/setup.py index 48426366..76a3a5e7 100644 --- a/setup.py +++ b/setup.py @@ -113,8 +113,6 @@ def accept_file(f): 'Operating System :: POSIX', 'Programming Language :: Python', 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.6', - 'Programming Language :: Python :: 3.7', 'Programming Language :: Python :: 3.8', 'Programming Language :: Python :: 3.9', 'Programming Language :: Python :: 3.10',