Skip to content

Commit

Permalink
Preparing to release PyDev 10.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
fabioz committed Jan 7, 2023
1 parent 220b33f commit cb77e78
Show file tree
Hide file tree
Showing 4 changed files with 97 additions and 13 deletions.
63 changes: 63 additions & 0 deletions .github/workflows/release-pydev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
name: Release - PyDev

on:
push:
branches:
- "release-pydev"

jobs:
build:
runs-on: windows-latest

steps:
- uses: actions/checkout@v2
with:
submodules: recursive

- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'adopt'
cache: 'maven'

- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8.12

- name: Set up Python 3.8 deps
run: |
python3 -m pip install cython numpy zope.interface
- name: Print Python/Java info
run: |
echo ----
echo ----
which python3
python3 -c "import numpy;print(numpy.__version__, numpy.__file__)"
python3 -c "import django;print(django.__file__)"
python3 -c "import hmac;print(hmac.__file__)"
echo SKIPPED python3 -c "import PyQt5;print(PyQt5.__file__)"
python3 plugins/org.python.pydev.core/pysrc/interpreterInfo.py
echo ----
echo ----
which java
which mvn
echo ---- rt.jar should be listed below
find /opt/hostedtoolcache/Java_Adopt_jdk/11.0.17-8/x64/ -name "*.jar"
- name: xvfb
shell: bash
env:
DISPLAY: ":99.0"
run: |
sudo apt install libxkbcommon-x11-0 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-xinerama0 libxcb-xfixes0
/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -screen 0 1920x1200x24 -ac +extension GLX
- name: Build with Maven
run: mvn install -DskipTests=true


2 changes: 1 addition & 1 deletion .github/workflows/tests-pydev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:

- name: Set up Python 3.8 deps
run: |
python3 -m pip install PyQt5 cython numpy django cython zope.interface
python3 -m pip install PyQt5 cython numpy django zope.interface
- name: Print Python/Java info
run: |
Expand Down
21 changes: 12 additions & 9 deletions plugins/com.python.pydev.docs/release_process.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,15 @@ X:\pydev\builders\org.python.pydev.build\build_cmd.bat
cd x:\pydev
python update_version.py 10.1.0


# TODO: Get debugger binaries from modules in pypi (either during build or when
# the user starts up PyDev) so that the step below is not needed.

Make sure debugger builtins are updated and commited:

cd /D x:\PyDev.Debugger
set PYTHONPATH=x:\PyDev.Debugger
C:\bin\Python38-32\python build_tools\build.py
C:\bin\Python38-32\python build_tools\build_binaries_windows.py
cd /D x:\liclipsews\liclipsews\Pydev\plugins\org.python.pydev.core\pysrc\
set PYTHONPATH=x:\liclipsews\liclipsews\Pydev\plugins\org.python.pydev.core\pysrc\
python build_tools\build.py

Update homepage
- index.rst
Expand Down Expand Up @@ -84,32 +87,32 @@ cd org.python.pydev.p2-repo-10.1.0-SNAPSHOT
"C:\Program Files\7-Zip\7z" x ..\org.python.pydev.p2-repo-10.1.0-SNAPSHOT.zip

cdd X:\pydev_build\build_dir\pydev\features\org.python.pydev.p2-repo\target\org.python.pydev.p2-repo-10.1.0-SNAPSHOT
C:\Users\fabio\AppData\Roaming\npm\surge.cmd --domain pydev-10-0-2.surge.sh
C:\Users\fabio\AppData\Roaming\npm\surge.cmd --domain pydev-10-1-0.surge.sh
"C:\Program Files\FileZilla FTP Client\filezilla.exe" sftp://fabioz,pydev@frs.sourceforge.net/home/project-web/pydev/htdocs/pydev_update_site --local="X:\pydev_build\build_dir\pydev\features\org.python.pydev.p2-repo\target\org.python.pydev.p2-repo-10.1.0-SNAPSHOT"


** Tag repository:
git tag pydev_10_0_2 -a -m "PyDev 10.1.0"
git tag pydev_10_1_0 -a -m "PyDev 10.1.0"
git push --tags

SET CONVERT_SOURCE=X:\pydev_build\build_dir\pydev\features\org.python.pydev.p2-repo\target\org.python.pydev.p2-repo-10.1.0-SNAPSHOT
SET CONVERT_FINAL_ZIP=X:\pydev_build\build_dir\pydev\features\org.python.pydev.p2-repo\target\runnable\PyDev 10.1.0.zip
SET CONVERT_TARGET_DIR=X:\pydev_build\build_dir\pydev\features\org.python.pydev.p2-repo\target\github
python X:\release_tools\convert_to_github.py 10.1.0
Do GH release in:
https://github.com/fabioz/Pydev/releases/new?tag=pydev_10_0_2
https://github.com/fabioz/Pydev/releases/new?tag=pydev_10_1_0
Contents in: X:\pydev_build\build_dir\pydev\features\org.python.pydev.p2-repo\target\github
Message:

This release contains PyDev 10.1.0

It's possible to add it as an Eclipse update site using the url:

https://github.com/fabioz/Pydev/releases/download/pydev_10_0_2/
https://github.com/fabioz/Pydev/releases/download/pydev_10_1_0/

Or get a .zip to install manually by unzipping it in the dropins:

https://github.com/fabioz/Pydev/releases/download/pydev_10_0_2/PyDev.10.1.0.zip
https://github.com/fabioz/Pydev/releases/download/pydev_10_1_0/PyDev.10.1.0.zip


** Update homepage:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,26 @@

__version_info__ in pydevd.py

Create tag:
-----------
git tag pydev_debugger_2_9_5 -a -m "PyDev.Debugger 2.9.5"
git push --tags


(pushing the tag does the release to PyPi now)









Old release process (locally):
=================================

2. Create conda envs
Create conda envs
=====================

conda create -y -f -n py36_64 python=3.6 cython numpy nose ipython pip
Expand Down Expand Up @@ -76,7 +94,7 @@ activate py311_64
pip install cython==0.29.32
conda deactivate

4. Regenerate the .pyx and .c
Regenerate the .pyx and .c
===============================

set FORCE_PYDEVD_VC_VARS=C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Auxiliary\Build\vcvars64.bat
Expand All @@ -94,7 +112,7 @@ cd ~/Desktop/Pydev/plugins/org.python.pydev.core/pysrc
export PYTHONPATH=~/Desktop/Pydev/plugins/org.python.pydev.core/pysrc
python build_tools/build.py

3. Generate new version
Generate new version
======================

cd /D x:\debugpyws\PyDev.Debugger
Expand Down

0 comments on commit cb77e78

Please sign in to comment.