poetry update downgrades dependencies
- [x] I am on the latest Poetry version.
- [x] I have searched the issues of this repo and believe that this is not a duplicate.
- [x] If an exception occurs when executing a command, I executed it again in debug mode (
-vvvoption).
- OS version and name: GNU/Linux 4.18.7-1-default, openSUSE Tumbleweed
- Poetry version: 0.12.7
- Link of a Gist with the contents of your pyproject.toml file: https://gist.github.com/rominf/43db2814d214b6799defba3caa15640f
Issue
I run poetry update twice: once in adv-publisher project directory, and the in applovin project directory. On the second poetry call it downgrades aioify:
$ cd ~/projects/adv-publisher
$ poetry update
Skipping virtualenv creation, as specified in config file.
Updating dependencies
Resolving dependencies... (8.1s)
Package operations: 0 installs, 1 update, 0 removals
- Updating aioify (0.2.0 -> 0.3.0 1eabe09)
$ cd ~/projects/applovin
$ poetry update
Skipping virtualenv creation, as specified in config file.
Updating dependencies
Resolving dependencies... (7.0s)
Package operations: 0 installs, 1 update, 0 removals
- Updating aioify (0.0.0 1eabe09 -> 0.2.0)
Could execute the update commands in debug mode (-vvv)?
I think I have the same issue. I was about to create a new issue, but based on the command line output, I think it might be a duplicate of this one. If you disagree, I'll create a new issue.
- OS version and name: Debian Stretch
- Poetry version: 1.0.0a2
- Link of a Gist with the contents of your pyproject.toml file: https://gist.github.com/paretje/ba782f55034bf2ae5f051facd64d4f9e
When you use git forks of packages, poetry update will, depending on the order of execution, downgrade to the upstream version on PyPI.
Creating virtualenv example-QJlTk0kd-py3.5 in /root/.cache/pypoetry/virtualenvs
Updating dependencies
Resolving dependencies... (4.8s)
Package operations: 15 installs, 0 updates, 0 removals
Writing lock file
- Installing markupsafe (1.1.0)
- Installing click (7.0)
- Installing itsdangerous (1.1.0)
- Installing jinja2 (2.10)
- Installing werkzeug (0.14.1)
- Installing flask (0.12.2)
- Installing mako (1.0.7)
- Installing python-editor (1.0.4)
- Installing sqlalchemy (1.2.17)
- Installing alembic (0.9.1)
- Installing Flask-Script (2.0.6 f141a33)
- Installing flask-sqlalchemy (2.2)
- Installing unipath (1.1)
- Installing flask-alchemydumps (0.0.10)
- Installing flask-migrate (2.0.3)
Virtualenv example-QJlTk0kd-py3.5 already exists.
Using virtualenv: /root/.cache/pypoetry/virtualenvs/example-QJlTk0kd-py3.5
Updating dependencies
Resolving dependencies...
1: fact: example is 0.1.0
1: derived: example
1: fact: example depends on Flask-AlchemyDumps (==0.0.10)
1: fact: example depends on alembic (==0.9.1)
1: fact: example depends on Flask-Migrate (==2.0.3)
1: fact: example depends on Flask-SQLAlchemy (==2.2)
1: fact: example depends on Flask (==0.12.2)
1: fact: example depends on Flask-Script (*)
1: selecting example (0.1.0)
1: derived: Flask-Script (*)
1: derived: Flask (==0.12.2)
1: derived: Flask-SQLAlchemy (==2.2)
1: derived: Flask-Migrate (==2.0.3)
1: derived: alembic (==0.9.1)
1: derived: Flask-AlchemyDumps (==0.0.10)
1: fact: flask-script (2.0.6) depends on Flask (*)
1: selecting flask-script (2.0.6 f141a33)
PyPI: 1 packages found for flask 0.12.2
1: fact: flask (0.12.2) depends on Jinja2 (>=2.4)
1: fact: flask (0.12.2) depends on Werkzeug (>=0.7)
1: fact: flask (0.12.2) depends on click (>=2.0)
1: fact: flask (0.12.2) depends on itsdangerous (>=0.21)
1: selecting flask (0.12.2)
1: derived: itsdangerous (>=0.21)
1: derived: click (>=2.0)
1: derived: Werkzeug (>=0.7)
1: derived: Jinja2 (>=2.4)
PyPI: 1 packages found for flask-sqlalchemy 2.2
1: fact: flask-sqlalchemy (2.2) depends on Flask (>=0.10)
1: fact: flask-sqlalchemy (2.2) depends on SQLAlchemy (>=0.8.0)
1: selecting flask-sqlalchemy (2.2)
1: derived: SQLAlchemy (>=0.8.0)
PyPI: 1 packages found for flask-migrate 2.0.3
1: fact: flask-migrate (2.0.3) depends on Flask (>=0.9)
1: fact: flask-migrate (2.0.3) depends on Flask-SQLAlchemy (>=1.0)
1: fact: flask-migrate (2.0.3) depends on alembic (>=0.6)
1: fact: flask-migrate (2.0.3) depends on Flask-Script (>=0.6)
1: selecting flask-migrate (2.0.3)
PyPI: No release information found for alembic-0.1.0dev, skipping
PyPI: No release information found for alembic-0.1alphadev, skipping
PyPI: 1 packages found for alembic 0.9.1
1: fact: alembic (0.9.1) depends on SQLAlchemy (>=0.7.6)
1: fact: alembic (0.9.1) depends on Mako (*)
1: fact: alembic (0.9.1) depends on python-editor (>=0.3)
1: selecting alembic (0.9.1)
1: derived: python-editor (>=0.3)
1: derived: Mako (*)
PyPI: 1 packages found for flask-alchemydumps 0.0.10
1: fact: flask-alchemydumps (0.0.10) depends on Flask (*)
1: fact: flask-alchemydumps (0.0.10) depends on Flask-Script (*)
1: fact: flask-alchemydumps (0.0.10) depends on Flask-SQLAlchemy (*)
1: fact: flask-alchemydumps (0.0.10) depends on SQLAlchemy (*)
1: fact: flask-alchemydumps (0.0.10) depends on Unipath (*)
1: selecting flask-alchemydumps (0.0.10)
1: derived: Unipath (*)
PyPI: 5 packages found for itsdangerous >=0.21
1: selecting itsdangerous (1.1.0)
PyPI: 24 packages found for click >=2.0
1: selecting click (7.0)
PyPI: No release information found for werkzeug-0.10.3, skipping
PyPI: 40 packages found for werkzeug >=0.7
1: selecting werkzeug (0.14.1)
PyPI: 23 packages found for jinja2 >=2.4
1: fact: jinja2 (2.10) depends on MarkupSafe (>=0.23)
1: selecting jinja2 (2.10)
1: derived: MarkupSafe (>=0.23)
PyPI: 76 packages found for sqlalchemy >=0.8.0
1: selecting sqlalchemy (1.2.17)
PyPI: 8 packages found for python-editor >=0.3
1: selecting python-editor (1.0.4)
PyPI: 47 packages found for mako *
1: fact: mako (1.0.7) depends on MarkupSafe (>=0.9.2)
1: selecting mako (1.0.7)
PyPI: 3 packages found for unipath *
1: selecting unipath (1.1)
PyPI: 3 packages found for markupsafe >=0.23
1: selecting markupsafe (1.1.0)
1: Version solving took 2.699 seconds.
1: Tried 1 solutions.
Nothing to install or update
5th run:
Virtualenv example-QJlTk0kd-py3.5 already exists.
Using virtualenv: /root/.cache/pypoetry/virtualenvs/example-QJlTk0kd-py3.5
Updating dependencies
Resolving dependencies...
1: fact: example is 0.1.0
1: derived: example
1: fact: example depends on Flask-AlchemyDumps (==0.0.10)
1: fact: example depends on Flask-Script (*)
1: fact: example depends on Flask-SQLAlchemy (==2.2)
1: fact: example depends on Flask-Migrate (==2.0.3)
1: fact: example depends on alembic (==0.9.1)
1: fact: example depends on Flask (==0.12.2)
1: selecting example (0.1.0)
1: derived: Flask (==0.12.2)
1: derived: alembic (==0.9.1)
1: derived: Flask-Migrate (==2.0.3)
1: derived: Flask-SQLAlchemy (==2.2)
1: derived: Flask-Script (*)
1: derived: Flask-AlchemyDumps (==0.0.10)
PyPI: 1 packages found for flask 0.12.2
1: fact: flask (0.12.2) depends on Jinja2 (>=2.4)
1: fact: flask (0.12.2) depends on Werkzeug (>=0.7)
1: fact: flask (0.12.2) depends on click (>=2.0)
1: fact: flask (0.12.2) depends on itsdangerous (>=0.21)
1: selecting flask (0.12.2)
1: derived: itsdangerous (>=0.21)
1: derived: click (>=2.0)
1: derived: Werkzeug (>=0.7)
1: derived: Jinja2 (>=2.4)
PyPI: No release information found for alembic-0.1.0dev, skipping
PyPI: No release information found for alembic-0.1alphadev, skipping
PyPI: 1 packages found for alembic 0.9.1
1: fact: alembic (0.9.1) depends on SQLAlchemy (>=0.7.6)
1: fact: alembic (0.9.1) depends on Mako (*)
1: fact: alembic (0.9.1) depends on python-editor (>=0.3)
1: selecting alembic (0.9.1)
1: derived: python-editor (>=0.3)
1: derived: Mako (*)
1: derived: SQLAlchemy (>=0.7.6)
PyPI: 1 packages found for flask-migrate 2.0.3
1: fact: flask-migrate (2.0.3) depends on Flask (>=0.9)
1: fact: flask-migrate (2.0.3) depends on Flask-SQLAlchemy (>=1.0)
1: fact: flask-migrate (2.0.3) depends on alembic (>=0.6)
1: fact: flask-migrate (2.0.3) depends on Flask-Script (>=0.6)
1: selecting flask-migrate (2.0.3)
1: derived: Flask-Script (>=0.6)
PyPI: 1 packages found for flask-sqlalchemy 2.2
1: fact: flask-sqlalchemy (2.2) depends on Flask (>=0.10)
1: fact: flask-sqlalchemy (2.2) depends on SQLAlchemy (>=0.8.0)
1: selecting flask-sqlalchemy (2.2)
1: derived: SQLAlchemy (>=0.8.0)
PyPI: 12 packages found for flask-script >=0.6
PyPI: Getting info for flask-script (2.0.6) from PyPI
PyPI: No dependencies found, downloading archives
PyPI: Downloading sdist: Flask-Script-2.0.6.tar.gz
1: fact: flask-script (2.0.6) depends on Flask (*)
1: selecting flask-script (2.0.6)
PyPI: 1 packages found for flask-alchemydumps 0.0.10
1: fact: flask-alchemydumps (0.0.10) depends on Flask (*)
1: fact: flask-alchemydumps (0.0.10) depends on Flask-Script (*)
1: fact: flask-alchemydumps (0.0.10) depends on Flask-SQLAlchemy (*)
1: fact: flask-alchemydumps (0.0.10) depends on SQLAlchemy (*)
1: fact: flask-alchemydumps (0.0.10) depends on Unipath (*)
1: selecting flask-alchemydumps (0.0.10)
1: derived: Unipath (*)
PyPI: 5 packages found for itsdangerous >=0.21
1: selecting itsdangerous (1.1.0)
PyPI: 24 packages found for click >=2.0
1: selecting click (7.0)
PyPI: No release information found for werkzeug-0.10.3, skipping
PyPI: 40 packages found for werkzeug >=0.7
1: selecting werkzeug (0.14.1)
PyPI: 23 packages found for jinja2 >=2.4
1: fact: jinja2 (2.10) depends on MarkupSafe (>=0.23)
1: selecting jinja2 (2.10)
1: derived: MarkupSafe (>=0.23)
PyPI: 8 packages found for python-editor >=0.3
1: selecting python-editor (1.0.4)
PyPI: 47 packages found for mako *
1: fact: mako (1.0.7) depends on MarkupSafe (>=0.9.2)
1: selecting mako (1.0.7)
PyPI: 76 packages found for sqlalchemy >=0.8.0
1: selecting sqlalchemy (1.2.17)
PyPI: 3 packages found for unipath *
1: selecting unipath (1.1)
PyPI: 3 packages found for markupsafe >=0.23
1: selecting markupsafe (1.1.0)
1: Version solving took 0.624 seconds.
1: Tried 1 solutions.
Package operations: 0 installs, 1 update, 0 removals
Writing lock file
- Updating flask-script (0.0.0 f141a33 -> 2.0.6)
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Closing this issue automatically because it has not had any activity since it has been marked as stale. If you think it is still relevant and should be addressed, feel free to open a new one.
happed again in 1.0.5
example:
https://github.com/Trim21/poetry-update-downgrade
poetry update --lock --no-interaction will downgrade aiomysql from 0.0.20 to 0.0.15
but poetry lock works fine.
could this issue be reopened?
I find out why, aiomysql 0.0.20 require pymysql<=0.9.2, so, to update pymysql, poetry downgrade version of aiomysql to 0.0.15 which requires only pymysql>=0.7.5 not <=0.0.20
I find out why, aiomysql 0.0.20 require pymysql<=0.9.2, so, to update pymysql, poetry downgrade version of aiomysql to 0.0.15 which requires only pymysql>=0.7.5 not <=0.0.20
Thanks so much @Trim21, this was precisely the situation I was having too!
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.