Skip to content
Snippets Groups Projects
Verified Commit f7bfa133 authored by David Runge's avatar David Runge :chipmunk:
Browse files

feat: Replace the use of justfile with Makefile.

parent 41a66350
No related branches found
No related tags found
1 merge request!153Fix build system
Pipeline #72811 failed
......@@ -69,6 +69,7 @@ Added
documentation now ensures, that documentation follows a common style.
* A logo for repod has been created by Safi @ http://betriebsbuero.com, which
is licensed under the terms of the CC-BY-SA-4.0.
* A ``Makefile`` can now be used to build and install repod system-wide.
Changed
^^^^^^^
......@@ -122,6 +123,11 @@ Fixed
to fail, if the type was misdetected. All the detected types of the package
file is now checked for a match.
Removed
^^^^^^^
* The ``justfile`` has been removed in favor of a ``Makefile``.
[0.2.2] - 2022-08-29
--------------------
......
......@@ -19,8 +19,13 @@ You can install the latest released version of repod by executing
required directories for system-mode (see :ref:`repod.conf`), nor does it
provide the man pages.
Users requiring system-mode and downstream packagers should therefore use the
provided |justfile| for installation on a system level. Refer to ``just -l``
to learn more about the provided targets.
provided |Makefile| for installation on a system level.
.. code:: sh
make build
make system-docs
make install
Requirements
------------
......@@ -56,10 +61,6 @@ The repod project can be used from a git clone of the project, with the help of
Afterwards it is possible to make use of existing :ref:`tooling <manuals>` with
the help of ``pdm run`` (e.g. ``pdm run repod-file --help``).
.. |justfile| raw:: html
<a target="blank" href="https://just.systems/man/en/">justfile</a>
.. |vercmp| raw:: html
<a target="blank" href="https://man.archlinux.org/man/vercmp.8">vercmp</a>
......
destdir := ""
build:
python -m build --wheel --no-isolation
python -c 'from repod import export_schemas; from pathlib import Path; export_schemas(Path("docs/schema/"))'
PYTHONPATH="$PWD" sphinx-build -M man docs/ docs/_build
check:
python -m pytest -vv -k 'not (integration or regex)'
install:
# https://github.com/pypa/installer/issues/136
if [ -n "{{destdir}}" ]; then python -m installer --destdir="{{destdir}}" dist/*.whl; else python -m installer dist/*.whl; fi
install -vDm 644 docs/_build/man/man1/*.1 -t "{{destdir}}/usr/share/man/man1/"
install -vDm 644 docs/_build/man/man5/*.5 -t "{{destdir}}/usr/share/man/man5/"
install -vdm 755 "{{destdir}}/etc/repod.conf.d/"
install -vdm 755 "{{destdir}}/var/lib/repod/management/"
install -vdm 755 "{{destdir}}/var/lib/repod/data/pool/package/"
install -vdm 755 "{{destdir}}/var/lib/repod/data/pool/source/"
install -vdm 755 "{{destdir}}/var/lib/repod/data/repo/package/"
install -vdm 755 "{{destdir}}/var/lib/repod/data/repo/source/"
......@@ -97,7 +97,6 @@ source-includes = [
"docs/",
"LICENSE",
"Makefile",
"justfile",
]
version = {source = "scm"}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment