How to use pyproject.toml for package distribution #412
-
Currently I do:
In the documentation it is mentioned to use pyproject.toml instead of the above code:
https://pyscaffold.org/en/latest/faq.html?highlight=pyproject.toml#pyproject-toml But how? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hi @Viatorus, if you are not experiencing any problems with The idea behind In v4, (In a distant future I suppose |
Beta Was this translation helpful? Give feedback.
-
I just stumbled upon this issue and since it doesn't really give an answer on what to do if I want to stick with a In short, the commands you've been searching for are:
|
Beta Was this translation helpful? Give feedback.
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 aswheel
andsetuptools_scm
) there (pyproject.toml > [build-system] > requires
).In v4,
tox.ini
is preconfigured to work with the newest suggested workflow from PyPA that usespyproject.toml
andbuild
. 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 …