Skip to content

Latest commit

 

History

History
60 lines (40 loc) · 2.07 KB

File metadata and controls

60 lines (40 loc) · 2.07 KB

Building semver

This project changed slightly its way how it is built. The reason for this was to still support the "traditional" way with :command:`setup.py`, but at the same time try out the newer way with :file:`pyproject.toml`. As Python 3.6 got deprecated, this project does support from now on only :file:`pyproject.toml`.

Background information

Skip this section and head over to :ref:`build-pyproject-build` if you just want to know how to build semver. This section gives some background information how this project is set up.

The traditional way with :command:`setup.py` in this project uses a Declarative config. With this approach, the :command:`setup.py` is stripped down to its bare minimum and all the metadata is stored in :file:`setup.cfg`.

The new :file:`pyproject.toml` contains only information about the build backend, currently setuptools.build_meta. The idea is taken from A Practical Guide to Setuptools and Pyproject.toml. Setuptools-specific configuration keys as defined in PEP 621 are currently not used.

Building with pyproject-build

To build semver you need:

To build semver, run:

pyproject-build

After the command is finished, you can find two files in the :file:`dist` folder: a .tar.gz and a .whl file.