changeset fa74f0cd0d64 in cookiecutter:default
details: https://hg.tryton.org/cookiecutter?cmd=changeset;node=fa74f0cd0d64
description:
Use bitbucket mirror for prefixed module
They should not require to have the very last version of the source
code. So
using the bitbucket mirror will reduce the load on our main server.
issue8277
review277251004
diffstat:
{{ cookiecutter.module_name }}/setup.py | 2 +-
{{ cookiecutter.module_name }}/tox.ini | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diffs (21 lines):
diff -r ade86c9dbba2 -r fa74f0cd0d64 {{ cookiecutter.module_name }}/setup.py
--- a/{{ cookiecutter.module_name }}/setup.py Sat Apr 13 00:08:02 2019 +0200
+++ b/{{ cookiecutter.module_name }}/setup.py Sat Apr 27 10:30:12 2019 +0200
@@ -69,7 +69,7 @@
{%- endif %}
dependency_links = []
if minor_version % 2:
- dependency_links.append('https://trydevpi.tryton.org/')
+ dependency_links.append('https://trydevpi.tryton.org/{% if
cookiecutter.prefix %}?mirror=bitbucket{% endif %}')
setup(name=name,
version=version,
diff -r ade86c9dbba2 -r fa74f0cd0d64 {{ cookiecutter.module_name }}/tox.ini
--- a/{{ cookiecutter.module_name }}/tox.ini Sat Apr 13 00:08:02 2019 +0200
+++ b/{{ cookiecutter.module_name }}/tox.ini Sat Apr 27 10:30:12 2019 +0200
@@ -12,4 +12,4 @@
postgresql: TRYTOND_DATABASE_URI={env:POSTGRESQL_URI:postgresql://}
sqlite: DB_NAME={env:SQLITE_NAME::memory:}
postgresql: DB_NAME={env:POSTGRESQL_NAME:test}
-install_command = pip install --pre --find-links https://trydevpi.tryton.org/
{opts} {packages}
+install_command = pip install --pre --find-links
https://trydevpi.tryton.org/{% if cookiecutter.prefix %}?mirror=bitbucket{%
endif %} {opts} {packages}