Commit graph

150 commits

Author SHA1 Message Date
Alexandre Aubin
ed426f05ba apps/helpers2.1: fix app env in resource upgrade context ending up in incorrect helper version being used 2024-06-24 22:13:01 +02:00
alexAubin
18092db1c8 🎨 Format Python code with Black 2024-06-22 23:15:07 +00:00
Alexandre Aubin
ecb82ec693 Oopsies 2024-06-23 01:14:41 +02:00
Alexandre Aubin
31ae5d1eaa Misc fixes for flake8/mypy 2024-06-23 01:05:39 +02:00
alexAubin
b1b3c6eff8 🎨 Format Python code with Black 2024-06-20 17:07:42 +00:00
Alexandre Aubin
2ee8d93f67
Merge pull request #1855 from YunoHost/helpers-2.1
Helpers 2.1
2024-06-20 19:07:21 +02:00
Alexandre Aubin
6605df6eb2 helpers2.1: use the appropriate helper for apt provisioning/deprovisioning depending on the helpers_version in the manifest 2024-06-20 19:06:54 +02:00
e12d79390f resources/db: ensure dbtype is valid 2024-06-20 11:15:19 +02:00
Alexandre Aubin
800f93d12e helpers2.1: further simplify mysql/postgresql helper: no keyword arg, remove ynh_foo_setup_db and ynh_foo_remove_db (the other helpers are enough), replace ynh_foosql_connect_as/ynh_foosql_execute* with a single ynh_foosql_db_shell that reads stdin 2024-06-13 12:39:05 +02:00
259c7ac4a7 resources.py apt: Fix when multiple extras are passed
A wrong indentation leads to code executed at every for loop iteration. If multiple apt.extras resources, this fails
at the first iteration.
2024-06-10 17:36:46 +02:00
Alexandre Aubin
5e4e59a133
Update resources.py 2024-04-11 23:30:18 +02:00
alexAubin
a665f2550c 🎨 Format Python code with Black 2024-04-11 22:45:57 +02:00
Alexandre Aubin
a5560c3035
Update resources.py: fix edge case when parsing app ustream version from resource manager 2024-04-11 21:19:14 +02:00
Alexandre Aubin
22b30c79c0 Zgrompf 2024-04-11 16:03:10 +02:00
Alexandre Aubin
29c597ed8e Missing import oopsi 2024-04-11 14:32:39 +02:00
Alexandre Aubin
a3ab7c9199 app resources: add __YNH_DEBIAN_VERSION_ID__ in available variable, corresponing to debian number (11, 12, ...) 2024-04-11 00:38:23 +02:00
tituspijean
ff6b6954aa 🎨 Format Python code with Black 2024-04-10 20:32:30 +00:00
tituspijean
835303200d
Fix and enh variables for app resources
Co-authored-by: Alexandre Aubin <alex.aubin@mailoo.org>
2024-04-10 22:31:53 +02:00
alexAubin
a733ea45c3 🎨 Format Python code with Black 2024-04-10 19:03:03 +00:00
Alexandre Aubin
ba0ad78df5
Merge pull request #1751 from Salamandar/variables_in_manifest
Variables in manifest
2024-04-10 21:02:44 +02:00
Alexandre Aubin
0864014ea1 Move recursive_apply directly where it's used, having a small algorithms.py just for this is too convoluted 2024-04-10 20:59:54 +02:00
Alexandre Aubin
e8ad12de24
Merge pull request #1793 from YunoHost/fixes-doc-markdown
doc generation: fix markdown
2024-03-02 16:10:10 +01:00
OniriCorpe
c512425bd9 dog generation: fix markdown 2024-03-02 08:30:57 +01:00
OniriCorpe
8f6df354b8
break line 2024-03-01 03:31:43 +01:00
yunohost-bot
30679c0c57 [CI] Format code with Black 2024-03-01 01:08:42 +00:00
OniriCorpe
da5181f057
Add autoupdate.version_regex to the doc
original commit: 93793fef44
2024-02-24 02:07:53 +01:00
Alexandre Aubin
ec4b1e9f96
Merge pull request #1776 from OniriCorpe/update-autoupdate-docs
Autoupdate: update docs
2024-02-15 02:38:06 +01:00
OniriCorpe
cfee750e32 draft 2024-02-15 02:24:45 +01:00
yunohost-bot
c695aa549a [CI] Format code with Black 2024-02-09 20:12:27 +00:00
Alexandre Aubin
820a79c238
Update resources.py: used_ports -> ports_used_by_self 2024-01-28 22:28:45 +01:00
8727e74eab Fix port reuse during provisionning.
Before this, provisionning might use twice the same port (second app install for example).
Indeed, _port_is_used only checks processes and already installed apps. Not the current
app being installed.
2024-01-28 22:22:36 +01:00
Alexandre Aubin
a44ea14141 Update copyright headers to 2024 using maintenance/update_copyright_headers.sh 2024-01-13 19:26:47 +01:00
OniriCorpe
b424ae01c1 document changelog link for latest_github_release 2024-01-04 23:59:02 +01:00
fb2ca1f27d Add __ARCH__ and __DEBIAN_VERSION__ to available variables in manifest.toml 2023-12-14 17:30:11 +01:00
7981653c23 Apply __APP__ -> self.app recursively thanks to recursive_apply 2023-12-14 17:30:11 +01:00
yunohost-bot
ce0cbc5fed [CI] Format code with Black 2023-11-24 21:53:33 +00:00
Alexandre Aubin
1131e76f4c quality: fix typo, handle mypy error 2023-10-30 19:19:02 +01:00
Alexandre Aubin
157f8c8121
Merge pull request #1729 from YunoHost/extras_packages_from_raw_bash
Support packages_from_raw_bash in extra packages
2023-10-30 18:51:51 +01:00
Alexandre Aubin
54bc79ed58
Apply suggestions from code review 2023-10-22 18:53:57 +02:00
Sebastian Gumprich
74fd75ea33
fix typos 2023-10-22 18:43:26 +02:00
Alexandre Aubin
662998a1ab
Update src/utils/resources.py 2023-10-16 15:49:12 +02:00
tituspijean
23cdf91b01
Restore deleted line 2023-10-15 16:49:55 +02:00
tituspijean
dc362dd636
Revert packages_from_raw_bash test
Co-authored-by: Alexandre Aubin <alex.aubin@mailoo.org>
2023-10-15 16:48:59 +02:00
tituspijean
a69b80972e
Improve support for packages_from_raw_bash
Co-authored-by: Alexandre Aubin <4533074+alexAubin@users.noreply.github.com>
2023-10-15 16:46:24 +02:00
tituspijean
96e99459e6
Support packages_from_raw_bash in extra packages 2023-10-15 16:31:14 +02:00
Tagada
73a144fa46
Update src/utils/resources.py
Co-authored-by: Alexandre Aubin <alex.aubin@mailoo.org>
2023-08-22 17:12:03 +02:00
Tagada
ee4d94d382
Update src/utils/resources.py
Co-authored-by: Alexandre Aubin <alex.aubin@mailoo.org>
2023-08-22 17:11:56 +02:00
Tagada
32376cf18f
Use the existing db_name setting for database provising
This should help upgrading an app from packaging v1 when db_name was different from `app`
2023-08-21 16:39:54 +02:00
yunohost-bot
6e63b6fc53 [CI] Format code with Black 2023-07-17 16:00:11 +00:00
Alexandre Aubin
961dc5a6ee
Merge pull request #815 from YunoHost/allow-system-user-to-auth-on-mail-stack
Allow system users to auth on the mail stack and send emails
2023-07-10 19:14:30 +02:00