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

Poetry build fix + better readme #35

Merged
merged 3 commits into from Oct 25, 2022
Merged

Conversation

noraj
Copy link
Contributor

@noraj noraj commented Oct 16, 2022

  • pyproject.toml: proper pyproject.toml
  • readme: markdown compliant with https://commonmark.org/
  • readme: add alternative poetry install steps

Before pyproject.toml update

$ poetry build
Creating virtualenv donpapi-dfVQVXBX-py3.10 in /home/noraj/.cache/pypoetry/virtualenvs
Building donpapi (1.0.0)
$ python -m build --wheel
* Creating virtualenv isolated environment...
* Installing packages in isolated environment... (poetry-core>=1.0.0)
* Getting dependencies for wheel...
* Building wheel...
Traceback (most recent call last):
  File "/usr/lib/python3.10/site-packages/pep517/in_process/_in_process.py", line 351, in <module>
    main()
  File "/usr/lib/python3.10/site-packages/pep517/in_process/_in_process.py", line 333, in main
    json_out['return_val'] = hook(**hook_input['kwargs'])
  File "/usr/lib/python3.10/site-packages/pep517/in_process/_in_process.py", line 249, in build_wheel
    return _build_backend().build_wheel(wheel_directory, config_settings,
  File "/tmp/build-env-lekq9y_k/lib/python3.10/site-packages/poetry/core/masonry/api.py", line 67, in build_wheel
    return WheelBuilder.make_in(poetry, Path(wheel_directory))
  File "/tmp/build-env-lekq9y_k/lib/python3.10/site-packages/poetry/core/masonry/builders/wheel.py", line 74, in make_in
    wb = WheelBuilder(
  File "/tmp/build-env-lekq9y_k/lib/python3.10/site-packages/poetry/core/masonry/builders/wheel.py", line 57, in __init__
    super().__init__(poetry, executable=executable)
  File "/tmp/build-env-lekq9y_k/lib/python3.10/site-packages/poetry/core/masonry/builders/builder.py", line 83, in __init__
    self._module = Module(
  File "/tmp/build-env-lekq9y_k/lib/python3.10/site-packages/poetry/core/masonry/utils/module.py", line 69, in __init__
    raise ModuleOrPackageNotFound(
poetry.core.masonry.utils.module.ModuleOrPackageNotFound: No file/folder found for package donpapi

ERROR Backend subprocess exited when trying to invoke build_wheel

cf. python-poetry/poetry#1110

After pyproject.toml update

$ poetry build           
Building donpapi (1.0.0)
  - Building sdist
  - Built donpapi-1.0.0.tar.gz
  - Building wheel
  - Built donpapi-1.0.0-py3-none-any.whl
$  python -m build --wheel
* Creating virtualenv isolated environment...
* Installing packages in isolated environment... (poetry-core>=1.0.0)
* Getting dependencies for wheel...
* Building wheel...
Successfully built donpapi-1.0.0-py3-none-any.whl

@login-securite login-securite merged commit 9ebb283 into login-securite:main Oct 25, 2022
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

Successfully merging this pull request may close these issues.

None yet

2 participants