Skip to content

How to use pyproject.toml for package distribution #412

Answered by abravalheri
Viatorus asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @Viatorus, if you are not experiencing any problems with pyproject.toml, your current flow is perfectly fine.

The idea behind pyproject.toml is that you should specify build dependencies (such as wheel and setuptools_scm) there (pyproject.toml > [build-system] > requires).

In v4, tox.ini is preconfigured to work with the newest suggested workflow from PyPA that uses pyproject.toml and build. The idea behind this new workflow is that it is generic for any other build tool, but if you are using setuptools (which is what PyScaffold adopts anyway), python3 setup.py bdist_wheel should work just fine.

(In a distant future I suppose setup.py will be retired, but I think we are still far from …

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@Viatorus
Comment options

Answer selected by Viatorus
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants