Skip to content
Snippets Groups Projects
Commit f1e7c221 authored by David Douard's avatar David Douard
Browse files

Apply swh-py-template v0.2.0

parent 80fdbbf5
No related branches found
No related tags found
1 merge request!61Apply swh-py-template v0.2.0
Pipeline #8100 passed
# Changes here will be overwritten by Copier
_commit: v0.1.6
_commit: v0.2.0
_src_path: https://gitlab.softwareheritage.org/swh/devel/swh-py-template.git
description: Software Heritage authentication utilities
distribution_name: swh-auth
......
......@@ -41,4 +41,13 @@ repos:
pass_filenames: false
language: system
types: [python]
- id: twine-check
name: twine check
description: call twine check when pushing an annotated release tag
entry: bash -c "ref=$(git describe) &&
[[ $ref =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]] &&
(python3 -m build --sdist && twine check $(ls -t dist/* | head -1)) || true"
pass_filenames: false
stages: [pre-push]
language: python
additional_dependencies: [twine, build]
......@@ -2,5 +2,5 @@
addopts = -p no:flask
norecursedirs = build docs .*
asyncio_mode = strict
DJANGO_SETTINGS_MODULE = swh.auth.tests.django.app.apptest.settings
consider_namespace_packages = true
DJANGO_SETTINGS_MODULE = swh.auth.tests.django.app.apptest.settings
......@@ -7,7 +7,7 @@ envlist =
py3
[testenv]
use_develop = true
usedevelop = true
extras =
testing
django
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment