Giter Club home page Giter Club logo

Comments (10)

dimbleby avatar dimbleby commented on September 12, 2024

project must contain ['name'] properties

seems pretty clear?

You are using tooling that expects a PEP 621 compliant pyproject.toml, so you had better provide one.

from poetry.

lunathanael avatar lunathanael commented on September 12, 2024

I already have a [tool.poetry] section with a name provided. Stack overflow on poetry suggested that only one section should be provided. I've also previously tried adding a separate [project] section with name and etc defined, but it also had. It's own slew of errors.

Let me know if I am mistaken or what I should try! Thank you for the suggestion and insight!

Stack Overflow

And, #3332

from poetry.

dimbleby avatar dimbleby commented on September 12, 2024

please see PEP621

from poetry.

lunathanael avatar lunathanael commented on September 12, 2024

The pep you specified does require a Project section, with a note about this, what should a correct pyproject.toml for poetry look like then? As I've never come across one with a [project] section. Thank you for the response!

from poetry.

dimbleby avatar dimbleby commented on September 12, 2024

I cannot give a more precise answer than: please see PEP621

from poetry.

lunathanael avatar lunathanael commented on September 12, 2024

Using Poetry's init command, doesn't specifiy a [Project] section, I understand PEP621 as a resource for understanding the pyproject metadata specifications, however, PEP621 is a historical document, and even within PEP621, it does not explicitly require a [project] section to be defined, specifically if the build backend will dynamically provide the keys. From my understanding, I am using poetry-core as a build backend, but also using setup tools via generate-setup-file = true, I'm not sure what exactly I am looking for within the resource you provided. If you could provide something more specific in terms of what I am missing either in a file or a mistake I've made elsewhere, I would be very appreciative. Thank you for your guidance!

from poetry.

dimbleby avatar dimbleby commented on September 12, 2024

you are also using setuptools, apparently setuptools requires a pep621 pyproject.toml

nb build.py is unsupported and at your own risk / discretion #2740

from poetry.

lunathanael avatar lunathanael commented on September 12, 2024

I understand, thank you for the concise answer and fast response as always. Without using build.py or setup.py, how can one build extensions such as pybind11 with poetry? Resources I've found all point to build.py.

from poetry.

dimbleby avatar dimbleby commented on September 12, 2024

yes, but it is not supported. If you want to use a tool where maintainers do support building extensions - not poetry.

from poetry.

lunathanael avatar lunathanael commented on September 12, 2024

If you want to use a tool where maintainers do support building extensions - not poetry.

Thank you for the explanation.

from poetry.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.