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

Example showing the use of pyproject.toml file #21

Open
achapkowski opened this issue Nov 2, 2022 · 6 comments
Open

Example showing the use of pyproject.toml file #21

achapkowski opened this issue Nov 2, 2022 · 6 comments

Comments

@achapkowski
Copy link

Can namespace packages be created with pyproject.toml files only? I couldn't find any references to these type of packages.

Thank you

@chrysle
Copy link
Contributor

chrysle commented Sep 21, 2023

Of course you can replace setup.py with pyproject.toml in a namespace package.

This would have to include the following:

[build-system]
requires = ["setuptools", "setuptools-scm"]
build-backend = "setuptools.build_meta"

[tool.setuptools.packages.find]
where = ["."]
include = ["example_pkg"]
namespaces = true

[project]
[...]

@webknjaz
Copy link
Member

webknjaz commented Feb 3, 2024

Of course you can replace setup.py with pyproject.toml in a namespace package.

Not necessarily replace, but also augment (as in only putting [build-system] in pyproject.toml and keeping the metadata in setup.py or setup.cfg, or combining all three in some cases).

@webknjaz
Copy link
Member

webknjaz commented Feb 3, 2024

How about re-framing this request as add pyproject.toml to all examples in the repository?

@webknjaz
Copy link
Member

webknjaz commented Feb 3, 2024

@chrysle
Copy link
Contributor

chrysle commented Feb 4, 2024

How about re-framing this request as add pyproject.toml to all examples in the repository?

Yes, I'm in favour of that.

Though it sounds like it's going to be solved by https://github.com/pypa/sample-namespace-packages/pull/22/files#diff-4f37d08353943ae764c63527530410dc0c1dd92d51af3994532f4a584a73a5e5

Although this doesn't transfer the metadata to pyproject.toml. I'd argue that in their current state, these examples are highly setuptools-oriented, do we want that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants