• Home
  • Raw
  • Download

Lines Matching +full:publish +full:- +full:pypi

3 set -ex
6 grep "__version__ = '.*'" python/google/protobuf/__init__.py | sed -r "s/__version__ = '(.*)'/\1/"
12 local PYPI=$3
15 # pass --no-setuptools here and then install an older setuptools version
17 virtualenv -p `which $PYTHON` --no-setuptools test-venv
21 touch test-venv/bin/protoc
22 chmod +x test-venv/bin/protoc
24 source test-venv/bin/activate
26 pip install -i ${PYPI} protobuf==${VERSION} --no-cache-dir
28 rm -fr test-venv
32 [ $# -lt 1 ] && {
38 echo " Actually release 3.3.0 to PyPI:"
46 [ -f "python/google/protobuf/__init__.py" ] || {
51 # Make sure all files are world-readable.
52 find python -type d -exec chmod a+r,a+x {} +
53 find python -type f -exec chmod a+r {} +
59 [ "${VERSION}" == "${SOURCE_VERSION}" -o "${VERSION}.${DEV}" == "${SOURCE_VERSION}" ] || {
67 if [ -z "${DEV}" ]; then
68 read -p "You are releasing ${VERSION} to PyPI. Are you sure? [y/n]" -r
77 …sed -i -r "s/__version__ = '.*'/__version__ = '${VERSION}.${DEV}'/" python/google/protobuf/__init_…
86 # Deploy source package to testing PyPI
88 twine upload --skip-existing -r testpypi -u protobuf-wheel-test dist/*
91 run_install_test ${TESTING_VERSION} python2.7 https://test.pypi.org/simple
92 run_install_test ${TESTING_VERSION} python3 https://test.pypi.org/simple
94 # Deploy egg/wheel packages to testing PyPI and test again.
96 twine upload --skip-existing -r testpypi -u protobuf-wheel-test dist/*
98 run_install_test ${TESTING_VERSION} python2.7 https://test.pypi.org/simple
99 run_install_test ${TESTING_VERSION} python3 https://test.pypi.org/simple
101 echo "All install tests have passed using testing PyPI."
103 if [ $TESTING_ONLY -eq 0 ]; then
104 read -p "Publish to PyPI? [y/n]" -r
109 echo "Publishing to PyPI..."
111 # well-known types.
113 twine upload --skip-existing -u protobuf-packages dist/*
116 # and tested with --cpp_implemenation, bdist_xxx will include the _message.so
117 # file even when you no longer pass the --cpp_implemenation flag. See:
120 twine upload --skip-existing -u protobuf-packages dist/*
123 sed -i -r "s/__version__ = '.*'/__version__ = '${VERSION}'/" google/protobuf/__init__.py