c2cwsgiutils 6.2.0.dev65__py3-none-any.whl → 6.2.0.dev66__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- c2cwsgiutils/acceptance/package-lock.json +4 -4
- c2cwsgiutils/acceptance/package.json +1 -1
- c2cwsgiutils/auth.py +8 -8
- c2cwsgiutils/broadcast/redis.py +1 -1
- c2cwsgiutils/coverage_setup.py +1 -1
- c2cwsgiutils/debug/_views.py +1 -1
- c2cwsgiutils/health_check.py +3 -3
- {c2cwsgiutils-6.2.0.dev65.dist-info → c2cwsgiutils-6.2.0.dev66.dist-info}/METADATA +1 -1
- {c2cwsgiutils-6.2.0.dev65.dist-info → c2cwsgiutils-6.2.0.dev66.dist-info}/RECORD +12 -12
- {c2cwsgiutils-6.2.0.dev65.dist-info → c2cwsgiutils-6.2.0.dev66.dist-info}/LICENSE +0 -0
- {c2cwsgiutils-6.2.0.dev65.dist-info → c2cwsgiutils-6.2.0.dev66.dist-info}/WHEEL +0 -0
- {c2cwsgiutils-6.2.0.dev65.dist-info → c2cwsgiutils-6.2.0.dev66.dist-info}/entry_points.txt +0 -0
@@ -5,7 +5,7 @@
|
|
5
5
|
"packages": {
|
6
6
|
"": {
|
7
7
|
"dependencies": {
|
8
|
-
"commander": "13.
|
8
|
+
"commander": "13.1.0",
|
9
9
|
"puppeteer": "24.1.1"
|
10
10
|
}
|
11
11
|
},
|
@@ -318,9 +318,9 @@
|
|
318
318
|
"license": "MIT"
|
319
319
|
},
|
320
320
|
"node_modules/commander": {
|
321
|
-
"version": "13.
|
322
|
-
"resolved": "https://registry.npmjs.org/commander/-/commander-13.
|
323
|
-
"integrity": "sha512
|
321
|
+
"version": "13.1.0",
|
322
|
+
"resolved": "https://registry.npmjs.org/commander/-/commander-13.1.0.tgz",
|
323
|
+
"integrity": "sha512-/rFeCpNJQbhSZjGVwO9RFV3xPqbnERS8MmIQzCtD/zl6gpJuV/bMLuN92oG3F7d8oDEHHRrujSXNUr8fpjntKw==",
|
324
324
|
"license": "MIT",
|
325
325
|
"engines": {
|
326
326
|
"node": ">=18"
|
c2cwsgiutils/auth.py
CHANGED
@@ -12,32 +12,32 @@ from requests_oauthlib import OAuth2Session
|
|
12
12
|
from c2cwsgiutils.config_utils import config_bool, env_or_config, env_or_settings
|
13
13
|
|
14
14
|
_COOKIE_AGE = 7 * 24 * 3600
|
15
|
-
SECRET_PROP = "c2c.secret" # noqa: S105
|
16
|
-
SECRET_ENV = "C2C_SECRET" # noqa: S105
|
15
|
+
SECRET_PROP = "c2c.secret" # noqa: S105, secret # nosec
|
16
|
+
SECRET_ENV = "C2C_SECRET" # noqa: S105, secret # nosec
|
17
17
|
_GITHUB_REPOSITORY_PROP = "c2c.auth.github.repository"
|
18
18
|
_GITHUB_REPOSITORY_ENV = "C2C_AUTH_GITHUB_REPOSITORY"
|
19
19
|
_GITHUB_ACCESS_TYPE_PROP = "c2c.auth.github.access_type"
|
20
20
|
_GITHUB_ACCESS_TYPE_ENV = "C2C_AUTH_GITHUB_ACCESS_TYPE"
|
21
21
|
GITHUB_AUTH_URL_PROP = "c2c.auth.github.auth_url"
|
22
22
|
GITHUB_AUTH_URL_ENV = "C2C_AUTH_GITHUB_AUTH_URL"
|
23
|
-
GITHUB_TOKEN_URL_PROP = "c2c.auth.github.token_url" # noqa: S105
|
24
|
-
GITHUB_TOKEN_URL_ENV = "C2C_AUTH_GITHUB_TOKEN_URL" # noqa: S105
|
23
|
+
GITHUB_TOKEN_URL_PROP = "c2c.auth.github.token_url" # noqa: S105, secret # nosec
|
24
|
+
GITHUB_TOKEN_URL_ENV = "C2C_AUTH_GITHUB_TOKEN_URL" # noqa: S105, secret # nosec
|
25
25
|
GITHUB_USER_URL_PROP = "c2c.auth.github.user_url"
|
26
26
|
GITHUB_USER_URL_ENV = "C2C_AUTH_GITHUB_USER_URL"
|
27
27
|
_GITHUB_REPO_URL_PROP = "c2c.auth.github.repo_url"
|
28
28
|
_GITHUB_REPO_URL_ENV = "C2C_AUTH_GITHUB_REPO_URL"
|
29
29
|
GITHUB_CLIENT_ID_PROP = "c2c.auth.github.client_id"
|
30
30
|
GITHUB_CLIENT_ID_ENV = "C2C_AUTH_GITHUB_CLIENT_ID"
|
31
|
-
GITHUB_CLIENT_SECRET_PROP = "c2c.auth.github.client_secret" # noqa: S105
|
32
|
-
GITHUB_CLIENT_SECRET_ENV = "C2C_AUTH_GITHUB_CLIENT_SECRET" # noqa: S105
|
31
|
+
GITHUB_CLIENT_SECRET_PROP = "c2c.auth.github.client_secret" # noqa: S105, secret # nosec
|
32
|
+
GITHUB_CLIENT_SECRET_ENV = "C2C_AUTH_GITHUB_CLIENT_SECRET" # noqa: S105, secret # nosec
|
33
33
|
GITHUB_SCOPE_PROP = "c2c.auth.github.scope"
|
34
34
|
GITHUB_SCOPE_ENV = "C2C_AUTH_GITHUB_SCOPE"
|
35
35
|
# To be able to use private repository
|
36
36
|
GITHUB_SCOPE_DEFAULT = "repo"
|
37
37
|
GITHUB_AUTH_COOKIE_PROP = "c2c.auth.github.auth.cookie"
|
38
38
|
GITHUB_AUTH_COOKIE_ENV = "C2C_AUTH_GITHUB_COOKIE"
|
39
|
-
GITHUB_AUTH_SECRET_PROP = "c2c.auth.github.auth.secret" # noqa: S105
|
40
|
-
GITHUB_AUTH_SECRET_ENV = "C2C_AUTH_GITHUB_SECRET" # noqa: S105
|
39
|
+
GITHUB_AUTH_SECRET_PROP = "c2c.auth.github.auth.secret" # noqa: S105, secret # nosec
|
40
|
+
GITHUB_AUTH_SECRET_ENV = "C2C_AUTH_GITHUB_SECRET" # noqa: S105, secret # nosec
|
41
41
|
GITHUB_AUTH_PROXY_URL_PROP = "c2c.auth.github.auth.proxy_url"
|
42
42
|
GITHUB_AUTH_PROXY_URL_ENV = "C2C_AUTH_GITHUB_PROXY_URL"
|
43
43
|
USE_SESSION_PROP = "c2c.use_session"
|
c2cwsgiutils/broadcast/redis.py
CHANGED
@@ -90,7 +90,7 @@ class RedisBroadcaster(interface.BaseBroadcaster):
|
|
90
90
|
cond.notify()
|
91
91
|
|
92
92
|
answer_channel = self._get_channel(channel) + "".join(
|
93
|
-
random.choice(string.ascii_uppercase + string.digits) # noqa: S311
|
93
|
+
random.choice(string.ascii_uppercase + string.digits) # noqa: S311 # nosec
|
94
94
|
for _ in range(10)
|
95
95
|
)
|
96
96
|
_LOG.debug("Subscribing for broadcast answers on %s", answer_channel)
|
c2cwsgiutils/coverage_setup.py
CHANGED
@@ -22,7 +22,7 @@ def includeme(config: Optional[pyramid.config.Configurator] = None) -> None:
|
|
22
22
|
import coverage # pylint: disable=import-outside-toplevel
|
23
23
|
|
24
24
|
_LOG.warning("Setting up code coverage")
|
25
|
-
report_dir = "/tmp/coverage/api" # noqa: S108
|
25
|
+
report_dir = "/tmp/coverage/api" # noqa: S108 # nosec
|
26
26
|
os.makedirs(report_dir, exist_ok=True)
|
27
27
|
cov = coverage.Coverage(
|
28
28
|
data_file=os.path.join(report_dir, "coverage"),
|
c2cwsgiutils/debug/_views.py
CHANGED
@@ -192,7 +192,7 @@ def _show_refs(request: pyramid.request.Request) -> pyramid.response.Response:
|
|
192
192
|
if "analyze_type" in request.params:
|
193
193
|
objs = objgraph.by_type(request.params["analyze_type"])
|
194
194
|
elif "analyze_id" in request.params:
|
195
|
-
objs = [objgraph.by(int(request.params["analyze_id"]))]
|
195
|
+
objs = [objgraph.by(int(request.params["analyze_id"]))] # pylint: disable=no-member
|
196
196
|
|
197
197
|
args: dict[str, Any] = {
|
198
198
|
"refcounts": True,
|
c2cwsgiutils/health_check.py
CHANGED
@@ -299,7 +299,7 @@ class HealthCheck:
|
|
299
299
|
):
|
300
300
|
result = binded_session.execute(
|
301
301
|
sqlalchemy.text(
|
302
|
-
"SELECT version_num FROM " # noqa: S608
|
302
|
+
"SELECT version_num FROM " # noqa: S608 # nosec
|
303
303
|
f"{sqlalchemy.sql.quoted_name(version_schema, True)}."
|
304
304
|
f"{sqlalchemy.sql.quoted_name(version_table, True)}"
|
305
305
|
)
|
@@ -493,8 +493,8 @@ class HealthCheck:
|
|
493
493
|
_PROMETHEUS_HEALTH_CHECKS_FAILURE.labels(name=name).set(1)
|
494
494
|
_LOG.warning("Health check %s failed", name, exc_info=True)
|
495
495
|
failure = {"message": str(e), "timing": time.perf_counter() - start, "level": level}
|
496
|
-
if isinstance(e, JsonCheckException) and e.json_data() is not None:
|
497
|
-
failure["result"] = e.json_data()
|
496
|
+
if isinstance(e, JsonCheckException) and e.json_data() is not None: # pylint: disable=no-member
|
497
|
+
failure["result"] = e.json_data() # pylint: disable=no-member
|
498
498
|
if is_auth or os.environ.get("DEVELOPMENT", "0") != "0":
|
499
499
|
failure["stacktrace"] = traceback.format_exc()
|
500
500
|
results["failures"][name] = failure
|
@@ -2,28 +2,28 @@ c2cwsgiutils/__init__.py,sha256=HVSc-4O8i2aB0ozEI4AI8Xsb-4S6fAwhl8uRhv-DsFg,4057
|
|
2
2
|
c2cwsgiutils/acceptance/__init__.py,sha256=5PeqPHxAPMRbZpKk1XlC9RCyotegSsKVfPxADYAgG7w,1502
|
3
3
|
c2cwsgiutils/acceptance/connection.py,sha256=A83v335e4s-_cePe-bqRcEHHTOdgguetzdAtVp19-Zk,9834
|
4
4
|
c2cwsgiutils/acceptance/image.py,sha256=zKouNqU424rkWW43-NwIEVeXIXaqZxSwe04NSE-3174,9290
|
5
|
-
c2cwsgiutils/acceptance/package-lock.json,sha256=
|
6
|
-
c2cwsgiutils/acceptance/package.json,sha256=
|
5
|
+
c2cwsgiutils/acceptance/package-lock.json,sha256=htNAsPGRVu8mHtsZ0FRtJnB7lgLLuV9n61yTCNRIZIA,42615
|
6
|
+
c2cwsgiutils/acceptance/package.json,sha256=ClHsOOzzwKrN7PL-7bcfIGiojA3MNBrk6fP_62soCuw,101
|
7
7
|
c2cwsgiutils/acceptance/print.py,sha256=DOPDHUP9wfM75qiPYhFI1P3awQKIBH-edO_TmhCjT8k,2568
|
8
8
|
c2cwsgiutils/acceptance/screenshot.js,sha256=FAJYIWOLJFMm0MNggKzo3mIybtN-VtKLdMzPhQ9pO1g,2041
|
9
9
|
c2cwsgiutils/acceptance/utils.py,sha256=beq_pGJCMBRMmzLERw7z79vc9KtX5gY-g37WiUHa4q8,1901
|
10
|
-
c2cwsgiutils/auth.py,sha256=
|
10
|
+
c2cwsgiutils/auth.py,sha256=Ct-EbyBLm75yDUL4FdiYteuUb1zjqLP_7N61scm25pE,9710
|
11
11
|
c2cwsgiutils/broadcast/__init__.py,sha256=9vhFSNUwMqNp73D3LXnQJeLOYB49VUU4KwIoOvDaS3o,4484
|
12
12
|
c2cwsgiutils/broadcast/interface.py,sha256=AkDT_m0eXTQp3mmMLf9KRtpXnWoVhJpb_UNjCbHM-3I,665
|
13
13
|
c2cwsgiutils/broadcast/local.py,sha256=BZ0iDmU81W8C3Xzs9Dz9jRdTO-WXXvA_7Z5xV6RWoNA,1317
|
14
|
-
c2cwsgiutils/broadcast/redis.py,sha256=
|
14
|
+
c2cwsgiutils/broadcast/redis.py,sha256=B31HvuwRb3ty2JBJBm-_eAJc-6IXxYCBW-BIuDulByY,5386
|
15
15
|
c2cwsgiutils/broadcast/utils.py,sha256=0fQZXPu3p_5LEJpGenJwiiMxECQjJhjZBjIkBk8h-ng,272
|
16
16
|
c2cwsgiutils/client_info.py,sha256=MIlD88JJ-IL3GwhJsMB73IbsWcglMkdnCyOgDEQG8ns,4004
|
17
17
|
c2cwsgiutils/config_utils.py,sha256=vkBu-3GQsE94NOBOvT5FE-Ij29EUrKnDsmdUdtu_yzo,1524
|
18
|
-
c2cwsgiutils/coverage_setup.py,sha256=
|
18
|
+
c2cwsgiutils/coverage_setup.py,sha256=nQkMiynQQ7M400q-tw8HtRutQy_Y8r5U-FwnC3AwEmM,936
|
19
19
|
c2cwsgiutils/db.py,sha256=YvJKo1cXhKcjYwRpUkQbx70YOnOgsYJ5wID5rkLhF6g,16262
|
20
20
|
c2cwsgiutils/db_maintenance_view.py,sha256=1y_sfjnHsvl98yzTM24rqmchqGIXDp61KTwraXJZM0s,3102
|
21
21
|
c2cwsgiutils/debug/__init__.py,sha256=a2RytL9_DgqiJzc5CCdKd1yF2sSk6SCIVh1gUrWVq1o,1364
|
22
22
|
c2cwsgiutils/debug/_listeners.py,sha256=-fk3KFeB_E4m_YFXJ5MfxuqfA1sWCje9p3FH_93WfXM,4248
|
23
|
-
c2cwsgiutils/debug/_views.py,sha256=
|
23
|
+
c2cwsgiutils/debug/_views.py,sha256=xwXyuQzwvzX3MjMwbPFVwzbtKUTjcemCMe7DyXQMNpY,8547
|
24
24
|
c2cwsgiutils/debug/utils.py,sha256=sIKZHQ8empzxE2OI3h7Uce8cvv4O7AD1y_VYeZfLVCA,2320
|
25
25
|
c2cwsgiutils/errors.py,sha256=miNVnEX9qBtwaRnny_k9IcBbbw-8vC3unFumi2w5Q9w,6679
|
26
|
-
c2cwsgiutils/health_check.py,sha256=
|
26
|
+
c2cwsgiutils/health_check.py,sha256=GqnnhW2Zb-EBoTqcYTZK1uGzBzZ7U2ILO-q5DBPqqfI,20207
|
27
27
|
c2cwsgiutils/index.py,sha256=ag7A8HJ9MgU72etDBuFMaci-xKjOD9R8OOm3UMEoQJY,18002
|
28
28
|
c2cwsgiutils/loader.py,sha256=VbvENJZgl3Mmkysx-BODSl_Qh3LtQrz51pZ1F_A50Rk,1400
|
29
29
|
c2cwsgiutils/logging_view.py,sha256=wa2hCjGKkpRwrCA4K6Zk1Z3hPGUMB6SJAnki-_lLY00,3384
|
@@ -60,8 +60,8 @@ c2cwsgiutils/stats_pyramid/_db_spy.py,sha256=A61t6VKIrRRIjbyZTldmAUl_Q3ZDVFYqyxj
|
|
60
60
|
c2cwsgiutils/stats_pyramid/_pyramid_spy.py,sha256=GnJRlLSAPl4PwQH5jfmc2OX5Hz9MSRRVJT2VcqkniVE,3518
|
61
61
|
c2cwsgiutils/templates/index.html.mako,sha256=cK8qGBDeQG5SiJJCfvL0oKpgacr7dPKx634AAQivmjA,1416
|
62
62
|
c2cwsgiutils/version.py,sha256=7H3URblj26Ql0bL3eXtP0LSRBeW4HbEsQ8O_BfWNr90,3124
|
63
|
-
c2cwsgiutils-6.2.0.
|
64
|
-
c2cwsgiutils-6.2.0.
|
65
|
-
c2cwsgiutils-6.2.0.
|
66
|
-
c2cwsgiutils-6.2.0.
|
67
|
-
c2cwsgiutils-6.2.0.
|
63
|
+
c2cwsgiutils-6.2.0.dev66.dist-info/LICENSE,sha256=6bEOU0n7ued3SA-DQCsHQaACONMMRzGHmH5XhDVeD-U,1304
|
64
|
+
c2cwsgiutils-6.2.0.dev66.dist-info/METADATA,sha256=T7v4aQiEqV6wibiYsZklUFLwYsv3mBiXAn9JjbbDzEo,36359
|
65
|
+
c2cwsgiutils-6.2.0.dev66.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
|
66
|
+
c2cwsgiutils-6.2.0.dev66.dist-info/entry_points.txt,sha256=ujgqMTL1awN9qDg8WXmrF7m0fgR-hslUM6zKH86pvy0,703
|
67
|
+
c2cwsgiutils-6.2.0.dev66.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|