Commit Graph

41 Commits

Author SHA1 Message Date
1b93f4f5e0 fix: drop debug toolbar 2023-12-20 16:26:14 +02:00
c130f52163 chore: add configuration recipes 2023-12-20 10:00:12 +02:00
5fb93bd331 build: drop makefile
It has been a while since we moved to tox. Lets also drop makefile since
it seems to be useless with tox
2023-12-17 02:26:52 +02:00
1e00bf9398 feat: allow to use single web instance for all repositories (#114)
* Allow to use single web instance for any repository

* some improvements

* drop includes from user home directory, introduce new variables to docker

The old solution didn't actually work as expected, because devtools
configuration belongs to filesystem (as well as sudo one), so it was
still required to run setup command.

In order to handle additional repositories, the POSTSETUP and PRESETUP
commands variables have been introduced. FAQ has been updated as well

* raise 404 in case if repository is unknown
2023-10-17 03:58:50 +03:00
bc9682373d fix: processes in docker images and pass full environment to
subprocesses

Since 1.0.4 release devtools require systemd to be run in order to
create slice for unit
2023-09-29 03:57:26 +03:00
59356e905a feat: allow to use one application for multiple repositories (#111)
* allow to use one application for multiple repositories

* update tests

* handle None append argument everywhere

* rewrite repository definition logic

* drop optional flags from docs

* support of new schema in systemd units

* add migration docs and ability to migrate tree automatically

* use repostory id instead

* verbose multiarchitectureerror

* object path support for s3 sync

* fix tests after rebase
2023-09-08 14:01:07 +03:00
2c21ae26c3 ci: publish docker image to ghcr 2023-08-28 03:21:25 +03:00
5b172ad20b update gh actions install script 2023-08-17 16:33:02 +03:00
480c3a54b8 full support of pep517
Since llast upgrade build is broken. Lets fully migrate to
pyproject.toml. Note for maintaners: because data_files option is
deprectated (see https://github.com/pypa/setuptools/discussions/2648)
you will have to install files manually inside your packaging process
2023-08-11 03:55:31 +03:00
8b2601beaa switch to explicit journald logger instead of syslog 2023-05-25 04:44:38 +03:00
c73a6c7bae PEP-673 use Self as return type for classmethods (#94)
* PEP-673 use Self as return type for classmethods

* add dummy test file

* remove python3.10 compat
2023-05-04 03:28:08 +03:00
fc01bf3d1c use api generated docs instead of comments (#92) 2023-04-06 00:24:39 +03:00
00ca06ffab subcommand review
Some commands have been moved to another group and thus having another
default name (old subcommands are still available...for now):

* daemon -> repo-daemon
* key-import -> service-key-import
* repo-clean -> service-clean
* repo-config -> service-config
* repo-config-validate -> service-config-validate
* repo-setup -> service-setup
* repo-shell -> service-shell
* version -> help-version
2023-01-12 15:37:05 +02:00
b09aea13af add config validator subcommand (#80)
* add config validator subcommand

* add --exit-code flag

* docs & faq update
2023-01-09 18:22:29 +03:00
00dbd90953 check that package has been created during setup workflow 2022-12-06 11:09:56 +02:00
20b9c1fa4a add security notes 2022-11-24 02:38:33 +02:00
16a33f7729 add minimal install step to workflow 2022-09-17 14:52:08 +03:00
43696b9920 Make optional dependencies trully optional (#67)
The issue appears when there is no boto, jinja and some other libraries
are not installed because the classes which use these libraries are
still being imported inside the package file. The fix removes those
imports from package root, because they should not be here, in fact,
content of report and upload packages must be imported only inside the
trigger class and only if they are actually required

This commit also adds setuptools as required dependency since it is used
for some parsers (previously it was provided dependency)
2022-09-11 01:44:06 +03:00
d7966e419d add shell and version parser 2022-05-27 18:34:07 +03:00
c67ac3730c docs update 2022-04-11 00:46:46 +03:00
7ea50887a4 allow any tag for push 2022-04-04 02:39:56 +03:00
63acae4b1c configure docker to work with tags 2022-03-31 02:19:48 +03:00
d4eadf0013 migrate to tox
this also requires to move default configuration files to share/ahriman.
Thus the following features have been added
* default configuration is not stored in /usr/share/ahriman/settings
* package installed via PKGBUILD now copies files from /usr
* configuration class now fallbacks to default in /usr
2022-03-21 04:38:42 +03:00
04174a3e6d deprecate init/repo-init command
In current workflow you need to run setup to run init (because of
repository name), but you need to run init before setup (because of
repository tree rights).

New solution just add `Repo.init()` method call to setup subcommand
after config reload to make sure that repository name has been applied.
In addition chown method as well as setuid method for check_output have
been added.
2022-03-21 01:32:11 +03:00
041b3824c1 enable privileged mode for the docker 2022-03-20 04:05:43 +03:00
93406483fe docker hub integration 2022-03-14 00:08:21 +03:00
9057ecf67a always update environnment before any action 2021-10-24 04:14:57 +03:00
faaf72a840 improve scripts
move logic to separated shell scripts and also create shell script for
repository setup

Also force create directory according to systemd recommendations
2021-10-11 02:20:16 +03:00
22272167e6 change spelling for distro name 2021-09-13 02:49:22 +03:00
8f55cc600e add manpage generator 2021-08-17 04:05:18 +03:00
d548fa02f0 add docstrings for every fixture and test methods
also add tests for missing components
2021-08-11 01:55:27 +03:00
aad599be67 Native s3 sync (#23)
* Native S3 sync implementation

* fix imports

* fix paths reading

* install s3 components duriing test stage
2021-08-10 23:18:56 +03:00
a0e6009876 better naming for actions 2021-04-09 20:02:17 +03:00
81afa23d98 update changelog at correct step
also fix commit filter and do not update sha anymore
2021-04-05 02:22:11 +03:00
c2c7ee6292 add changelog generator to both gh-actions and repository 2021-04-05 02:00:05 +03:00
20d13f1c10 use globing instead 2021-04-05 00:44:39 +03:00
9b08b0694e try to make auto archive upload 2021-04-05 00:37:03 +03:00
a89888769f Setup command (#9)
* block issues without templates

* add setup subcommand

* handle devtools config correctly
2021-03-29 03:24:58 +03:00
b6bc1b77dc more templates 2021-03-29 00:13:20 +03:00
4a462502e7 Add issue templates 2021-03-28 23:50:41 +03:00
f383b04754 try to integrate with github workflows 2021-03-28 23:13:42 +03:00