Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cubicweb
cubes
s3storage
Commits
d7b86262270a
Commit
84c4e155
authored
Aug 18, 2021
by
Arthur Lutz
Browse files
chore(gitlab-ci): use templates and tox similar to other projects
parent
2d7490cb5c4f
Pipeline
#76549
passed with stages
in 4 minutes and 45 seconds
Changes
5
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
d7b86262
...
...
@@ -10,7 +10,6 @@ include:
-
"
templates/lint/flake8.yml"
# will do the equivalent of 'tox -e flake8'
-
"
templates/lint/check-manifest.yml"
# will do the equivalent of 'tox -e check-manifest'
-
"
templates/lint/yamllint.yml"
# will do the equivalent of 'tox -e yamllint'
-
"
templates/tests/py27.yml"
# will do the equivalent of 'tox -e py27'
-
"
templates/tests/py3.yml"
# will do the equivalent of 'tox -e py3'
-
"
templates/create-release-on-heptapod.yml"
# this will create a release on heptapod
-
"
templates/upload-to-pypi.yml"
# on a new mercurial tag (expected to be done with release-new), will push a release on pypi
...
...
MANIFEST.in
View file @
d7b86262
...
...
@@ -6,6 +6,8 @@ recursive-include cubicweb_s3storage/i18n *.po
recursive-include cubicweb_s3storage/wdoc *
recursive-include test/data bootstrap_cubes *.py
include tox.ini
include dev-requirements.txt
recursive-include debian changelog compat control copyright rules
include cubicweb-s3storage.spec
exclude .gitlab-ci.yml
exclude .yamllint
...
...
cubicweb_s3storage/site_cubicweb.py
View file @
d7b86262
...
...
@@ -16,7 +16,7 @@ options = (
'help'
:
'Add a temporary suffix to S3 keys during transaction'
,
'group'
:
's3'
,
'level'
:
2
}),
)
)
class
STKEY
(
FunctionDescr
):
...
...
dev-requirements.txt
0 → 100644
View file @
d7b86262
git+https://github.com/psycojoker/pytest-capture-deprecatedwarnings
mock
moto
tox.ini
View file @
d7b86262
[tox]
envlist
=
py27,
py3,flake8,check-manifest,yamllint
envlist
=
py3,flake8,check-manifest,yamllint
[testenv]
deps
=
pytest
boto3
moto
py27:
cubicweb<3.27
git+https://github.com/psycojoker/pytest-capture-deprecatedwarnings
-rdev-requirements.txt
commands
=
{envpython}
-m
pytest
{posargs:test}
{envpython}
-m
pytest
{posargs:-vvx}
[pytest]
python_files
=
*test_*.py
testpaths
=
test
addopts
=
-r fEs
[testenv:check-manifest]
skip_install
=
true
...
...
@@ -20,15 +22,16 @@ commands =
{envpython}
-m
check_manifest
[testenv:flake8]
basepython
=
python3
skip_install
=
true
whitelist_externals
=
flake8
deps
=
flake8
commands
=
flake8
commands
=
{envpython} -m flake8 {toxinidir} {posargs}
[flake8]
exclude
=
cubicweb_s3storage/migration/*,test/data/*,.tox/*
max-line-length
=
100
ignore
=
E731,W503
exclude
=
cubicweb_s3storage/__pkginfo__.py,cubicweb_s3storage/migration/*,test/data/*,.tox/*
[testenv:pypi-publish]
basepython
=
python3
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment