It also adds [project.urls] for nice URL links on PyPI, recieves the version dynamically (from platypus.__version__) and moves pytest and mock to an optional [test] dependency.
So if you do pip install platypus-opt only NumPy is installed as dependency, and with pip install platypus-opt[test] pytest and mock also get installed.
Migrate the project install commands and metadata from
setup.py
topyproject.toml
. It largely follows the convention from Configuring setuptools usingpyproject.toml
files.It also adds
[project.urls]
for nice URL links on PyPI, recieves the version dynamically (fromplatypus.__version__
) and moves pytest and mock to an optional[test]
dependency.So if you do
pip install platypus-opt
only NumPy is installed as dependency, and withpip install platypus-opt[test]
pytest and mock also get installed.