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

Installing "less than" dependency fails to find the package #1229

Closed
3 tasks done
MadWombat opened this issue Jul 15, 2019 · 2 comments
Closed
3 tasks done

Installing "less than" dependency fails to find the package #1229

MadWombat opened this issue Jul 15, 2019 · 2 comments

Comments

@MadWombat
Copy link

  • I am on the latest Poetry version.

  • I have searched the issues of this repo and believe that this is not a duplicate.

  • If an exception occurs when executing a command, I executed it again in debug mode (-vvv option).

  • OS version and name: OS X Mojave. Darwin Kernel Version 18.6.0: Thu Apr 25 23:16:27 PDT 2019; root:xnu-4903.261.4~2/RELEASE_X86_64

  • Poetry version: Poetry 0.12.17

  • Link of a Gist with the contents of your pyproject.toml file:
    https://gist.github.com/MadWombat/a9cf58d94bc0a683c2138dad04a3e8a4

Installing a dependency for Django LTS works fine with pip, but fails with poetry

with pip:

~/project/> pip3 install 'Django<1.12'
Collecting Django<1.12
  Downloading https://files.pythonhosted.org/packages/70/22/237da71dc112f2bba335c18380bc403fba430c44cc4da088824e77652738/Django-1.11.22-py2.py3-none-any.whl (6.9MB)
     |████████████████████████████████| 7.0MB 3.9MB/s 
Collecting pytz (from Django<1.12)
  Using cached https://files.pythonhosted.org/packages/3d/73/fe30c2daaaa0713420d0382b16fbb761409f532c56bdcc514bf7b6262bb6/pytz-2019.1-py2.py3-none-any.whl
Installing collected packages: pytz, Django
Successfully installed Django-1.11.22 pytz-2019.1

with poetry:

~/project> poetry add 'Django<1.12'
                                    
[PackageNotFound]    
Package [Django<1.12] not found.  
                                    
add [-D|--dev] [--git GIT] [--path PATH] [-E|--extras EXTRAS] [--optional] [--python PYTHON] [--platform PLATFORM] [--allow-prereleases] [--dry-run] [--] <name> (<name>)...
@sdispater
Copy link
Member

At the moment, you have to do it like so:

poetry add "django:<1.12"

The notation you are using will be supported in the 1.0.0 verson (see #1221)

Copy link

github-actions bot commented Mar 3, 2024

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants