Commit 79dbee85 authored by Timothée Mazzucotelli's avatar Timothée Mazzucotelli

Merge branch '1-update-links-and-references' into 'master'

Resolve "Update links and references" (#1)

See merge request !1
parents 1563fbf3 c8c0f5bc
Pipeline #1578 passed with stages
in 12 minutes and 48 seconds
stages:
- lint
- test
- build
- deploy
py27-django18:
image: python:2.7
stage: test
before_script:
- pip install tox
script: tox -e py27-django18
py34-django18:
image: python:3.4
stage: test
before_script:
- pip install tox
script: tox -e py34-django18
py35-django18:
image: python:3.5
stage: test
before_script:
- pip install tox
script: tox -e py35-django18
py36-django18:
image: python:3.6
stage: test
before_script:
- pip install tox
script: tox -e py36-django18
py37-django18:
image: python:3.7-rc-stretch
stage: test
before_script:
- pip install tox
script: tox -e py37-dev-django18
py27-django19:
image: python:2.7
stage: test
before_script:
- pip install tox
script: tox -e py27-django19
py34-django19:
image: python:3.4
stage: test
before_script:
- pip install tox
script: tox -e py34-django19
py35-django19:
image: python:3.5
stage: test
before_script:
- pip install tox
script: tox -e py35-django19
py36-django19:
image: python:3.6
stage: test
before_script:
- pip install tox
script: tox -e py36-django19
py37-django19:
image: python:3.7-rc-stretch
stage: test
before_script:
- pip install tox
script: tox -e py37-dev-django19
py27-django110:
image: python:2.7
stage: test
before_script:
- pip install tox
script: tox -e py27-django110
py34-django110:
image: python:3.4
stage: test
before_script:
- pip install tox
script: tox -e py34-django110
py35-django110:
image: python:3.5
stage: test
before_script:
- pip install tox
script: tox -e py35-django110
py36-django110:
image: python:3.6
stage: test
before_script:
- pip install tox
script: tox -e py36-django110
py37-django110:
image: python:3.7-rc-stretch
stage: test
before_script:
- pip install tox
script: tox -e py37-dev-django110
py27-django111:
image: python:2.7
stage: test
before_script:
- pip install tox
script: tox -e py27-django111
py34-django111:
image: python:3.4
stage: test
before_script:
- pip install tox
script: tox -e py34-django111
py35-django111:
image: python:3.5
stage: test
before_script:
- pip install tox
script: tox -e py35-django111
py36-django111:
image: python:3.6
stage: test
before_script:
- pip install tox
script: tox -e py36-django111
py37-django111:
image: python:3.7-rc-stretch
stage: test
before_script:
- pip install tox
script: tox -e py37-dev-django111
safety:
stage: lint
before_script:
- pip install tox
script: tox -e safety
allow_failure: true
style:
stage: lint
before_script:
- pip install tox
script: tox -e style
allow_failure: true
docs:
stage: lint
before_script:
- pip install tox
script: tox -e docs
allow_failure: true
build:
image: docker:latest
services:
- docker:dind
stage: build
script: echo "Build Docker images"
deploy_staging:
stage: deploy
script:
- echo "Deploy to staging server"
environment:
name: staging
url: https://staging.example.com
only:
- master
deploy_prod:
stage: deploy
script:
- echo "Deploy to production server"
environment:
name: production
url: https://example.com
when: manual
only:
- master
......@@ -44,4 +44,4 @@ pyroma:
disable: [PYR19, PYR16, PYR15]
run: true
vulture:
run: true
run: false # bugged
......@@ -8,7 +8,7 @@ little bit helps, and credit will always be given.
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.
* Any details about your local setup that might be helpful in troubleshooting.
......@@ -24,7 +24,7 @@ articles, and such.
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:
......@@ -37,7 +37,7 @@ 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).
2. Clone your fork locally::
......@@ -75,9 +75,6 @@ For merging, you should:
.. [1] If you don't have all the necessary python versions available locally you can rely on...
- **Travis**: it will `run the tests <https://travis-ci.org/Pawamoy/django-hope/pull_requests>`_ for each change you add in the pull request.
It will be slower though...
- **pyenv**:
.. code:: bash
......
......@@ -56,8 +56,8 @@ version = release = u'0.1.0'
pygments_style = 'trac'
templates_path = ['.']
extlinks = {
'issue': ('https://github.com/Pawamoy/django-hope/issues/%s', '#'),
'pr': ('https://github.com/Pawamoy/django-hope/pull/%s', 'PR #'),
'issue': ('https://icube-forge.unistra.fr/CSTB/django-hope/issues/%s', '#'),
'pr': ('https://icube-forge.unistra.fr/CSTB/django-hope/pull/%s', 'PR #'),
}
# on_rtd is whether we are on readthedocs.org
......
......@@ -36,9 +36,9 @@ setup(
.sub('', read('README.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',
url='https://github.com/Pawamoy/django-hope',
url='https://icube-forge.unistra.fr/CSTB/django-hope',
packages=find_packages('src'),
package_dir={'': 'src'},
py_modules=[splitext(basename(path))[0] for path in glob('src/*.py')],
......
# -*- coding: utf-8 -*-
u"""Django HOPE package."""
"""Django HOPE package."""
[tox]
envlist =
clean,setup,safety,style,spell,link,docs,
clean,setup,safety,style,docs,
py27-django18,
py27-django19,
py27-django110,
......@@ -62,25 +62,19 @@ description = Run all the environments in parallel.
skip_install = true
deps = detox
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
[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]
description = Run all the check environments.
skip_install = true
commands = tox -e setup,safety,style,docs,spell,link
commands = tox -e setup,safety,style,docs
[testenv:dcheck]
description = Run all the check environments in parallel.
skip_install = true
deps = detox
commands = detox -e setup,safety,style,docs,spell,link
commands = detox -e setup,safety,style,docs
[testenv:setup]
description = Check that the package will be correctly installed and correctly rendered on PyPI.
......@@ -113,8 +107,8 @@ commands =
isort --diff --recursive src/hope tests setup.py
prospector {toxinidir}
[testenv:spell]
description = Check the spelling in the documentation.
[testenv:docs]
description = Build the documentation locally.
skip_install = true
setenv = SPELLCHECK=1
deps =
......@@ -122,15 +116,8 @@ deps =
sphinxcontrib-spelling
pyenchant
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
[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
[testenv:report]
......
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