Skip to content
This repository has been archived by the owner on Jan 12, 2021. It is now read-only.

Fix sampleproject example #383

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

RileyMShea
Copy link

  • Before this change, the instructions with github.com/sampleproject would fail during the dephell deps convert --from=setup.py --to=pyproject.toml step with the error:

WARNING cannot find tool.dephell section in the config (path=pyproject.toml)
ERROR NonExistentKey: 'Key "build-system" does not exist.'

This is because the HEAD of sampleproject's master branch now includes a pyproject file with a section that causes the error above.

  • After this change, the sample project example works again because an instruction is added to checkout a commit hash from ~Nov 2019 where pyproject hadn't been added to the sampleproject repo yet.

- Before this change, the instructions with `sampleproject` would fail during the `dephell deps convert --from=setup.py --to=pyproject.toml` step with the error:

> WARNING cannot find tool.dephell section in the config (path=pyproject.toml)
ERROR NonExistentKey: 'Key "build-system" does not exist.' 

This is because the `HEAD` of `sampleproject` now includes a pyproject file with a section that causes the error above.

- After this change, the sample project example works again because a commit hash from ~Nov 2019 is checked out where a
pyproject hadn't been added to the `sampleproject` repo yet.
Copy link
Member

@orsinium orsinium left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your contribution! Let's make it a bit better and adopt for the changes. If you specify --to-format=poetry --to-path=pyproject.toml instead of --to=pyproject.toml it should work. Could you try and fix the example in this way instead, please?

Yeah, I definitely should make format inference smarter. I'll take care of this part ;)

UPD: if you'll do changes, merge the master into your branch, please. I've fixed CI a bit, it was broken a few weeks ago.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants