@@ -7,58 +7,27 @@ Building semver
77 :description lang=en:
88 Building semver
99
10- .. _PEP 517 : https://www.python.org/dev/peps/pep-0517/
11- .. _PEP 621 : https://www.python.org/dev/peps/pep-0621/
12- .. _A Practical Guide to Setuptools and Pyproject.toml : https://godatadriven.com/blog/a-practical-guide-to-setuptools-and-pyproject-toml/
13- .. _Declarative config : https://setuptools.rtfd.io/en/latest/userguide/declarative_config.html
10+ .. _Installing uv : https://docs.astral.sh/uv/getting-started/installation/
1411
1512
16- This project changed slightly its way how it is built. The reason for this
17- was to still support the "traditional" way with :command: `setup.py `,
18- but at the same time try out the newer way with :file: `pyproject.toml `.
19- As Python 3.6 got deprecated, this project does support from now on only
20- :file: `pyproject.toml `.
13+ This project changed its way how it is built over time. We used to have
14+ a :file: `setup.py ` file, but switched to a :file: `pyproject.toml ` setup.
2115
16+ The build process is managed by :command: `uv ` command.
2217
23- Background information
24- ----------------------
18+ You need:
2519
26- Skip this section and head over to :ref: `build-pyproject-build ` if you just
27- want to know how to build semver.
28- This section gives some background information how this project is set up.
20+ * Python 3.7 or newer.
2921
30- The traditional way with :command: `setup.py ` in this project uses a
31- `Declarative config `_. With this approach, the :command: `setup.py ` is
32- stripped down to its bare minimum and all the metadata is stored in
33- :file: `setup.cfg `.
22+ * The :mod: `setuptools ` module version 61 or newer which is used as
23+ a build backend.
3424
35- The new :file: `pyproject.toml ` contains only information about the build backend, currently setuptools.build_meta. The idea is taken from
36- `A Practical Guide to Setuptools and Pyproject.toml `_.
37- Setuptools-specific configuration keys as defined in `PEP 621 `_ are currently
38- not used.
25+ * The command :command: `uv ` from Astral. Refer to the section
26+ `Installing uv `_ for more information.
3927
4028
41- .. _build-pyproject-build :
42-
43- Building with pyproject-build
44- -----------------------------
45-
46- To build semver you need:
47-
48- * The :mod: `build ` module which implements the `PEP 517 `_ build
49- frontend.
50- Install it with::
51-
52- pip install build
53-
54- Some Linux distributions has already packaged it. If you prefer
55- to use the module with your package manager, search for
56- :file: `python-build ` or :file: `python3-build ` and install it.
57-
58- * The command :command: `pyproject-build ` from the :mod: `build ` module.
59-
6029To build semver, run::
6130
62- pyproject- build
31+ uv build
6332
6433After the command is finished, you can find two files in the :file: `dist ` folder: a ``.tar.gz `` and a ``.whl `` file.
0 commit comments