Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unused statuspageio dependency #252

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jamesrwhite
Copy link

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.

- It appears to be unused and the upstream project is seemingly unmaintained
- It also blocks installs when using versions of setuptools > 57.5.0
  due to the same issue described in: tikitu/jsmin#33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant