[BUG] dependencies backwards from `pyproject.toml`
See original GitHub issueDescribe the bug
In the latest release (1.8.0) it seems that something changed where packages extracted from a pyproject.toml
come in the opposite order of how they were originally listed.
To Reproduce
grayskull pypi poetry
Look at the package order Look at the order in: https://github.com/python-poetry/poetry/blob/1.2.0/pyproject.toml#L44-L72
Expected behavior Packages should be in the same order, not the opposite.
Outputs
$ cat poetry/meta.yaml
{% set name = "poetry" %}
{% set version = "1.2.0" %}
package:
name: {{ name|lower }}
version: {{ version }}
source:
url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/poetry-{{ version }}.tar.gz
sha256: 17c527d5d5505a5a7c5c14348d87f077d643cf1f186321530cde68e530bba59f
build:
skip: true # [py>=400 or py2k]
script: {{ PYTHON }} -m pip install . -vv
number: 0
requirements:
host:
- python
- ansible
- pip
run:
- python
- dulwich >=0.20.44,<0.21.0
- urllib3 >=1.26.0,<2.0.0
- xattr >=0.9.7,<0.10.0 # [darwin]
- virtualenv
- tomlkit >=0.11.1,<1.0.0,!=0.11.2,!=0.11.3
- shellingham >=1.5,<2.0
- requests-toolbelt >=0.9.1,<0.10.0
- requests >=2.18,<3.0
- platformdirs >=2.5.2,<3.0.0
- pkginfo >=1.5,<2.0
- pexpect >=4.7.0,<5.0.0
- packaging >=20.4
- keyring >=21.2.0
- jsonschema >=4.10.0,<5.0.0
- importlib-metadata >=4.4,<5.0 # [py<310]
- html5lib >=1.0,<2.0
- crashtest >=0.3.0,<0.4.0
- cleo >=1.0.0a5,<2.0.0
- cachy >=0.3.0,<0.4.0
- cachecontrol >=0.12.9,<0.13.0
- poetry-plugin-export >=1.0.6,<2.0.0
- poetry-core ==1.1.0
test:
imports:
- poetry
commands:
- pip check
requires:
- pip
about:
home: https://python-poetry.org/
summary: Python dependency management and packaging made easy.
license: MIT
license_file:
- LICENSE
- tests/fixtures/with-include/LICENSE
extra:
recipe-maintainers:
- AddYourGitHubIdHere
Environment:
$ grayskull --version
1.8.0
Issue Analytics
- State:
- Created a year ago
- Comments:19 (19 by maintainers)
Top Results From Across the Web
please add the build dependencies back to pyproject.toml
I need to install the package from source and I want to do it in a single step using pip install git+https://... ....
Read more >Dependency specification in pyproject.toml based on PEP 508 ...
Such a change should be considered backwards compatible. When the information contained in dependency is required (such as for backends), the ...
Read more >What is pyproject.toml file for? - python - Stack Overflow
This solves the build-tool dependency chicken and egg problem, i.e. pip can read pyproject. toml and what version of setuptools or wheel one...
Read more >Python 3.11 Preview: TOML and tomllib - Real Python
To resolve the situation, PEP 518 introduced the pyproject.toml configuration file, which specifies Python project build dependencies.
Read more >7. Releasing and versioning - Python Packages
In contrast, larger packages will often group multiple bug fixes into a single ... This command changes the version variable in the pyproject.toml...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Ok, to remove all uncertainty, I do:
And now I see it backwards! 🙃
Ya, this is super weird. Thanks for the report.