Skip to content

Commit

Permalink
Merge pull request #1112 from python-gitlab/fix/rst-renderer
Browse files Browse the repository at this point in the history
chore: correctly render rst
  • Loading branch information
max-wittig committed Jun 8, 2020
2 parents a16ff3f + f674bf2 commit 1f7dbc8
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 3 deletions.
8 changes: 8 additions & 0 deletions .travis.yml
Expand Up @@ -83,6 +83,14 @@ jobs:
script:
- pip3 install tox
- tox -e py38
- stage: test
dist: bionic
name: twine-check
python: 3.8
script:
- pip3 install tox wheel
- python3 setup.py sdist bdist_wheel
- tox -e twine-check
- stage: test
dist: bionic
name: coverage
Expand Down
5 changes: 3 additions & 2 deletions README.rst
Expand Up @@ -130,8 +130,9 @@ passing tests are mandatory to get merge requests accepted.

We're currently in a restructing phase for the unit tests. If you're changing existing
tests, feel free to keep the current format. Otherwise please write new tests with pytest and
using `responses<https://github.com/getsentry/responses>`_. An example for new tests can be found in
tests/objects/test_runner.py
using `responses
<https://github.com/getsentry/responses/>`_.
An example for new tests can be found in tests/objects/test_runner.py

You need to install ``tox`` to run unit tests and documentation builds locally:

Expand Down
1 change: 1 addition & 0 deletions setup.py
Expand Up @@ -20,6 +20,7 @@ def get_version():
version=get_version(),
description="Interact with GitLab API",
long_description=readme,
long_description_content_type="text/x-rst",
author="Gauvain Pocentek",
author_email="gauvain@pocentek.net",
license="LGPLv3",
Expand Down
10 changes: 9 additions & 1 deletion tox.ini
@@ -1,7 +1,7 @@
[tox]
minversion = 1.6
skipsdist = True
envlist = py38,py37,py36,pep8,black
envlist = py38,py37,py36,pep8,black,twine-check

[testenv]
passenv = GITLAB_IMAGE GITLAB_TAG
Expand All @@ -27,6 +27,14 @@ deps = -r{toxinidir}/requirements.txt
commands =
black {posargs} gitlab tools/functional

[testenv:twine-check]
basepython = python3
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
twine
commands =
twine check dist/*

[testenv:venv]
commands = {posargs}

Expand Down

0 comments on commit 1f7dbc8

Please sign in to comment.