Update links and references

parent 1563fbf3
...@@ -8,7 +8,7 @@ little bit helps, and credit will always be given. ...@@ -8,7 +8,7 @@ little bit helps, and credit will always be given.
Bug reports Bug reports
=========== ===========
When `reporting a bug <https://github.com/Pawamoy/django-hope/issues>`_ please include: When `reporting a bug <https://icube-forge.unistra.fr/CSTB/django-hope/issues>`_ please include:
* Your operating system name and version. * Your operating system name and version.
* Any details about your local setup that might be helpful in troubleshooting. * Any details about your local setup that might be helpful in troubleshooting.
...@@ -24,7 +24,7 @@ articles, and such. ...@@ -24,7 +24,7 @@ articles, and such.
Feature requests and feedback Feature requests and feedback
============================= =============================
The best way to send feedback is to file an issue at https://github.com/Pawamoy/django-hope/issues. The best way to send feedback is to file an issue at https://icube-forge.unistra.fr/CSTB/django-hope/issues.
If you are proposing a feature: If you are proposing a feature:
...@@ -37,7 +37,7 @@ Development ...@@ -37,7 +37,7 @@ Development
To set up `django-hope` for local development: To set up `django-hope` for local development:
1. Fork `django-hope <https://github.com/Pawamoy/django-hope>`_ 1. Fork `django-hope <https://icube-forge.unistra.fr/CSTB/django-hope>`_
(look for the "Fork" button). (look for the "Fork" button).
2. Clone your fork locally:: 2. Clone your fork locally::
......
...@@ -56,8 +56,8 @@ version = release = u'0.1.0' ...@@ -56,8 +56,8 @@ version = release = u'0.1.0'
pygments_style = 'trac' pygments_style = 'trac'
templates_path = ['.'] templates_path = ['.']
extlinks = { extlinks = {
'issue': ('https://github.com/Pawamoy/django-hope/issues/%s', '#'), 'issue': ('https://icube-forge.unistra.fr/CSTB/django-hope/issues/%s', '#'),
'pr': ('https://github.com/Pawamoy/django-hope/pull/%s', 'PR #'), 'pr': ('https://icube-forge.unistra.fr/CSTB/django-hope/pull/%s', 'PR #'),
} }
# on_rtd is whether we are on readthedocs.org # on_rtd is whether we are on readthedocs.org
......
...@@ -36,9 +36,9 @@ setup( ...@@ -36,9 +36,9 @@ setup(
.sub('', read('README.rst')), .sub('', read('README.rst')),
re.sub(':[a-z]+:`~?(.*?)`', r'``\1``', read('CHANGELOG.rst')) re.sub(':[a-z]+:`~?(.*?)`', r'``\1``', read('CHANGELOG.rst'))
), ),
author=u'Timoth\xe9e Mazzucotelli', author='Timothée Mazzucotelli',
author_email='timothee.mazzucotelli@gmail.com', author_email='timothee.mazzucotelli@gmail.com',
url='https://github.com/Pawamoy/django-hope', url='https://icube-forge.unistra.fr/CSTB/django-hope',
packages=find_packages('src'), packages=find_packages('src'),
package_dir={'': 'src'}, package_dir={'': 'src'},
py_modules=[splitext(basename(path))[0] for path in glob('src/*.py')], py_modules=[splitext(basename(path))[0] for path in glob('src/*.py')],
......
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
u"""Django HOPE package.""" """Django HOPE package."""
[tox] [tox]
envlist = envlist =
clean,setup,safety,style,spell,link,docs, clean,setup,safety,style,docs,
py27-django18, py27-django18,
py27-django19, py27-django19,
py27-django110, py27-django110,
...@@ -29,11 +29,11 @@ envlist = ...@@ -29,11 +29,11 @@ envlist =
skip_missing_interpreters = true skip_missing_interpreters = true
[testenv] [testenv]
setenv = setenv =
PYTHONPATH = {toxinidir}:{toxinidir}/src:{toxinidir}/tests PYTHONPATH = {toxinidir}:{toxinidir}/src:{toxinidir}/tests
PYTHONUNBUFFERED=yes PYTHONUNBUFFERED=yes
commands = {posargs:pytest --cov --cov-report=term-missing -vv runtests.py tests} commands = {posargs:pytest --cov --cov-report=term-missing -vv runtests.py tests}
deps = deps =
django18: Django>=1.8,<1.9 django18: Django>=1.8,<1.9
django19: Django>=1.9,<1.10 django19: Django>=1.9,<1.10
django110: Django>=1.10,<1.11 django110: Django>=1.10,<1.11
...@@ -53,7 +53,7 @@ commands = tox -e py27-django18,py27-django19,py27-django110,py27-django111,py34 ...@@ -53,7 +53,7 @@ commands = tox -e py27-django18,py27-django19,py27-django110,py27-django111,py34
description = Run all the Python/Django test environments in parallel. description = Run all the Python/Django test environments in parallel.
skip_install = true skip_install = true
deps = detox deps = detox
commands = commands =
detox -e py27-django18,py27-django19,py27-django110,py27-django111,py34-django18,py34-django19,py34-django110,py34-django111,py35-django18,py35-django19,py35-django110,py35-django111,py36-django18,py36-django19,py36-django110,py36-django111,py37-dev-django18,py37-dev-django19,py37-dev-django110,py37-dev-django111,pypy-django18,pypy-django19,pypy-django110,pypy-django111, detox -e py27-django18,py27-django19,py27-django110,py27-django111,py34-django18,py34-django19,py34-django110,py34-django111,py35-django18,py35-django19,py35-django110,py35-django111,py36-django18,py36-django19,py36-django110,py36-django111,py37-dev-django18,py37-dev-django19,py37-dev-django110,py37-dev-django111,pypy-django18,pypy-django19,pypy-django110,pypy-django111,
tox -e report tox -e report
...@@ -61,83 +61,70 @@ commands = ...@@ -61,83 +61,70 @@ commands =
description = Run all the environments in parallel. description = Run all the environments in parallel.
skip_install = true skip_install = true
deps = detox deps = detox
commands = commands =
detox -e clean,setup,safety,style,spell,link,docs,py27-django18,py27-django19,py27-django110,py27-django111,py34-django18,py34-django19,py34-django110,py34-django111,py35-django18,py35-django19,py35-django110,py35-django111,py36-django18,py36-django19,py36-django110,py36-django111,py37-dev-django18,py37-dev-django19,py37-dev-django110,py37-dev-django111,pypy-django18,pypy-django19,pypy-django110,pypy-django111, detox -e clean,setup,safety,style,docs,py27-django18,py27-django19,py27-django110,py27-django111,py34-django18,py34-django19,py34-django110,py34-django111,py35-django18,py35-django19,py35-django110,py35-django111,py36-django18,py36-django19,py36-django110,py36-django111,py37-dev-django18,py37-dev-django19,py37-dev-django110,py37-dev-django111,pypy-django18,pypy-django19,pypy-django110,pypy-django111,
tox -e report tox -e report
[testenv:docs]
description = Build the documentation locally.
skip_install = true
deps = -r{toxinidir}/docs/requirements.txt
commands = sphinx-build {posargs:-E} -b html docs dist/docs
[testenv:check] [testenv:check]
description = Run all the check environments. description = Run all the check environments.
skip_install = true skip_install = true
commands = tox -e setup,safety,style,docs,spell,link commands = tox -e setup,safety,style,docs
[testenv:dcheck] [testenv:dcheck]
description = Run all the check environments in parallel. description = Run all the check environments in parallel.
skip_install = true skip_install = true
deps = detox deps = detox
commands = detox -e setup,safety,style,docs,spell,link commands = detox -e setup,safety,style,docs
[testenv:setup] [testenv:setup]
description = Check that the package will be correctly installed and correctly rendered on PyPI. description = Check that the package will be correctly installed and correctly rendered on PyPI.
skip_install = true skip_install = true
deps = deps =
docutils docutils
check-manifest check-manifest
readme-renderer readme-renderer
pygments pygments
commands = commands =
python setup.py check --strict --metadata --restructuredtext python setup.py check --strict --metadata --restructuredtext
check-manifest {toxinidir} check-manifest {toxinidir}
[testenv:safety] [testenv:safety]
description = Check that the requirements versions do not have security vulnerabilities. description = Check that the requirements versions do not have security vulnerabilities.
skip_install = true skip_install = true
deps = deps =
bandit bandit
safety safety
commands = commands =
safety check -r {toxinidir}/requirements/base.txt safety check -r {toxinidir}/requirements/base.txt
bandit -r {toxinidir}/src/hope bandit -r {toxinidir}/src/hope
[testenv:style] [testenv:style]
description = Check the code style. description = Check the code style.
deps = deps =
isort isort
prospector[with_everything] prospector[with_everything]
commands = commands =
isort --diff --recursive src/hope tests setup.py isort --diff --recursive src/hope tests setup.py
prospector {toxinidir} prospector {toxinidir}
[testenv:spell] [testenv:docs]
description = Check the spelling in the documentation. description = Build the documentation locally.
skip_install = true skip_install = true
setenv = SPELLCHECK=1 setenv = SPELLCHECK=1
deps = deps =
-r{toxinidir}/docs/requirements.txt -r{toxinidir}/docs/requirements.txt
sphinxcontrib-spelling sphinxcontrib-spelling
pyenchant pyenchant
commands = commands =
- sphinx-build {posargs:-E} -Q -b html docs dist/docs sphinx-build {posargs:-E} -b html docs dist/docs
sphinx-build -b spelling -w /dev/null docs dist/docs sphinx-build -b spelling -w /dev/null docs dist/docs
[testenv:link]
description = Check that the links written in documentation are valid.
skip_install = true
deps = -r{toxinidir}/docs/requirements.txt
commands =
- sphinx-build {posargs:-E} -Q -b html docs dist/docs
sphinx-build -b linkcheck -w /dev/null docs dist/docs sphinx-build -b linkcheck -w /dev/null docs dist/docs
[testenv:report] [testenv:report]
description = Create coverage report. description = Create coverage report.
deps = coverage deps = coverage
skip_install = true skip_install = true
commands = commands =
coverage combine --append coverage combine --append
coverage report coverage report
coverage html coverage html
...@@ -150,11 +137,11 @@ deps = coverage ...@@ -150,11 +137,11 @@ deps = coverage
[testenv:codacy] [testenv:codacy]
description = Upload coverage report to codacy. description = Upload coverage report to codacy.
deps = deps =
codacy-coverage codacy-coverage
coverage coverage
skip_install = true skip_install = true
commands = commands =
coverage combine --append coverage combine --append
coverage report coverage report
coverage xml --ignore-errors coverage xml --ignore-errors
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment