• Home
  • Raw
  • Download

Lines Matching +full:build +full:- +full:and +full:- +full:deploy

3 set -ex
6 grep "__version__ = '.*'" python/google/protobuf/__init__.py | sed -r "s/__version__ = '(.*)'/\1/"
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 ] && {
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_…
83 python3 setup.py build
86 # Deploy source package to testing PyPI
88 twine upload --skip-existing -r testpypi -u protobuf-wheel-test dist/*
94 # Deploy egg/wheel packages to testing PyPI and test again.
95 python3 setup.py clean build bdist_wheel
96 twine upload --skip-existing -r testpypi -u protobuf-wheel-test dist/*
103 if [ $TESTING_ONLY -eq 0 ]; then
104 read -p "Publish to PyPI? [y/n]" -r
110 # Be sure to run build before sdist, because otherwise sdist will not include
111 # well-known types.
112 python3 setup.py clean build sdist
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:
119 python3 setup.py clean build bdist_wheel
120 twine upload --skip-existing -u protobuf-packages dist/*
123 sed -i -r "s/__version__ = '.*'/__version__ = '${VERSION}'/" google/protobuf/__init__.py