Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
swh-deposit
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Platform
Development
swh-deposit
Commits
503e749d
Commit
503e749d
authored
11 months ago
by
vlorentz
Browse files
Options
Downloads
Patches
Plain Diff
Apply copier template v0.2.0
parent
7882a486
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!430
Apply copier template v0.2.0
Pipeline
#7979
passed
10 months ago
Stage: external
Changes
4
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.copier-answers.yml
+1
-1
1 addition, 1 deletion
.copier-answers.yml
.pre-commit-config.yaml
+10
-1
10 additions, 1 deletion
.pre-commit-config.yaml
pytest.ini
+2
-1
2 additions, 1 deletion
pytest.ini
tox.ini
+3
-7
3 additions, 7 deletions
tox.ini
with
16 additions
and
10 deletions
.copier-answers.yml
+
1
−
1
View file @
503e749d
# 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 deposit server
distribution_name
:
swh-deposit
...
...
This diff is collapsed.
Click to expand it.
.pre-commit-config.yaml
+
10
−
1
View file @
503e749d
...
...
@@ -44,4 +44,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
]
This diff is collapsed.
Click to expand it.
pytest.ini
+
2
−
1
View file @
503e749d
[pytest]
# Remove the pytest_swh_* entries when they stop getting imported automatically
addopts
=
--import-mode=importlib
--ignore=swh/deposit/settings -p no:flask -p no:pytest_swh_scheduler -p no:pytest_swh_storage -p no:pytest_swh_core
addopts
=
--ignore=swh/deposit/settings -p no:flask -p no:pytest_swh_scheduler -p no:pytest_swh_storage -p no:pytest_swh_core
norecursedirs
=
build docs .*
asyncio_mode
=
strict
...
...
@@ -9,3 +9,4 @@ markers =
db:
execute
tests
using
a
postgresql
database
fs:
execute
tests
using
the
filesystem
consider_namespace_packages
=
true
This diff is collapsed.
Click to expand it.
tox.ini
+
3
−
7
View file @
503e749d
...
...
@@ -8,6 +8,7 @@ envlist =
py3-django3
[testenv]
usedevelop
=
true
extras
=
testing
deps
=
...
...
@@ -17,15 +18,10 @@ deps =
django3:
Django>=3,<4
commands
=
pytest
--doctest-modules
\
--rootdir
{envsitepackagesdir}
\
--cov
=
{envsitepackagesdir}/swh/deposit
\
--cov
=
swh/deposit
\
--cov-branch
\
--ignore {envsitepackagesdir}/swh/deposit/settings/
\
{envsitepackagesdir}/swh/deposit
\
swh/deposit
\
{posargs}
# --rootdir (with --import-mode from pytest.ini) are required to make tests
# that depends on the test file to be a proper submodule of the swh namespace
# after migration to PEP420 (implicit namespace).
[testenv:black]
skip_install
=
true
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment