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

Python Project - pyproject.toml #40

Open
ebresie opened this issue Jan 21, 2023 · 9 comments
Open

Python Project - pyproject.toml #40

ebresie opened this issue Jan 21, 2023 · 9 comments

Comments

@ebresie
Copy link
Owner

ebresie commented Jan 21, 2023

This will support project metadata using pyproject.toml. This will involve reworking some of the existing Python Project details to read in and output pyproject.toml project files instead.

This may involve importing existing ones for the project as well as creation of new python4nb project files.

For additional details, see

@ebresie
Copy link
Owner Author

ebresie commented Jan 21, 2023

May need some "toml" support as well, but believe this may already be included in more recent Netbeans so this may be unnecessary.

@ebresie ebresie changed the title Python Project Python Project - pyproject.toml Jan 21, 2023
@ebresie
Copy link
Owner Author

ebresie commented Jan 21, 2023

This may overlap or replace some of the following:

Not sure if these are fully addressed in pyproject.toml - need to confirm this.

@ebresie
Copy link
Owner Author

ebresie commented Jan 21, 2023

From Example pyproject.toml

[project]
name = "spam"
version = "2020.0.0"
description = "Lovely Spam! Wonderful Spam!"
readme = "README.rst"
requires-python = ">=3.8"
license = {file = "LICENSE.txt"}
keywords = ["egg", "bacon", "sausage", "tomatoes", "Lobster Thermidor"]
authors = [
{email = "hi@pradyunsg.me"},
{name = "Tzu-Ping Chung"}
]
maintainers = [
{name = "Brett Cannon", email = "brett@python.org"}
]
classifiers = [
"Development Status :: 4 - Beta",
"Programming Language :: Python"
]

dependencies = [
"httpx",
"gidgethub[httpx]>4.0.0",
"django>2.1; os_name != 'nt'",
"django>2.0; os_name == 'nt'"
]

[project.optional-dependencies]
test = [
"pytest < 5.0.0",
"pytest-cov[all]"
]

[project.urls]
homepage = "https://example.com"
documentation = "https://readthedocs.org"
repository = "https://github.com"
changelog = "https://github.com/me/spam/blob/master/CHANGELOG.md"

[project.scripts]
spam-cli = "spam:main_cli"

[project.gui-scripts]
spam-gui = "spam:main_gui"

[project.entry-points."spam.magical"]
tomatoes = "spam:main_tomatoes"

@ebresie
Copy link
Owner Author

ebresie commented Jan 21, 2023

Will also want to add a "New File...pyproject.toml" with maybe the example as a template.

@ebresie
Copy link
Owner Author

ebresie commented Jan 21, 2023

@ebresie
Copy link
Owner Author

ebresie commented Feb 26, 2023

@ebresie
Copy link
Owner Author

ebresie commented Feb 26, 2023

@ebresie
Copy link
Owner Author

ebresie commented Feb 26, 2023

For Toml spec see https://toml.io/en/

@ebresie
Copy link
Owner Author

ebresie commented Mar 12, 2023

May switch over to Tomlj which may support the "table" sect notion which does seem to be fully supported in jackson

For more info see:

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

1 participant