-
Notifications
You must be signed in to change notification settings - Fork 264
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
Package Conflicts With Django-Simple-Captcha #291
Comments
this would require a major version upgrade to change the package import name |
I am just a messenger. On another note and for what it is worth, I have discovered that the thing above only happens in |
Any suggestions for alternative package names? I'm inclined to say 'why does django-simple-captcha not rename their package to simple_captcha' but I might be overly biased as I'm one of the maintainers of this package 😉 |
This package does predate django-simple-captcha, so in all fairness django-simple-captcha introduced an accidental collision. In an ideal world this one would have been called recaptcha, and the other one simple_captcha. |
What about I guess, anything that is not the same as something you can get from django packages for "captcha" will work. Here is a list of names that are already in use "captcha", "drf_recaptcha", "hcaptcha", "simplemathcaptcha", "hcaptcha_field", "friendly_captcha", "snowpenguin" A lot of them are outdated and I have listed them just in case some will revive. |
It really doesn't. Django-simple-captcha was first released on PyPI a good year before the first release of django-recaptcha. 🤷♂️ |
To avoid conflicts with other libraries that use the same package name, like django-simple-captcha. Ref: #291
To avoid conflicts with other libraries that use the same package name, like django-simple-captcha. Ref: django-recaptcha#291
To avoid conflicts with other libraries that use the same package name, like django-simple-captcha. Ref: #291
Fixed in 6385e21 This will be released as a breaking change in v4.0.0 |
Because both
django-simple-captcha
anddjango-recaptcha
contain all their files in a directory calledcaptcha
, there is a way to create a conflict. In particular, if someone uses one of these projects as the captcha tool explicitly, whilst also using another package that uses the other project (captcha tool), pip can override thecaptcha
directory with the unwanted package during installation.Precisely this happened to me when I tried to put a Django project into Docker. Locally it works fine. However, inside the Docker container, pip overrides the
captcha
directory with the competing package.mbi/django-simple-captcha#217
requirements.txt
exampleThe text was updated successfully, but these errors were encountered: