GeezerVison is showing github.com — chore: correctly render rst · python-gitlab/python-gitlab@f674bf2
File treeExpand file treeCollapse file tree Open diff view settings Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: .travis.yml +8Lines changed: 8 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 83 | 83 | script: | 84 | 84 | - pip3 install tox | 85 | 85 | - tox -e py38 | | 86 | + - stage: test | | 87 | + dist: bionic | | 88 | + name: twine-check | | 89 | + python: 3.8 | | 90 | + script: | | 91 | + - pip3 install tox wheel | | 92 | + - python3 setup.py sdist bdist_wheel | | 93 | + - tox -e twine-check | 86 | 94 | - stage: test | 87 | 95 | dist: bionic | 88 | 96 | name: coverage | |
Collapse file Copy file name to clipboardExpand all lines: README.rst +3-2Lines changed: 3 additions & 2 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -130,8 +130,9 @@ passing tests are mandatory to get merge requests accepted. | 130 | 130 |
| 131 | 131 | We're currently in a restructing phase for the unit tests. If you're changing existing | 132 | 132 | tests, feel free to keep the current format. Otherwise please write new tests with pytest and | 133 | | -using `responses<https://github.com/getsentry/responses>`_. An example for new tests can be found in | 134 | | -tests/objects/test_runner.py | | 133 | +using `responses | | 134 | +<https://github.com/getsentry/responses/>`_. | | 135 | +An example for new tests can be found in tests/objects/test_runner.py | 135 | 136 |
| 136 | 137 | You need to install ``tox`` to run unit tests and documentation builds locally: | 137 | 138 |
| |
Collapse file Copy file name to clipboardExpand all lines: setup.py +1Lines changed: 1 addition & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -20,6 +20,7 @@ def get_version(): | 20 | 20 | version=get_version(), | 21 | 21 | description="Interact with GitLab API", | 22 | 22 | long_description=readme, | | 23 | + long_description_content_type="text/x-rst", | 23 | 24 | author="Gauvain Pocentek", | 24 | 25 | | 25 | 26 | license="LGPLv3", | |
Collapse file Copy file name to clipboardExpand all lines: tox.ini +9-1Lines changed: 9 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 1 | 1 | [tox] | 2 | 2 | minversion = 1.6 | 3 | 3 | skipsdist = True | 4 | | -envlist = py38,py37,py36,pep8,black | | 4 | +envlist = py38,py37,py36,pep8,black,twine-check | 5 | 5 |
| 6 | 6 | [testenv] | 7 | 7 | passenv = GITLAB_IMAGE GITLAB_TAG | @@ -27,6 +27,14 @@ deps = -r{toxinidir}/requirements.txt | 27 | 27 | commands = | 28 | 28 | black {posargs} gitlab tools/functional | 29 | 29 |
| | 30 | +[testenv:twine-check] | | 31 | +basepython = python3 | | 32 | +deps = -r{toxinidir}/requirements.txt | | 33 | + -r{toxinidir}/test-requirements.txt | | 34 | + twine | | 35 | +commands = | | 36 | + twine check dist/* | | 37 | + | 30 | 38 | [testenv:venv] | 31 | 39 | commands = {posargs} | 32 | 40 |
| |
|