Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
P
protobuf
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
protobuf
Commits
19a7e209
Commit
19a7e209
authored
Aug 16, 2017
by
Jisi Liu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update testpypi addresses.
The old one is deprecated and no longer working.
parent
80a37e07
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
release.sh
python/release.sh
+9
-6
No files found.
python/release.sh
View file @
19a7e209
...
@@ -11,8 +11,11 @@ function run_install_test() {
...
@@ -11,8 +11,11 @@ function run_install_test() {
local
PYTHON
=
$2
local
PYTHON
=
$2
local
PYPI
=
$3
local
PYPI
=
$3
#virtualenv -p `which $PYTHON` test-venv
virtualenv
--no-site-packages
-p
`
which
$PYTHON
`
test-venv
virtualenv
--no-site-packages
-p
`
which
$PYTHON
`
test-venv
#pip install --upgrade pip
# Intentionally put a broken protoc in the path to make sure installation
# Intentionally put a broken protoc in the path to make sure installation
# doesn't require protoc installed.
# doesn't require protoc installed.
touch
test-venv/bin/protoc
touch
test-venv/bin/protoc
...
@@ -79,16 +82,16 @@ python setup.py build
...
@@ -79,16 +82,16 @@ python setup.py build
python setup.py
test
python setup.py
test
# Deploy source package to testing PyPI
# Deploy source package to testing PyPI
python setup.py sdist upload
-r
https://test
pypi.python.org/pypi
python setup.py sdist upload
-r
https://test
.pypi.org/legacy/
# Test locally with different python versions.
# Test locally with different python versions.
run_install_test
${
TESTING_VERSION
}
python2.7 https://test
pypi.python
.org/simple
run_install_test
${
TESTING_VERSION
}
python2.7 https://test
.pypi
.org/simple
run_install_test
${
TESTING_VERSION
}
python3.4 https://test
pypi.python
.org/simple
run_install_test
${
TESTING_VERSION
}
python3.4 https://test
.pypi
.org/simple
# Deploy egg/wheel packages to testing PyPI and test again.
# Deploy egg/wheel packages to testing PyPI and test again.
python setup.py bdist_egg bdist_wheel upload
-r
https://test
pypi.python.org/pypi
python setup.py bdist_egg bdist_wheel upload
-r
https://test
.pypi.org/legacy/
run_install_test
${
TESTING_VERSION
}
python2.7 https://test
pypi.python
.org/simple
run_install_test
${
TESTING_VERSION
}
python2.7 https://test
.pypi
.org/simple
run_install_test
${
TESTING_VERSION
}
python3.4 https://test
pypi.python
.org/simple
run_install_test
${
TESTING_VERSION
}
python3.4 https://test
.pypi
.org/simple
echo
"All install tests have passed using testing PyPI."
echo
"All install tests have passed using testing PyPI."
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment