-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
tool.poetry
section should be optional
#8110
Comments
Since the things you want to omit are automatically filled in by |
True, it works without I prefer to keep things minimal. I initialize a npm package with |
tool.poetry
and build-system
sections should be optionaltool.poetry
section should be optional
I see from the linked MR that you are using poetry in https://github.com/go-gitea/gitea/blob/3ee8970419bb62c6d508b37b02f8fcbacf2f8590/pyproject.toml, to install one dev dependency only. Frankly this seems an odd use of poetry - instead of asking people to install poetry, you might as well ask them to install djlint in the first place! More broadly this is basically a duplicate of #1132 asking for non-package mode. Suggest you add further comments there and close this as a duplicate - though the great age of that one should be a hint as to how likely it is that anything will happen here. |
What's so odd about it? I want to run a python tool in a non-python project, with the benefits of a virtualenv and a lockfile. I think this is a very common use case. |
we're getting off-topic, my fault, please close this as a duplicate of #1132 |
Does it really warrant the complexity of a new "mode"? Why not just support such a minimal format? |
Yeah I see #1132 is closely to what I'm requesting, will continue there. |
- Reduce `pyproject.toml` and `package.json` to the minimal required format, removing unneeded properties. `build-system` is not needed as per [this](python-poetry/poetry#8110 (comment)). - Fix `poetry.toml` options they were wrong previously. - Add dependencies of poetry files to templates `files-changed`. --------- Co-authored-by: Giteabot <teabot@gitea.io>
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Feature Request
The
tool.poetry
section and specifically the keysname
,version
,descriptions
andauthors
of apyproject.toml
are mandatory for poetry, but they are just useless for projects that use poetry to run only command-line python tools and which do not intend to publish as a PyPi module. For comparison, forpackage.json
the minimal format isI would like to see poetry adapt a similar minimal syntax for the
pyproject.toml
:The text was updated successfully, but these errors were encountered: