Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cubicweb
cubes
tuto
Commits
e63b18b540c7
Commit
39737742
authored
Dec 15, 2020
by
Noé Gaumont
🐙
Browse files
fix(black): tox -e black-run
parent
530eaa3f7a1a
Pipeline
#25495
passed with stage
in 59 seconds
Changes
3
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
cubicweb_tuto/__pkginfo__.py
View file @
e63b18b5
...
...
@@ -2,24 +2,24 @@
"""cubicweb-tuto application packaging information"""
modname
=
'
cubicweb_tuto
'
distname
=
'
cubicweb-tuto
'
modname
=
"
cubicweb_tuto
"
distname
=
"
cubicweb-tuto
"
numversion
=
(
0
,
1
,
0
)
version
=
'.'
.
join
(
str
(
num
)
for
num
in
numversion
)
version
=
"."
.
join
(
str
(
num
)
for
num
in
numversion
)
license
=
'
LGPL
'
author
=
'
LOGILAB S.A. (Paris, FRANCE)
'
author_email
=
'
contact@logilab.fr
'
description
=
'
A cube for new CW tutorial
'
web
=
'
http://www.cubicweb.org/project/%s
'
%
distname
license
=
"
LGPL
"
author
=
"
LOGILAB S.A. (Paris, FRANCE)
"
author_email
=
"
contact@logilab.fr
"
description
=
"
A cube for new CW tutorial
"
web
=
"
http://www.cubicweb.org/project/%s
"
%
distname
__depends__
=
{
'
cubicweb
'
:
'
>= 3.29.0
'
}
__depends__
=
{
"
cubicweb
"
:
"
>= 3.29.0
"
}
__recommends__
=
{}
classifiers
=
[
'
Environment :: Web Environment
'
,
'
Framework :: CubicWeb
'
,
'
Programming Language :: Python :: 3
'
,
'
Programming Language :: JavaScript
'
,
"
Environment :: Web Environment
"
,
"
Framework :: CubicWeb
"
,
"
Programming Language :: Python :: 3
"
,
"
Programming Language :: JavaScript
"
,
]
setup.py
View file @
e63b18b5
...
...
@@ -31,33 +31,34 @@ here = dirname(__file__)
# load metadata from the __pkginfo__.py file so there is no risk of conflict
# see https://packaging.python.org/en/latest/single_source_version.html
pkginfo
=
join
(
here
,
'
cubicweb_tuto
'
,
'
__pkginfo__.py
'
)
pkginfo
=
join
(
here
,
"
cubicweb_tuto
"
,
"
__pkginfo__.py
"
)
__pkginfo__
=
{}
with
open
(
pkginfo
)
as
f
:
exec
(
f
.
read
(),
__pkginfo__
)
# get required metadatas
distname
=
__pkginfo__
[
'
distname
'
]
version
=
__pkginfo__
[
'
version
'
]
license
=
__pkginfo__
[
'
license
'
]
description
=
__pkginfo__
[
'
description
'
]
web
=
__pkginfo__
[
'
web
'
]
author
=
__pkginfo__
[
'
author
'
]
author_email
=
__pkginfo__
[
'
author_email
'
]
classifiers
=
__pkginfo__
[
'
classifiers
'
]
distname
=
__pkginfo__
[
"
distname
"
]
version
=
__pkginfo__
[
"
version
"
]
license
=
__pkginfo__
[
"
license
"
]
description
=
__pkginfo__
[
"
description
"
]
web
=
__pkginfo__
[
"
web
"
]
author
=
__pkginfo__
[
"
author
"
]
author_email
=
__pkginfo__
[
"
author_email
"
]
classifiers
=
__pkginfo__
[
"
classifiers
"
]
with
open
(
join
(
here
,
'
README
'
))
as
f
:
with
open
(
join
(
here
,
"
README
"
))
as
f
:
long_description
=
f
.
read
()
# get optional metadatas
data_files
=
__pkginfo__
.
get
(
'
data_files
'
,
None
)
dependency_links
=
__pkginfo__
.
get
(
'
dependency_links
'
,
())
data_files
=
__pkginfo__
.
get
(
"
data_files
"
,
None
)
dependency_links
=
__pkginfo__
.
get
(
"
dependency_links
"
,
())
requires
=
{}
for
entry
in
(
"__depends__"
,):
# "__recommends__"):
requires
.
update
(
__pkginfo__
.
get
(
entry
,
{}))
install_requires
=
[
"{0} {1}"
.
format
(
d
,
v
and
v
or
""
).
strip
()
for
d
,
v
in
requires
.
items
()]
install_requires
=
[
"{0} {1}"
.
format
(
d
,
v
and
v
or
""
).
strip
()
for
d
,
v
in
requires
.
items
()
]
setup
(
...
...
@@ -70,12 +71,12 @@ setup(
author_email
=
author_email
,
url
=
web
,
classifiers
=
classifiers
,
packages
=
find_packages
(
exclude
=
[
'
test
'
]),
packages
=
find_packages
(
exclude
=
[
"
test
"
]),
install_requires
=
install_requires
,
include_package_data
=
True
,
entry_points
=
{
'
cubicweb.cubes
'
:
[
'
tuto=cubicweb_tuto
'
,
"
cubicweb.cubes
"
:
[
"
tuto=cubicweb_tuto
"
,
],
},
zip_safe
=
False
,
...
...
test/test_tuto.py
View file @
e63b18b5
...
...
@@ -42,9 +42,10 @@ from cubicweb.devtools import testlib
class
DefaultTC
(
testlib
.
CubicWebTC
):
def
test_something
(
self
):
self
.
skipTest
(
'
this cube has no test
'
)
self
.
skipTest
(
"
this cube has no test
"
)
if
__name__
==
'
__main__
'
:
if
__name__
==
"
__main__
"
:
from
unittest
import
main
main
()
Write
Preview
Supports
Markdown
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