Skip to content

DEPRECATION: validators is being installed using the legacy 'setup.py install' method, because it does not have a 'pyproject.toml' #267

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

Closed
maaaaz opened this issue Apr 14, 2023 · 2 comments
Labels
development Issue/PR: Modification in workflows, packaging, etc. duplicate Issue/PR: Redundant

Comments

@maaaaz
Copy link

maaaaz commented Apr 14, 2023

Hello there,

First, let me thank you for this great project.
Then, here is a depreciation warning for the latest version available when installed with pip: validators-0.20.0

DEPRECATION: validators 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 https://github.com/pypa/pip/issues/8559

Cheers!

@yozachar
Copy link
Collaborator

Can you please try 0.21.1?

$ [~/test via 🐍 v3.10.10 (.venv)] pip install git+https://github.com/python-validators/[email protected]
Collecting git+https://github.com/python-validators/[email protected]
  Cloning https://github.com/python-validators/validators (to revision 0.21.1) to /tmp/pip-req-build-34mja63u
  Running command git clone --filter=blob:none --quiet https://github.com/python-validators/validators /tmp/pip-req-build-34mja63u
  Running command git checkout -q cd18b57bdb45530a5cc751d70e0df4685d3916a3
  Resolved https://github.com/python-validators/validators to commit cd18b57bdb45530a5cc751d70e0df4685d3916a3
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: validators
  Building wheel for validators (pyproject.toml) ... done
  Created wheel for validators: filename=validators-0.21.1-py3-none-any.whl size=30445 sha256=f793ffec8788814e4b095098dac3c95c762a0d29f422989f7083596d7711e1b3
  Stored in directory: /tmp/pip-ephem-wheel-cache-ubeix7w5/wheels/37/f7/53/9f5b12a0c106aef22ada9db7ce50acdbd14730eca8cae7ad47
Successfully built validators
Installing collected packages: validators
Successfully installed validators-0.21.1

$ [~/test via 🐍 v3.10.10 (.venv) took 14s] python                                                                
Python 3.10.10 (main, Mar  5 2023, 22:26:53) [GCC 12.2.1 20230201] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import validators
>>> validators.url("https://github.com")
True
>>> 

ref: #256 (comment)

@maaaaz
Copy link
Author

maaaaz commented Apr 14, 2023

Perfect, thank you !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
development Issue/PR: Modification in workflows, packaging, etc. duplicate Issue/PR: Redundant
Projects
None yet
Development

No branches or pull requests

2 participants