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

Remove clikit dependency on poetry or vice versa #17

Open
gpiks opened this issue Mar 5, 2020 · 4 comments
Open

Remove clikit dependency on poetry or vice versa #17

gpiks opened this issue Mar 5, 2020 · 4 comments

Comments

@gpiks
Copy link

gpiks commented Mar 5, 2020

Referencing an issue from poetry:
python-poetry/poetry#1975

As per PEP517 circular references should be avoided with build dependencies.

For context: I need to be able to build a wheel from source and the circular dependency is preventing me from doing that.

Do you have a suggestions for breaking the cycle here?

@MeteHanC
Copy link

I am trying to distribute a home brew cli tool and this is just driving me crazy. Clikit needs poetry to be built, and poetry depends on clikit.. A true dead lock here.. Do you have any suggestions ?

@gpiks
Copy link
Author

gpiks commented May 5, 2020

I wonder if we can just use setuptools to build clikit.

@jayvdb
Copy link

jayvdb commented May 7, 2020

You can use @dephell to convert pyproject.toml to setup.py .

Note it doesnt work (easily) on poetry' pyproject.toml - You need to edit its pyproject.toml c.f. dephell/dephell#330 .

@abn
Copy link
Contributor

abn commented Apr 26, 2022

I am trying to distribute a home brew cli tool and this is just driving me crazy. Clikit needs poetry to be built, and poetry depends on clikit.. A true dead lock here.. Do you have any suggestions ?

@MeteHanC clikit does not need poetry to be built. It just needs poetry-core. You can use any PEP 517 front end. For example, you can use pypa/build.

python -m pip install build
python -m build ./clikit

Alternatively, you can use core itself. Probably should get core to add a __main__.py at some point.

python -m pip install poetry-core
cd clikit
python -c "from poetry.core.masonry.api import build_wheel as b; b('.')"

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

No branches or pull requests

4 participants