Commit 39737742 authored by Noé Gaumont's avatar Noé Gaumont 🐙

fix(black): tox -e black-run

parent 530eaa3f7a1a
Pipeline #25495 passed with stage
in 59 seconds
......@@ -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",
]
......@@ -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,
......
......@@ -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()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment