Skip to content

Commit

Permalink
chore: remove unused configuration (pypi#17155)
Browse files Browse the repository at this point in the history
  • Loading branch information
miketheman authored Nov 22, 2024
1 parent 8bec93b commit 630e971
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
1 change: 0 additions & 1 deletion tests/unit/test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,6 @@ def __init__(self):
"token.default.max_age": 21600,
"pythondotorg.host": "https://www.python.org",
"warehouse.xmlrpc.client.ratelimit_string": "3600 per hour",
"warehouse.xmlrpc.search.enabled": True,
"github.token_scanning_meta_api.url": (
"https://api.github.com/meta/public_keys/token_scanning"
),
Expand Down
8 changes: 0 additions & 8 deletions warehouse/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
from pyramid.config import Configurator as _Configurator
from pyramid.exceptions import HTTPForbidden
from pyramid.httpexceptions import HTTPBadRequest
from pyramid.settings import asbool
from pyramid.tweens import EXCVIEW
from pyramid_rpc.xmlrpc import XMLRPCRenderer

Expand Down Expand Up @@ -389,13 +388,6 @@ def configure(settings=None):
maybe_set(settings, "token.email.secret", "TOKEN_EMAIL_SECRET")
maybe_set(settings, "token.two_factor.secret", "TOKEN_TWO_FACTOR_SECRET")
maybe_set(settings, "token.remember_device.secret", "TOKEN_REMEMBER_DEVICE_SECRET")
maybe_set(
settings,
"warehouse.xmlrpc.search.enabled",
"WAREHOUSE_XMLRPC_SEARCH",
coercer=asbool,
default=True,
)
maybe_set_redis(settings, "warehouse.xmlrpc.cache.url", "REDIS_URL", db=4)
maybe_set(
settings,
Expand Down

0 comments on commit 630e971

Please sign in to comment.