Skip to content

Commit

Permalink
tox deprecation warnings fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mvalik committed May 30, 2023
1 parent 54d4ec7 commit 09f5e3e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 17 deletions.
15 changes: 0 additions & 15 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,21 +19,6 @@
import os
import sys

# Hot-fix broken sphinxcontrib.httpdomain
# See: https://github.com/sphinx-contrib/httpdomain/pull/54
try:
import pkg_resources

if pkg_resources.require("sphinxcontrib_httpdomain")[0].version == '1.7.0':
from sphinxcontrib import httpdomain

for typed_field in httpdomain.HTTPResource.doc_field_types:
typed_field.typerolename = None
for object_type in httpdomain.HTTPDomain.object_types.values():
object_type.roles = tuple(r for r in object_type.roles if r != 'obj')
except Exception:
pass

# This will cause the Flask application to be created with development configs
os.environ['DEV'] = 'true'

Expand Down
4 changes: 2 additions & 2 deletions waiverdb/monitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
# Service-specific imports


if not os.environ.get('prometheus_multiproc_dir'):
os.environ.setdefault('prometheus_multiproc_dir', tempfile.mkdtemp())
if not os.environ.get('PROMETHEUS_MULTIPROC_DIR'):
os.environ.setdefault('PROMETHEUS_MULTIPROC_DIR', tempfile.mkdtemp())
registry = CollectorRegistry()
ProcessCollector(registry=registry)
multiprocess.MultiProcessCollector(registry)
Expand Down

0 comments on commit 09f5e3e

Please sign in to comment.