33<img align =" right " style =" float : right ; width : 25% ;" src =" assets/debmagic-logo.svg " alt =" debmagic logo " />
44
55Debmagic is for [ Debian] ( https://debian.org ) /[ Ubuntu] ( https://ubuntu.com ) :
6+
67- create packages ** build instructions** in Python with ` debian/rules.py `
78- tooling do perform packaging itself: ** building** and ** testing** in isolated container environments
89
9-
1010[ ![ GitHub Actions Status] ( https://github.com/SFTtech/debmagic/actions/workflows/ci.yml/badge.svg )] ( https://github.com/SFTtech/debmagic/actions/workflows/ci.yml )
1111
1212> [ !IMPORTANT]
@@ -21,7 +21,6 @@ Included features:
2121- maintainer tools
2222 - ` debmagic build ` - isolated package building
2323
24-
2524## Example debian/rules.py
2625
2726Python ` debian/rules.py ` equivalent of [ Ubuntu 24.04 htop] ( https://git.launchpad.net/ubuntu/+source/htop/tree/debian/rules?h=ubuntu/noble ) :
@@ -82,7 +81,7 @@ pkg.pack()
8281
8382To add custom functions directly usable from CLI (like custom ` debian/rules ` targets for maintainers):
8483
85- ``` python
84+ ``` python
8685pkg = package(... )
8786
8887@pkg.custom_function
@@ -94,54 +93,30 @@ pkg.pack()
9493
9594This function can be directly called with:
9695
97- ``` console
96+ ``` console
9897./debian/rules.py something-custom --another-param=test 1337
9998```
100- ``` text
99+
100+ ``` text
101101you passed some_param=test another_param=1337
102102```
103103
104104And generates automatic help for:
105- ``` console
106- ./debian/rules.py something-custom --help
107- ```
108-
109-
110- ## Developing
111-
112- Prerequisites:
113105
114- - Debian >= trixie, either roll your own environment or to get started faster use the [ devcontainer] ( https://containers.dev/ )
115- - Python >= 3.12
116- - [ UV] ( https://docs.astral.sh/uv/ )
117-
118- Setup:
119-
120- ``` bash
121- uv sync
122- uv run pre-commit install
123- ```
124-
125- Build the documentation
126-
127- ``` bash
128- # oneshot build
129- uv run sphinx-build docs docs/_build
130- # continous serving
131- uv run sphinx-autobuild docs docs/_build
106+ ``` console
107+ ./debian/rules.py something-custom --help
132108```
133109
134-
135110## Documentation
136111
137112To do packaging with debmagic, please ** [ read the documentation!] ( https://debmagic.readthedocs.io ) ** .
138113
139-
140114## Contributing
141115
142116Debmagic can always use more features and modules!
143117You can also just request features or report bugs - this project is happy about your contributions!
144118
119+ - [ Contributor documentation] ( https://debmagic.readthedocs.io/en/latest/develop/index.html )
145120- [ Issue tracker] ( https://github.com/SFTtech/debmagic/issues )
146121- [ Code contributions] ( https://github.com/SFTtech/debmagic/pulls )
147122- [ Development roadmap] ( https://github.com/SFTtech/debmagic/projects )
@@ -152,12 +127,11 @@ To directly reach developers and other users, we have chat rooms.
152127For questions, suggestions, problem support, please join and just ask!
153128
154129| Contact | Where? |
155- | --------------- | ------------------------------------------------------------------------------------------------ |
130+ | ------------- | ---------------------------------------------------------------------------------------------- |
156131| Issue Tracker | [ SFTtech/debmagic] ( https://github.com/SFTtech/debmagic/issues ) |
157132| Matrix Chat | [ ` #sfttech:matrix.org ` ] ( https://app.element.io/#/room/#sfttech:matrix.org ) |
158133| Support us | [ ![ donations] ( https://liberapay.com/assets/widgets/donate.svg )] ( https://liberapay.com/SFTtech ) |
159134
160-
161135## License
162136
163137Released under the ** GNU General Public License** version 2 or later, [ LICENSE] ( legal/GPL-2 ) for details.
0 commit comments