monzo / response

Monzo's real-time incident response and reporting tool ⚡️
MIT License
1.52k stars 165 forks source link

Remove unused `statuspageio` dependency #252

Open jamesrwhite opened 2 years ago

jamesrwhite commented 2 years ago

You can re-create the issue with installing like so (tested with Python 3.9.7):

mkdir test && cd test
pip install poetry
poetry init --no-interaction
poetry add django-incident-response

Output:

Using version ^0.5.1 for django-incident-response

Updating dependencies
Resolving dependencies... (2.7s)

Writing lock file

Package operations: 2 installs, 0 updates, 0 removals

  • Installing statuspageio (0.0.1): Failed

  EnvCommandError

  Command ['/Users/james/Library/Caches/pypoetry/virtualenvs/test-B6-Zaf2c-py3.9/bin/pip', 'install', '--no-deps', 'file:///Users/james/Library/Caches/pypoetry/artifacts/41/99/42/2c8b6751dabc5bbd0df9ba8cc2a661cc3f1585a192c246378cefee45b2/statuspageio-0.0.1.tar.gz'] errored with the following return code 1, and output:
  Processing /Users/james/Library/Caches/pypoetry/artifacts/41/99/42/2c8b6751dabc5bbd0df9ba8cc2a661cc3f1585a192c246378cefee45b2/statuspageio-0.0.1.tar.gz
      ERROR: Command errored out with exit status 1:
       command: /Users/james/Library/Caches/pypoetry/virtualenvs/test-B6-Zaf2c-py3.9/bin/python -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/g3/4y5gv74s0ld5n5y9nk4tm9k80000gn/T/pip-req-build-xyw82gmk/setup.py'"'"'; __file__='"'"'/private/var/folders/g3/4y5gv74s0ld5n5y9nk4tm9k80000gn/T/pip-req-build-xyw82gmk/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /private/var/folders/g3/4y5gv74s0ld5n5y9nk4tm9k80000gn/T/pip-pip-egg-info-4zwym1z0
           cwd: /private/var/folders/g3/4y5gv74s0ld5n5y9nk4tm9k80000gn/T/pip-req-build-xyw82gmk/
      Complete output (1 lines):
      error in statuspageio setup command: use_2to3 is invalid.
      ----------------------------------------
  WARNING: Discarding file:///Users/james/Library/Caches/pypoetry/artifacts/41/99/42/2c8b6751dabc5bbd0df9ba8cc2a661cc3f1585a192c246378cefee45b2/statuspageio-0.0.1.tar.gz. Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
  ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
  WARNING: You are using pip version 21.2.4; however, version 21.3.1 is available.
  You should consider upgrading via the '/Users/james/Library/Caches/pypoetry/virtualenvs/test-B6-Zaf2c-py3.9/bin/python -m pip install --upgrade pip' command.

  at ~/.asdf/installs/python/3.9.7/lib/python3.9/site-packages/poetry/utils/env.py:1183 in _run
      1179│                 output = subprocess.check_output(
      1180│                     cmd, stderr=subprocess.STDOUT, **kwargs
      1181│                 )
      1182│         except CalledProcessError as e:
    → 1183│             raise EnvCommandError(e, input=input_)
      1184│
      1185│         return decode(output)
      1186│
      1187│     def execute(self, bin, *args, **kwargs):

Failed to add packages, reverting the pyproject.toml file to its original content.