1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147
|
1. Update version
=================
__version_info__ in pydevd.py
Update cython-generated files (must update cython and then run build_tools/build.py on python 3.10 and 3.12)
Create tag:
-----------
git tag pydev_debugger_3_3_0 -a -m "PyDev.Debugger 3.3.0"
git push origin pydev_debugger_3_3_0
(pushing the tag does the release to PyPi now)
Old release process (locally):
=================================
Create conda envs
=====================
conda create -y -f -n py38_64 python=3.8 cython numpy nose ipython pip
activate py38_64
pip install "django>=1.9"
pip install -U "setuptools>=0.9"
pip install -U "pip>=1.4" "wheel>=0.21" twine
deactivate
conda create -y -f -n py39_64 python=3.9 cython pip
activate py39_64
pip install "django>=1.9"
pip install -U "setuptools>=0.9"
pip install -U "pip>=1.4" "wheel>=0.21" twine
deactivate
conda create -y -f -n py310_64 python=3.10 cython pip
activate py310_64
pip install "django>=1.9"
pip install -U "setuptools>=0.9"
pip install -U "pip>=1.4" "wheel>=0.21" twine
deactivate
conda create -y -f -n py311_64 python=3.11 -c conda-forge
activate py311_64
pip install cython
pip install "django>=1.9"
pip install -U "setuptools>=0.9"
pip install -U "pip>=1.4" "wheel>=0.21" twine
deactivate
conda create -y -f -n py312_64 python=3.11 -c conda-forge
activate py312_64
pip install cython
pip install "django>=1.9"
pip install -U "setuptools>=0.9"
pip install -U "pip>=1.4" "wheel>=0.21" twine
deactivate
### UPDATE CYTHON
activate py38_64
pip install cython==3.0.8
deactivate
activate py39_64
pip install cython==3.0.8
deactivate
activate py310_64
pip install cython==3.0.8
deactivate
activate py311_64
pip install cython==3.0.8
deactivate
activate py312_64
pip install cython==3.0.8
deactivate
Regenerate the .pyx and .c
===============================
set FORCE_PYDEVD_VC_VARS=C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Auxiliary\Build\vcvars64.bat
cd /D x:\pydev\plugins\org.python.pydev.core\pysrc
set PYTHONPATH=x:\pydev\plugins\org.python.pydev.core\pysrc
C:\bin\Miniconda\envs\py_38_tests\python.exe build_tools\build.py
${ptvsd_folder}
"C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Auxiliary\Build\vcvars64.bat"
cd /D X:\ptvsd_workspace\ptvsd\src\debugpy\_vendored\pydevd
set PYTHONPATH=X:\ptvsd_workspace\ptvsd\src\debugpy\_vendored\pydevd
C:\bin\Miniconda\envs\py_38_tests\python.exe build_tools\build.py
cd ~/Desktop/Pydev/plugins/org.python.pydev.core/pysrc
export PYTHONPATH=~/Desktop/Pydev/plugins/org.python.pydev.core/pysrc
python build_tools/build.py
Generate new version
======================
cd /D x:\debugpyws\PyDev.Debugger
set FORCE_PYDEVD_VC_VARS=C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Auxiliary\Build\vcvars64.bat
set PYTHONPATH=x:\debugpyws\PyDev.Debugger
set MINICONDA_ENVS=D:\bin\miniconda\envs
python build_tools\build.py
python build_tools\build_binaries_windows.py
rm dist/pydevd*
deactivate
activate py38_64
python setup.py sdist bdist_wheel
deactivate
dir dist
activate py39_64
python setup.py sdist bdist_wheel
deactivate
dir dist
activate py310_64
python setup.py sdist bdist_wheel
deactivate
dir dist
activate py311_64
python setup.py sdist bdist_wheel
deactivate
dir dist
# Note: uploading with twine gives an error in the end, but apparently it works (check final result in pypi).
twine upload dist/pydevd* --repository pydevd
git tag pydev_debugger_2_9_5 -a -m "PyDev.Debugger 2.9.5"
git push --tags
|