Comments (10)
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.
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!
And, #3332
from poetry.
please see PEP621
from poetry.
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.
I cannot give a more precise answer than: please see PEP621
from poetry.
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.
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.
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.
yes, but it is not supported. If you want to use a tool where maintainers do support building extensions - not poetry.
from poetry.
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)
- error on dependency propagation HOT 3
- how to change prod/dev dependencies using groups HOT 6
- Poetry doesn't respect private repository's branch/rev in pyproject.toml HOT 2
- Poetry dependencies resolved doesn't correctly use OS specific requirements HOT 3
- `poetry` mismatch with `pip` on optional dependencies install when not defined in extras. HOT 1
- Add "canonical version" option to "poetry version" HOT 2
- Poetry hangs resolving ssh dependencies from unknown hosts HOT 4
- poetry install didn't find the correct python version set by pyenv HOT 3
- Poetry Not Respecting Explicit Sources in Dependencies of Dependencies HOT 3
- Poetry run doesn't work with --directory= HOT 2
- Resolving dependencies timer obscures SSH private key password prompt HOT 3
- Prompt for git credentials when trying to install package from private repository when credential cache is empty HOT 2
- Add coverage report on testing HOT 3
- setuptools not installed when it is a transitive dependency on Python 3.12 HOT 3
- Terminate the child process when killed HOT 4
- Poetry forgetting some dependencies (mix of extras, groups and version markers) HOT 4
- Poetry is not handling rpath for pip installed object files HOT 2
- Poetry does not install a non-optional package from lock file HOT 2
- poetry shell does not activate virtual env HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from poetry.