From 4240f116be3c7c557c71d63ff070fb6502bfad48 Mon Sep 17 00:00:00 2001 From: Jesse Mortenson Date: Thu, 7 Mar 2024 21:08:58 -0600 Subject: [PATCH] Remove Sentry monitoring integration --- .../inventory/host_vars/openstates.org.yml | 1 - poetry.lock | 175 +----------------- pyproject.toml | 1 - tasks.py | 9 +- web/settings.py | 15 -- 5 files changed, 4 insertions(+), 197 deletions(-) diff --git a/ansible/inventory/host_vars/openstates.org.yml b/ansible/inventory/host_vars/openstates.org.yml index cd852df5..35a45162 100644 --- a/ansible/inventory/host_vars/openstates.org.yml +++ b/ansible/inventory/host_vars/openstates.org.yml @@ -8,7 +8,6 @@ django_environment: DATABASE_URL: "{{ lookup('aws_ssm', '/site/DATABASE_URL') }}" CACHE_URL: "{{ lookup('aws_ssm', '/site/CACHE_URL') }}" RRL_REDIS_HOST: "{{ lookup('aws_ssm', '/site/RRL_REDIS_HOST') }}" - SENTRY_DSN: "{{ lookup('aws_ssm', '/site/SENTRY_DSN') }}" RECAPTCHA_PUBLIC_KEY: "{{ lookup('aws_ssm', '/site/RECAPTCHA_PUBLIC_KEY_V2') }}" RECAPTCHA_PRIVATE_KEY: "{{ lookup('aws_ssm', '/site/RECAPTCHA_PRIVATE_KEY_V2') }}" NEW_RELIC_LICENSE_KEY: "{{ lookup('aws_ssm', '/site/NEWRELIC_INI_KEY') }}" diff --git a/poetry.lock b/poetry.lock index b4341fe5..42ffc8cd 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1,10 +1,9 @@ -# This file is automatically @generated by Poetry 1.4.2 and should not be changed by hand. +# This file is automatically @generated by Poetry 1.7.1 and should not be changed by hand. [[package]] name = "aniso8601" version = "7.0.0" description = "A library for parsing ISO 8601 strings." -category = "main" optional = false python-versions = "*" files = [ @@ -16,7 +15,6 @@ files = [ name = "appnope" version = "0.1.3" description = "Disable App Nap on macOS >= 10.9" -category = "main" optional = false python-versions = "*" files = [ @@ -28,7 +26,6 @@ files = [ name = "argcomplete" version = "1.10.3" description = "Bash tab completion for argparse" -category = "main" optional = false python-versions = "*" files = [ @@ -43,7 +40,6 @@ test = ["coverage", "flake8", "pexpect", "wheel"] name = "asgiref" version = "3.6.0" description = "ASGI specs, helper code, and adapters" -category = "main" optional = false python-versions = ">=3.7" files = [ @@ -58,7 +54,6 @@ tests = ["mypy (>=0.800)", "pytest", "pytest-asyncio"] name = "atomicwrites" version = "1.4.1" description = "Atomic file writes." -category = "dev" optional = false python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" files = [ @@ -69,7 +64,6 @@ files = [ name = "attrs" version = "20.3.0" description = "Classes Without Boilerplate" -category = "main" optional = false python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" files = [ @@ -87,7 +81,6 @@ tests-no-zope = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (> name = "backcall" version = "0.2.0" description = "Specifications for callback functions passed in to an API" -category = "main" optional = false python-versions = "*" files = [ @@ -99,7 +92,6 @@ files = [ name = "beautifulsoup4" version = "4.8.2" description = "Screen-scraping library" -category = "main" optional = false python-versions = "*" files = [ @@ -119,7 +111,6 @@ lxml = ["lxml"] name = "black" version = "22.12.0" description = "The uncompromising code formatter." -category = "dev" optional = false python-versions = ">=3.7" files = [ @@ -155,7 +146,6 @@ uvloop = ["uvloop (>=0.15.2)"] name = "bleach" version = "3.3.1" description = "An easy safelist-based HTML-sanitizing tool." -category = "main" optional = false python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" files = [ @@ -172,7 +162,6 @@ webencodings = "*" name = "boto3" version = "1.26.80" description = "The AWS SDK for Python" -category = "main" optional = false python-versions = ">= 3.7" files = [ @@ -192,7 +181,6 @@ crt = ["botocore[crt] (>=1.21.0,<2.0a0)"] name = "botocore" version = "1.29.80" description = "Low-level, data-driven core of boto 3." -category = "main" optional = false python-versions = ">= 3.7" files = [ @@ -212,7 +200,6 @@ crt = ["awscrt (==0.16.9)"] name = "certifi" version = "2022.12.7" description = "Python package for providing Mozilla's CA Bundle." -category = "main" optional = false python-versions = ">=3.6" files = [ @@ -224,7 +211,6 @@ files = [ name = "cffi" version = "1.15.1" description = "Foreign Function Interface for Python calling C code." -category = "main" optional = false python-versions = "*" files = [ @@ -301,7 +287,6 @@ pycparser = "*" name = "chardet" version = "3.0.4" description = "Universal encoding detector for Python 2 and 3" -category = "main" optional = false python-versions = "*" files = [ @@ -313,7 +298,6 @@ files = [ name = "charset-normalizer" version = "3.0.1" description = "The Real First Universal Charset Detector. Open, modern and actively maintained alternative to Chardet." -category = "main" optional = false python-versions = "*" files = [ @@ -411,7 +395,6 @@ files = [ name = "click" version = "8.1.3" description = "Composable command line interface toolkit" -category = "main" optional = false python-versions = ">=3.7" files = [ @@ -426,7 +409,6 @@ colorama = {version = "*", markers = "platform_system == \"Windows\""} name = "colorama" version = "0.4.6" description = "Cross-platform colored terminal text." -category = "main" optional = false python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,!=3.6.*,>=2.7" files = [ @@ -438,7 +420,6 @@ files = [ name = "compressed-rtf" version = "1.0.6" description = "Compressed Rich Text Format (RTF) compression and decompression package" -category = "main" optional = false python-versions = "*" files = [ @@ -449,7 +430,6 @@ files = [ name = "cryptography" version = "39.0.1" description = "cryptography is a package which provides cryptographic recipes and primitives to Python developers." -category = "main" optional = false python-versions = ">=3.6" files = [ @@ -495,7 +475,6 @@ tox = ["tox"] name = "cssselect" version = "1.2.0" description = "cssselect parses CSS3 Selectors and translates them to XPath 1.0" -category = "main" optional = false python-versions = ">=3.7" files = [ @@ -507,7 +486,6 @@ files = [ name = "decorator" version = "5.1.1" description = "Decorators for Humans" -category = "main" optional = false python-versions = ">=3.5" files = [ @@ -519,7 +497,6 @@ files = [ name = "defusedxml" version = "0.7.1" description = "XML bomb protection for Python stdlib modules" -category = "main" optional = false python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" files = [ @@ -531,7 +508,6 @@ files = [ name = "deprecated" version = "1.2.13" description = "Python @deprecated decorator to deprecate old python classes, functions or methods." -category = "main" optional = false python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" files = [ @@ -549,7 +525,6 @@ dev = ["PyTest", "PyTest (<5)", "PyTest-Cov", "PyTest-Cov (<2.6)", "bump2version name = "dj-database-url" version = "0.5.0" description = "Use Database URLs in your Django Application." -category = "main" optional = false python-versions = "*" files = [ @@ -561,7 +536,6 @@ files = [ name = "django" version = "3.2.14" description = "A high-level Python Web framework that encourages rapid development and clean, pragmatic design." -category = "main" optional = false python-versions = ">=3.6" files = [ @@ -582,7 +556,6 @@ bcrypt = ["bcrypt"] name = "django-allauth" version = "0.48.0" description = "Integrated set of Django applications addressing authentication, registration, account management as well as 3rd party (social) account authentication." -category = "main" optional = false python-versions = "*" files = [ @@ -600,7 +573,6 @@ requests-oauthlib = ">=0.3.0" name = "django-cors-headers" version = "3.14.0" description = "django-cors-headers is a Django application for handling the server headers required for Cross-Origin Resource Sharing (CORS)." -category = "main" optional = false python-versions = ">=3.7" files = [ @@ -615,7 +587,6 @@ Django = ">=3.2" name = "django-recaptcha" version = "3.0.0" description = "Django recaptcha form field/widget app." -category = "main" optional = false python-versions = "*" files = [ @@ -630,7 +601,6 @@ django = "*" name = "django-redis-cache" version = "3.0.1" description = "Redis Cache Backend for Django" -category = "main" optional = false python-versions = "*" files = [ @@ -644,7 +614,6 @@ redis = "<4.0" name = "docx2txt" version = "0.8" description = "A pure python-based utility to extract text and images from docx files." -category = "main" optional = false python-versions = "*" files = [ @@ -655,7 +624,6 @@ files = [ name = "ebcdic" version = "1.1.1" description = "Additional EBCDIC codecs" -category = "main" optional = false python-versions = "*" files = [ @@ -666,7 +634,6 @@ files = [ name = "et-xmlfile" version = "1.1.0" description = "An implementation of lxml.xmlfile for the standard library" -category = "main" optional = false python-versions = ">=3.6" files = [ @@ -678,7 +645,6 @@ files = [ name = "extract-msg" version = "0.29.0" description = "Extracts emails and attachments saved in Microsoft Outlook's .msg files" -category = "main" optional = false python-versions = "*" files = [ @@ -697,7 +663,6 @@ tzlocal = ">=2.1" name = "feedparser" version = "6.0.2" description = "Universal feed parser, handles RSS 0.9x, RSS 1.0, RSS 2.0, CDF, Atom 0.3, and Atom 1.0 feeds" -category = "main" optional = false python-versions = ">=3.6" files = [ @@ -712,7 +677,6 @@ sgmllib3k = "*" name = "flake8" version = "3.9.2" description = "the modular source code checker: pep8 pyflakes and co" -category = "dev" optional = false python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,>=2.7" files = [ @@ -729,7 +693,6 @@ pyflakes = ">=2.3.0,<2.4.0" name = "freezegun" version = "0.3.15" description = "Let your Python tests travel through time" -category = "main" optional = false python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" files = [ @@ -745,7 +708,6 @@ six = "*" name = "graphene" version = "2.1.9" description = "GraphQL Framework for Python" -category = "main" optional = false python-versions = "*" files = [ @@ -768,7 +730,6 @@ test = ["coveralls", "fastdiff (==0.2.0)", "iso8601", "mock", "promise", "pytest name = "graphene-django" version = "2.15.0" description = "Graphene Django integration" -category = "main" optional = false python-versions = "*" files = [ @@ -794,7 +755,6 @@ test = ["coveralls", "django-filter (<2)", "django-filter (>=2)", "djangorestfra name = "graphene-graphiql-explorer" version = "0.0.1" description = "A Django app that adds graphiql explorer to the graphiql view" -category = "main" optional = false python-versions = "*" files = [ @@ -806,7 +766,6 @@ files = [ name = "graphql-core" version = "2.3.2" description = "GraphQL implementation for Python" -category = "main" optional = false python-versions = "*" files = [ @@ -827,7 +786,6 @@ test = ["coveralls (==1.11.1)", "cython (==0.29.17)", "gevent (==1.5.0)", "pyann name = "graphql-relay" version = "2.0.1" description = "Relay implementation for Python" -category = "main" optional = false python-versions = "*" files = [ @@ -844,7 +802,6 @@ six = ">=1.12" name = "idna" version = "3.4" description = "Internationalized Domain Names in Applications (IDNA)" -category = "main" optional = false python-versions = ">=3.5" files = [ @@ -856,7 +813,6 @@ files = [ name = "imapclient" version = "2.1.0" description = "Easy-to-use, Pythonic and complete IMAP client library" -category = "main" optional = false python-versions = "*" files = [ @@ -875,7 +831,6 @@ test = ["mock (>=1.3.0)"] name = "influxdb-client" version = "1.38.0" description = "InfluxDB 2.0 Python client library" -category = "main" optional = false python-versions = ">=3.7" files = [ @@ -900,7 +855,6 @@ test = ["aioresponses (>=0.7.3)", "coverage (>=4.0.3)", "flake8 (>=5.0.3)", "htt name = "invoke" version = "1.7.3" description = "Pythonic task execution" -category = "dev" optional = false python-versions = "*" files = [ @@ -912,7 +866,6 @@ files = [ name = "ipython" version = "7.34.0" description = "IPython: Productive Interactive Computing" -category = "main" optional = false python-versions = ">=3.7" files = [ @@ -949,7 +902,6 @@ test = ["ipykernel", "nbformat", "nose (>=0.10.1)", "numpy (>=1.17)", "pygments" name = "jedi" version = "0.18.2" description = "An autocompletion tool for Python that can be used for text editors." -category = "main" optional = false python-versions = ">=3.6" files = [ @@ -969,7 +921,6 @@ testing = ["Django (<3.1)", "attrs", "colorama", "docopt", "pytest (<7.0.0)"] name = "jellyfish" version = "0.11.2" description = "Approximate and phonetic matching of strings." -category = "main" optional = false python-versions = ">=3.7" files = [ @@ -1036,7 +987,6 @@ files = [ name = "jmespath" version = "1.0.1" description = "JSON Matching Expressions" -category = "main" optional = false python-versions = ">=3.7" files = [ @@ -1048,7 +998,6 @@ files = [ name = "jsonschema" version = "3.2.0" description = "An implementation of JSON Schema validation for Python" -category = "main" optional = false python-versions = "*" files = [ @@ -1070,7 +1019,6 @@ format-nongpl = ["idna", "jsonpointer (>1.13)", "rfc3339-validator", "rfc3986-va name = "lxml" version = "4.9.2" description = "Powerful and Pythonic XML processing library combining libxml2/libxslt with the ElementTree API." -category = "main" optional = false python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, != 3.4.*" files = [ @@ -1163,7 +1111,6 @@ source = ["Cython (>=0.29.7)"] name = "matplotlib-inline" version = "0.1.6" description = "Inline Matplotlib backend for Jupyter" -category = "main" optional = false python-versions = ">=3.5" files = [ @@ -1178,7 +1125,6 @@ traitlets = "*" name = "mccabe" version = "0.6.1" description = "McCabe checker, plugin for flake8" -category = "dev" optional = false python-versions = "*" files = [ @@ -1190,7 +1136,6 @@ files = [ name = "more-itertools" version = "9.1.0" description = "More routines for operating on iterables, beyond itertools" -category = "dev" optional = false python-versions = ">=3.7" files = [ @@ -1202,7 +1147,6 @@ files = [ name = "mypy-extensions" version = "1.0.0" description = "Type system extensions for programs checked with the mypy type checker." -category = "dev" optional = false python-versions = ">=3.5" files = [ @@ -1214,7 +1158,6 @@ files = [ name = "newrelic" version = "6.10.0.165" description = "New Relic Python Agent" -category = "main" optional = false python-versions = ">=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*" files = [ @@ -1240,7 +1183,6 @@ infinite-tracing = ["grpcio (<2)", "protobuf (<4)"] name = "oauthlib" version = "3.2.2" description = "A generic, spec-compliant, thorough implementation of the OAuth request-signing logic" -category = "main" optional = false python-versions = ">=3.6" files = [ @@ -1257,7 +1199,6 @@ signedtoken = ["cryptography (>=3.0.0)", "pyjwt (>=2.0.0,<3)"] name = "olefile" version = "0.46" description = "Python package to parse, read and write Microsoft OLE2 files (Structured Storage or Compound Document, Microsoft Office)" -category = "main" optional = false python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" files = [ @@ -1268,7 +1209,6 @@ files = [ name = "openpyxl" version = "3.1.1" description = "A Python library to read/write Excel 2010 xlsx/xlsm files" -category = "main" optional = false python-versions = ">=3.6" files = [ @@ -1283,7 +1223,6 @@ et-xmlfile = "*" name = "openstates" version = "6.17.8" description = "core infrastructure for the openstates project" -category = "main" optional = false python-versions = ">=3.9,<4.0" files = [ @@ -1313,7 +1252,6 @@ us = ">=3.1.1,<4.0.0" name = "packaging" version = "23.0" description = "Core utilities for Python packages" -category = "main" optional = false python-versions = ">=3.7" files = [ @@ -1325,7 +1263,6 @@ files = [ name = "parso" version = "0.8.3" description = "A Python Parser" -category = "main" optional = false python-versions = ">=3.6" files = [ @@ -1341,7 +1278,6 @@ testing = ["docopt", "pytest (<6.0.0)"] name = "pathspec" version = "0.11.0" description = "Utility library for gitignore style pattern matching of file paths." -category = "dev" optional = false python-versions = ">=3.7" files = [ @@ -1353,7 +1289,6 @@ files = [ name = "pdfminer-six" version = "20191110" description = "PDF parser and analyzer" -category = "main" optional = false python-versions = "*" files = [ @@ -1375,7 +1310,6 @@ docs = ["sphinx", "sphinx-argparse"] name = "pexpect" version = "4.8.0" description = "Pexpect allows easy control of interactive console applications." -category = "main" optional = false python-versions = "*" files = [ @@ -1390,7 +1324,6 @@ ptyprocess = ">=0.5" name = "pickleshare" version = "0.7.5" description = "Tiny 'shelve'-like database with concurrency support" -category = "main" optional = false python-versions = "*" files = [ @@ -1402,7 +1335,6 @@ files = [ name = "pillow" version = "10.0.1" description = "Python Imaging Library (Fork)" -category = "main" optional = false python-versions = ">=3.8" files = [ @@ -1470,7 +1402,6 @@ tests = ["check-manifest", "coverage", "defusedxml", "markdown2", "olefile", "pa name = "platformdirs" version = "3.0.0" description = "A small Python package for determining appropriate platform-specific dirs, e.g. a \"user data dir\"." -category = "dev" optional = false python-versions = ">=3.7" files = [ @@ -1486,7 +1417,6 @@ test = ["appdirs (==1.4.4)", "covdefaults (>=2.2.2)", "pytest (>=7.2.1)", "pytes name = "pluggy" version = "0.13.1" description = "plugin and hook calling mechanisms for python" -category = "dev" optional = false python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" files = [ @@ -1501,7 +1431,6 @@ dev = ["pre-commit", "tox"] name = "promise" version = "2.3" description = "Promises/A+ implementation for Python" -category = "main" optional = false python-versions = "*" files = [ @@ -1518,7 +1447,6 @@ test = ["coveralls", "futures", "mock", "pytest (>=2.7.3)", "pytest-benchmark", name = "prompt-toolkit" version = "3.0.37" description = "Library for building powerful interactive command lines in Python" -category = "main" optional = false python-versions = ">=3.7.0" files = [ @@ -1533,7 +1461,6 @@ wcwidth = "*" name = "psycopg2-binary" version = "2.9.5" description = "psycopg2 - Python-PostgreSQL Database Adapter" -category = "main" optional = false python-versions = ">=3.6" files = [ @@ -1614,7 +1541,6 @@ files = [ name = "ptyprocess" version = "0.7.0" description = "Run a subprocess in a pseudo terminal" -category = "main" optional = false python-versions = "*" files = [ @@ -1626,7 +1552,6 @@ files = [ name = "py" version = "1.11.0" description = "library with cross-python path, ini-parsing, io, code, log facilities" -category = "dev" optional = false python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" files = [ @@ -1638,7 +1563,6 @@ files = [ name = "pybase62" version = "0.4.3" description = "Python module for base62 encoding" -category = "main" optional = false python-versions = "*" files = [ @@ -1650,7 +1574,6 @@ files = [ name = "pycodestyle" version = "2.7.0" description = "Python style guide checker" -category = "dev" optional = false python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" files = [ @@ -1662,7 +1585,6 @@ files = [ name = "pycparser" version = "2.21" description = "C parser in Python" -category = "main" optional = false python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" files = [ @@ -1674,7 +1596,6 @@ files = [ name = "pycryptodome" version = "3.17" description = "Cryptographic library for Python" -category = "main" optional = false python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" files = [ @@ -1717,7 +1638,6 @@ files = [ name = "pydantic" version = "1.10.5" description = "Data validation and settings management using python type hints" -category = "main" optional = false python-versions = ">=3.7" files = [ @@ -1770,7 +1690,6 @@ email = ["email-validator (>=1.0.3)"] name = "pyflakes" version = "2.3.1" description = "passive checker of Python programs" -category = "dev" optional = false python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" files = [ @@ -1782,7 +1701,6 @@ files = [ name = "pygithub" version = "1.58.0" description = "Use the full Github API v3" -category = "main" optional = false python-versions = ">=3.7" files = [ @@ -1803,7 +1721,6 @@ integrations = ["cryptography"] name = "pygments" version = "2.14.0" description = "Pygments is a syntax highlighting package written in Python." -category = "main" optional = false python-versions = ">=3.6" files = [ @@ -1818,7 +1735,6 @@ plugins = ["importlib-metadata"] name = "pyjwt" version = "2.6.0" description = "JSON Web Token implementation in Python" -category = "main" optional = false python-versions = ">=3.7" files = [ @@ -1839,7 +1755,6 @@ tests = ["coverage[toml] (==5.0.4)", "pytest (>=6.0.0,<7.0.0)"] name = "pynacl" version = "1.5.0" description = "Python binding to the Networking and Cryptography (NaCl) library" -category = "main" optional = false python-versions = ">=3.6" files = [ @@ -1866,7 +1781,6 @@ tests = ["hypothesis (>=3.27.0)", "pytest (>=3.2.1,!=3.3.0)"] name = "pyrsistent" version = "0.19.3" description = "Persistent/Functional/Immutable data structures" -category = "main" optional = false python-versions = ">=3.7" files = [ @@ -1903,7 +1817,6 @@ files = [ name = "pytest" version = "5.4.3" description = "pytest: simple powerful testing with Python" -category = "dev" optional = false python-versions = ">=3.5" files = [ @@ -1929,7 +1842,6 @@ testing = ["argcomplete", "hypothesis (>=3.56)", "mock", "nose", "requests", "xm name = "pytest-django" version = "3.10.0" description = "A Django plugin for pytest." -category = "dev" optional = false python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" files = [ @@ -1948,7 +1860,6 @@ testing = ["Django", "django-configurations (>=2.0)", "six"] name = "python-dateutil" version = "2.8.2" description = "Extensions to the standard Python datetime module" -category = "main" optional = false python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,>=2.7" files = [ @@ -1963,7 +1874,6 @@ six = ">=1.5" name = "python-pptx" version = "0.6.21" description = "Generate and manipulate Open XML PowerPoint (.pptx) files" -category = "main" optional = false python-versions = "*" files = [ @@ -1979,7 +1889,6 @@ XlsxWriter = ">=0.5.7" name = "python3-openid" version = "3.2.0" description = "OpenID support for modern servers and consumers." -category = "main" optional = false python-versions = "*" files = [ @@ -1998,7 +1907,6 @@ postgresql = ["psycopg2"] name = "pytz" version = "2022.7.1" description = "World timezone definitions, modern and historical" -category = "main" optional = false python-versions = "*" files = [ @@ -2010,7 +1918,6 @@ files = [ name = "pytz-deprecation-shim" version = "0.1.0.post0" description = "Shims to make deprecation of pytz easier" -category = "main" optional = false python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,>=2.7" files = [ @@ -2025,7 +1932,6 @@ tzdata = {version = "*", markers = "python_version >= \"3.6\""} name = "pyyaml" version = "6.0.1" description = "YAML parser and emitter for Python" -category = "main" optional = false python-versions = ">=3.6" files = [ @@ -2085,7 +1991,6 @@ files = [ name = "reactivex" version = "4.0.4" description = "ReactiveX (Rx) for Python" -category = "main" optional = false python-versions = ">=3.7,<4.0" files = [ @@ -2100,7 +2005,6 @@ typing-extensions = ">=4.1.1,<5.0.0" name = "redis" version = "3.5.3" description = "Python client for Redis key-value store" -category = "main" optional = false python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" files = [ @@ -2115,7 +2019,6 @@ hiredis = ["hiredis (>=0.1.3)"] name = "requests" version = "2.31.0" description = "Python HTTP for Humans." -category = "main" optional = false python-versions = ">=3.7" files = [ @@ -2137,7 +2040,6 @@ use-chardet-on-py3 = ["chardet (>=3.0.2,<6)"] name = "requests-oauthlib" version = "1.3.1" description = "OAuthlib authentication support for Requests." -category = "main" optional = false python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" files = [ @@ -2156,7 +2058,6 @@ rsa = ["oauthlib[signedtoken] (>=3.0.0)"] name = "rrl" version = "0.3.1" description = "simple redis rate limiting" -category = "main" optional = false python-versions = ">=3.7,<4.0" files = [ @@ -2171,7 +2072,6 @@ redis = ">=3.5.3,<4.0.0" name = "rx" version = "1.6.3" description = "Reactive Extensions (Rx) for Python" -category = "main" optional = false python-versions = "*" files = [ @@ -2182,7 +2082,6 @@ files = [ name = "s3transfer" version = "0.6.0" description = "An Amazon S3 Transfer Manager" -category = "main" optional = false python-versions = ">= 3.7" files = [ @@ -2200,7 +2099,6 @@ crt = ["botocore[crt] (>=1.20.29,<2.0a.0)"] name = "scrapelib" version = "2.1.0" description = "" -category = "main" optional = false python-versions = ">=3.7,<4.0" files = [ @@ -2211,52 +2109,10 @@ files = [ [package.dependencies] requests = {version = ">=2.28.1,<3.0.0", extras = ["security"]} -[[package]] -name = "sentry-sdk" -version = "1.16.0" -description = "Python client for Sentry (https://sentry.io)" -category = "main" -optional = false -python-versions = "*" -files = [ - {file = "sentry-sdk-1.16.0.tar.gz", hash = "sha256:a900845bd78c263d49695d48ce78a4bce1030bbd917e0b6cc021fc000c901113"}, - {file = "sentry_sdk-1.16.0-py2.py3-none-any.whl", hash = "sha256:633edefead34d976ff22e7edc367cdf57768e24bc714615ccae746d9d91795ae"}, -] - -[package.dependencies] -certifi = "*" -urllib3 = {version = ">=1.26.11", markers = "python_version >= \"3.6\""} - -[package.extras] -aiohttp = ["aiohttp (>=3.5)"] -arq = ["arq (>=0.23)"] -beam = ["apache-beam (>=2.12)"] -bottle = ["bottle (>=0.12.13)"] -celery = ["celery (>=3)"] -chalice = ["chalice (>=1.16.0)"] -django = ["django (>=1.8)"] -falcon = ["falcon (>=1.4)"] -fastapi = ["fastapi (>=0.79.0)"] -flask = ["blinker (>=1.1)", "flask (>=0.11)"] -httpx = ["httpx (>=0.16.0)"] -huey = ["huey (>=2)"] -opentelemetry = ["opentelemetry-distro (>=0.35b0)"] -pure-eval = ["asttokens", "executing", "pure-eval"] -pymongo = ["pymongo (>=3.1)"] -pyspark = ["pyspark (>=2.4.4)"] -quart = ["blinker (>=1.1)", "quart (>=0.16.1)"] -rq = ["rq (>=0.6)"] -sanic = ["sanic (>=0.8)"] -sqlalchemy = ["sqlalchemy (>=1.2)"] -starlette = ["starlette (>=0.19.1)"] -starlite = ["starlite (>=1.48)"] -tornado = ["tornado (>=5)"] - [[package]] name = "setuptools" version = "67.4.0" description = "Easily download, build, install, upgrade, and uninstall Python packages" -category = "main" optional = false python-versions = ">=3.7" files = [ @@ -2273,7 +2129,6 @@ testing-integration = ["build[virtualenv]", "filelock (>=3.4.0)", "jaraco.envs ( name = "sgmllib3k" version = "1.0.0" description = "Py3k port of sgmllib." -category = "main" optional = false python-versions = "*" files = [ @@ -2284,7 +2139,6 @@ files = [ name = "singledispatch" version = "4.0.0" description = "Backport functools.singledispatch to older Pythons." -category = "main" optional = false python-versions = ">=3.7" files = [ @@ -2300,7 +2154,6 @@ testing = ["flake8 (<5)", "pytest (>=6)", "pytest-black (>=0.3.7)", "pytest-chec name = "six" version = "1.12.0" description = "Python 2 and 3 compatibility utilities" -category = "main" optional = false python-versions = ">=2.6, !=3.0.*, !=3.1.*" files = [ @@ -2312,7 +2165,6 @@ files = [ name = "sortedcontainers" version = "2.4.0" description = "Sorted Containers -- Sorted List, Sorted Dict, Sorted Set" -category = "main" optional = false python-versions = "*" files = [ @@ -2324,7 +2176,6 @@ files = [ name = "soupsieve" version = "2.4" description = "A modern CSS selector implementation for Beautiful Soup." -category = "main" optional = false python-versions = ">=3.7" files = [ @@ -2336,7 +2187,6 @@ files = [ name = "spatula" version = "0.9.0" description = "A modern Python library for writing maintainable web scrapers." -category = "main" optional = false python-versions = ">=3.7,<4.0" files = [ @@ -2357,7 +2207,6 @@ scrapelib = ">=2.0.6,<3.0.0" name = "speechrecognition" version = "3.8.1" description = "Library for performing speech recognition, with support for several engines and APIs, online and offline." -category = "main" optional = false python-versions = "*" files = [ @@ -2368,7 +2217,6 @@ files = [ name = "sqlparse" version = "0.4.3" description = "A non-validating SQL parser." -category = "main" optional = false python-versions = ">=3.5" files = [ @@ -2380,7 +2228,6 @@ files = [ name = "structlog" version = "20.2.0" description = "Structured Logging for Python" -category = "main" optional = false python-versions = ">=3.6" files = [ @@ -2397,7 +2244,6 @@ tests = ["coverage[toml]", "freezegun (>=0.2.8)", "pretend", "pytest (>=6.0)", " name = "text-unidecode" version = "1.3" description = "The most basic Text::Unidecode port" -category = "main" optional = false python-versions = "*" files = [ @@ -2409,7 +2255,6 @@ files = [ name = "textract" version = "1.6.5" description = "extract text from any document. no muss. no fuss." -category = "main" optional = false python-versions = "*" files = [ @@ -2420,7 +2265,7 @@ files = [ [package.dependencies] argcomplete = ">=1.10.0,<1.11.0" beautifulsoup4 = ">=4.8.0,<4.9.0" -chardet = ">=3.0.0,<4.0.0" +chardet = "==3.*" docx2txt = ">=0.8,<1.0" extract-msg = "<=0.29" "pdfminer.six" = "20191110" @@ -2436,7 +2281,6 @@ pocketsphinx = ["pocketsphinx (==0.1.15)"] name = "tomli" version = "2.0.1" description = "A lil' TOML parser" -category = "dev" optional = false python-versions = ">=3.7" files = [ @@ -2448,7 +2292,6 @@ files = [ name = "traitlets" version = "5.9.0" description = "Traitlets Python configuration system" -category = "main" optional = false python-versions = ">=3.7" files = [ @@ -2464,7 +2307,6 @@ test = ["argcomplete (>=2.0)", "pre-commit", "pytest", "pytest-mock"] name = "typing-extensions" version = "4.5.0" description = "Backported and Experimental Type Hints for Python 3.7+" -category = "main" optional = false python-versions = ">=3.7" files = [ @@ -2476,7 +2318,6 @@ files = [ name = "tzdata" version = "2022.7" description = "Provider of IANA time zone data" -category = "main" optional = false python-versions = ">=2" files = [ @@ -2488,7 +2329,6 @@ files = [ name = "tzlocal" version = "4.2" description = "tzinfo object for the local timezone" -category = "main" optional = false python-versions = ">=3.6" files = [ @@ -2508,7 +2348,6 @@ test = ["pytest (>=4.3)", "pytest-mock (>=3.3)"] name = "urllib3" version = "1.26.17" description = "HTTP library with thread-safe connection pooling, file post, and more." -category = "main" optional = false python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, !=3.5.*" files = [ @@ -2525,7 +2364,6 @@ socks = ["PySocks (>=1.5.6,!=1.5.7,<2.0)"] name = "us" version = "3.1.1" description = "US state meta information and other fun stuff" -category = "main" optional = false python-versions = "*" files = [ @@ -2539,7 +2377,6 @@ jellyfish = "0.11.2" name = "wcwidth" version = "0.2.6" description = "Measures the displayed width of unicode strings in a terminal" -category = "main" optional = false python-versions = "*" files = [ @@ -2551,7 +2388,6 @@ files = [ name = "webencodings" version = "0.5.1" description = "Character encoding aliases for legacy web content" -category = "main" optional = false python-versions = "*" files = [ @@ -2563,7 +2399,6 @@ files = [ name = "whitenoise" version = "5.3.0" description = "Radically simplified static file serving for WSGI applications" -category = "main" optional = false python-versions = ">=3.5, <4" files = [ @@ -2578,7 +2413,6 @@ brotli = ["Brotli"] name = "wrapt" version = "1.15.0" description = "Module for decorators, wrappers and monkey patching." -category = "main" optional = false python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,>=2.7" files = [ @@ -2663,7 +2497,6 @@ files = [ name = "xlrd" version = "1.2.0" description = "Library for developers to extract data from Microsoft Excel (tm) spreadsheet files" -category = "main" optional = false python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" files = [ @@ -2675,7 +2508,6 @@ files = [ name = "xlsxwriter" version = "3.0.8" description = "A Python module for creating Excel XLSX files." -category = "main" optional = false python-versions = ">=3.6" files = [ @@ -2687,7 +2519,6 @@ files = [ name = "yamlordereddictloader" version = "0.4.0" description = "YAML loader and dump for PyYAML allowing to keep keys order." -category = "main" optional = false python-versions = "*" files = [ @@ -2700,4 +2531,4 @@ pyyaml = "*" [metadata] lock-version = "2.0" python-versions = "^3.9" -content-hash = "8d4cd0cdf1553f927c115e562e44425cd3672f63126aa5fa4e0a84e5567898ff" +content-hash = "478b6fb899e875301d3356aab16ae8685f74b8c42429a6543a61936380b588d9" diff --git a/pyproject.toml b/pyproject.toml index da424d70..899b2dcc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -23,7 +23,6 @@ newrelic = "^6.2" bleach = "^3.1" structlog = "^20.1.0" colorama = "^0.4.3" -sentry-sdk = "^1.0.0" freezegun = "^0.3.15" openstates = "6.17.8" rrl = "^0.3.1" diff --git a/tasks.py b/tasks.py index 22887d35..6c676fb0 100644 --- a/tasks.py +++ b/tasks.py @@ -67,19 +67,12 @@ def deploy(c): "aws ssm get-parameter --name /site/NEWRELIC_API_KEY --with-decryption | jq -r .Parameter.Value", hide="out", ).stdout.strip() - SENTRY_RELEASE_ENDPOINT = c.run( - "aws ssm get-parameter --name /site/SENTRY_RELEASE_ENDPOINT --with-decryption | jq -r .Parameter.Value", - hide="out", - ).stdout.strip() with c.cd("ansible"): c.run("ansible-playbook -D openstates.yml -i inventory/", pty=True) - # tag the release in git and on sentry and newrelic + # tag the release in git and newrelic next_tag = get_next_tag(c) - c.run( - f'curl {SENTRY_RELEASE_ENDPOINT} -X POST -H "Content-Type: application/json" -d \'{{"version": "{next_tag}"}}\'' - ) c.run( f"""curl -X POST \ "https://api.newrelic.com/v2/applications/{NEWRELIC_APP_ID}/deployments.json" \ diff --git a/web/settings.py b/web/settings.py index 36cc3de4..acdd032a 100644 --- a/web/settings.py +++ b/web/settings.py @@ -1,22 +1,7 @@ import os import dj_database_url import structlog -import sentry_sdk from corsheaders.defaults import default_headers -from sentry_sdk.integrations.django import DjangoIntegration -from sentry_sdk.integrations.logging import ignore_logger - - -if "SENTRY_DSN" in os.environ: - # particularly for graphql errors - sentry_sdk.utils.MAX_STRING_LENGTH = 2048 - sentry_sdk.init( - dsn=os.environ["SENTRY_DSN"], - integrations=[DjangoIntegration()], - traces_sample_rate=0.01, - send_default_pii=True, - ) - ignore_logger("graphql.execution.utils") # Build paths inside the project like this: os.path.join(BASE_DIR, ...)