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

Deprecation warning when installing canvasapi - Deprecation coming in pip 23.1 #583

Open
mikehas opened this issue Jan 19, 2023 · 1 comment
Labels

Comments

@mikehas
Copy link

mikehas commented Jan 19, 2023

Describe the bug

When installing canvasapi in python 3.10 using pip 22.3.1 there is a deprecation warning:

DEPRECATION: canvasapi is being installed using the legacy 'setup.py install' method, because it does not have a 'pyproject.toml' and the 'wheel' package is not installed. pip 23.1 will enforce this behaviour change. A possible replacement is to enable the '--use-pep517' option. Discussion can be found at pypa/pip#8559

To Reproduce

Steps to reproduce the behavior:

  1. pip install canvasapi==3.0.3
  2. See warning

Expected behavior

No warning

Environment information

Python 3.10.3
pip 22.3.1

Additional context

Add any other context about the problem here.

@mikehas mikehas added the bug label Jan 19, 2023
@mikehas
Copy link
Author

mikehas commented Jan 19, 2023

This can likely be solved by one of two ways by a module maintainer:

  1. Upload a wheel (.whl) file when publishing to pypi after running python build from the ./dist directory
  2. Add wheel as a project dependency in requirements.txt

As a consumer of the module, pip installing wheel before installing canvasapi is also a workaround.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant