diff --git a/cubicweb_s3storage/__pkginfo__.py b/cubicweb_s3storage/__pkginfo__.py index 7d9ee6ecb5239d5036ac96d555d00953ae8f8969_Y3ViaWN3ZWJfczNzdG9yYWdlL19fcGtnaW5mb19fLnB5..559119f5268b8f96f9f28fca15d285d2bfa3ae35_Y3ViaWN3ZWJfczNzdG9yYWdlL19fcGtnaW5mb19fLnB5 100644 --- a/cubicweb_s3storage/__pkginfo__.py +++ b/cubicweb_s3storage/__pkginfo__.py @@ -12,7 +12,7 @@ author = "LOGILAB S.A. (Paris, FRANCE)" author_email = "contact@logilab.fr" description = "A Cubicweb Storage that stores the data on S3" -web = "https://forge.extranet.logilab.fr/cubicweb/cubes/%s" % distname +web = f"https://forge.extranet.logilab.fr/cubicweb/cubes/{distname}" __depends__ = { "cubicweb": ">= 3.24.7, < 3.39.0", diff --git a/cubicweb_s3storage/storages.py b/cubicweb_s3storage/storages.py index 7d9ee6ecb5239d5036ac96d555d00953ae8f8969_Y3ViaWN3ZWJfczNzdG9yYWdlL3N0b3JhZ2VzLnB5..559119f5268b8f96f9f28fca15d285d2bfa3ae35_Y3ViaWN3ZWJfczNzdG9yYWdlL3N0b3JhZ2VzLnB5 100644 --- a/cubicweb_s3storage/storages.py +++ b/cubicweb_s3storage/storages.py @@ -202,7 +202,7 @@ """ try: rset = entity._cw.execute( - "Any stkey(D) WHERE X eid {}, X {} D".format(entity.eid, attr) + f"Any stkey(D) WHERE X eid {entity.eid}, X {attr} D" ) except NotImplementedError: # may occur when called from migrate_entity, ie. when the storage diff --git a/setup.py b/setup.py index 7d9ee6ecb5239d5036ac96d555d00953ae8f8969_c2V0dXAucHk=..559119f5268b8f96f9f28fca15d285d2bfa3ae35_c2V0dXAucHk= 100644 --- a/setup.py +++ b/setup.py @@ -56,9 +56,7 @@ requires = {} for entry in ("__depends__",): # "__recommends__"): requires.update(__pkginfo__.get(entry, {})) -install_requires = [ - "{} {}".format(d, v and v or "").strip() for d, v in requires.items() -] +install_requires = [f"{d} {v and v or ''}".strip() for d, v in requires.items()] setup(