mirror of https://github.com/zulip/zulip.git
create-production-venv: Remove Python 2 support.
We still create a Python 2 virtualenv for thumbor but that’s separate (/srv/zulip-thumbor-venv from scripts/lib/create-thumbor-venv). Signed-off-by: Anders Kaseorg <andersk@mit.edu>
This commit is contained in:
parent
4c603990d2
commit
2ad1a27b28
|
@ -40,7 +40,7 @@ python_version = sys.version_info[0]
|
|||
# relative path in requirements/common.in works.
|
||||
os.chdir(ZULIP_PATH)
|
||||
|
||||
venv_name = "zulip-venv" if sys.version_info[0] == 2 else "zulip-py3-venv"
|
||||
venv_name = "zulip-py3-venv"
|
||||
cached_venv_path = setup_virtualenv(
|
||||
os.path.join(args.deploy_path, venv_name),
|
||||
os.path.join(ZULIP_PATH, "requirements", "prod.txt"),
|
||||
|
|
|
@ -191,7 +191,7 @@ Now you can test using Zulip itself, or curl on the command line.
|
|||
Using `manage.py` from within the Zulip development environment:
|
||||
|
||||
```
|
||||
(zulip-venv)vagrant@vagrant-ubuntu-trusty-64:/srv/zulip$
|
||||
(zulip-py3-venv)vagrant@vagrant-ubuntu-trusty-64:/srv/zulip$
|
||||
./manage.py send_webhook_fixture_message \
|
||||
--fixture=zerver/webhooks/helloworld/fixtures/hello.json \
|
||||
'--url=http://localhost:9991/api/v1/external/helloworld?api_key=<api_key>'
|
||||
|
@ -303,7 +303,7 @@ Once you have written some tests, you can run just these new tests from within
|
|||
the Zulip development environment with this command:
|
||||
|
||||
```
|
||||
(zulip-venv)vagrant@vagrant-ubuntu-trusty-64:/srv/zulip$
|
||||
(zulip-py3-venv)vagrant@vagrant-ubuntu-trusty-64:/srv/zulip$
|
||||
./tools/test-backend zerver/webhooks/helloworld
|
||||
```
|
||||
|
||||
|
@ -352,7 +352,7 @@ stream name:
|
|||
To trigger a notification using this webhook, use
|
||||
`send_webhook_fixture_message` from the Zulip command line:
|
||||
|
||||
(zulip-venv)vagrant@vagrant-ubuntu-trusty-64:/srv/zulip$
|
||||
(zulip-py3-venv)vagrant@vagrant-ubuntu-trusty-64:/srv/zulip$
|
||||
./manage.py send_webhook_fixture_message \
|
||||
--fixture=zerver/tests/fixtures/helloworld/hello.json \
|
||||
'--url=http://localhost:9991/api/v1/external/helloworld?api_key=<api_key>'
|
||||
|
|
|
@ -97,7 +97,7 @@ Your remote Zulip dev server has been created!
|
|||
`ssh zulipdev@<username>.zulipdev.org` on the command line
|
||||
(Terminal for macOS and Linux, Bash for Git on Windows).
|
||||
- There is no password; your account is configured to use your ssh keys.
|
||||
- Once you log in, you should see `(zulip-venv) ~$`.
|
||||
- Once you log in, you should see `(zulip-py3-venv) ~$`.
|
||||
- To start the dev server, `cd zulip` and then run `./tools/run-dev.py`.
|
||||
- While the dev server is running, you can see the Zulip server in your browser
|
||||
at http://<username>.zulipdev.org:9991.
|
||||
|
|
|
@ -206,7 +206,7 @@ Your remote Zulip dev server has been created!
|
|||
`ssh zulipdev@{0}.zulipdev.org` on the command line
|
||||
(Terminal for macOS and Linux, Bash for Git on Windows).
|
||||
- There is no password; your account is configured to use your ssh keys.
|
||||
- Once you log in, you should see `(zulip-venv) ~$`.
|
||||
- Once you log in, you should see `(zulip-py3-venv) ~$`.
|
||||
- To start the dev server, `cd zulip` and then run `./tools/run-dev.py`.
|
||||
- While the dev server is running, you can see the Zulip server in your browser at
|
||||
http://{0}.zulipdev.org:9991.
|
||||
|
|
|
@ -15,7 +15,7 @@ To trigger a notification using this webhook, use
|
|||
`send_webhook_fixture_message` from the Zulip command line:
|
||||
|
||||
```
|
||||
(zulip-venv)vagrant@vagrant-ubuntu-trusty-64:/srv/zulip$
|
||||
(zulip-py3-venv)vagrant@vagrant-ubuntu-trusty-64:/srv/zulip$
|
||||
./manage.py send_webhook_fixture_message \
|
||||
> --fixture=zerver/tests/fixtures/helloworld/hello.json \
|
||||
> '--url=http://localhost:9991/api/v1/external/helloworld?api_key=<api_key>'
|
||||
|
|
Loading…
Reference in New Issue