Compare commits

...
17 Commits
Author SHA1 Message Date
arcanis 11965d78d3 remove crap from local pyprojects 2026-07-17 10:03:02 +03:00
arcanis 6664a2e656 remove empty conftest 2026-07-17 09:09:10 +03:00
arcanis 6c0fdcda6e simplify configuration fixture 2026-07-17 09:05:32 +03:00
arcanis a8888aa106 disable pylint warning 2026-07-17 08:58:48 +03:00
arcanis 5d4502aaed remove duplicate fixtures 2026-07-17 08:54:32 +03:00
arcanis 198b9d4f5d move fixtures to __init__.py 2026-07-17 00:53:38 +03:00
arcanis da1ded5c0e fix setup script 2026-07-16 23:29:59 +03:00
arcanis 7f7e5da2d5 move root conftest into pytest plugins 2026-07-16 23:07:33 +03:00
arcanis 7c7b4a86af some play with renaming 2026-07-16 23:07:33 +03:00
arcanis ce985e6a7c cleanup pyproject 2026-07-16 23:07:33 +03:00
arcanis 6b21516f9d reformat tomls 2026-07-16 23:07:33 +03:00
arcanis 48511bc3f2 fix tox environments 2026-07-16 23:07:33 +03:00
arcanis 2233002ad3 fix docs generation 2026-07-16 23:07:33 +03:00
arcanis 11ed790ff2 straight forward conftest 2026-07-16 23:07:33 +03:00
arcanis 2be82611bf generic fixtures 2026-07-16 23:07:33 +03:00
arcanis a9767c3583 reorder tests 2026-07-16 23:07:33 +03:00
arcanis d02ed8627d migrate to hatch 2026-07-16 23:07:33 +03:00
815 changed files with 833 additions and 638 deletions

No files matched your search

+5
View File
@@ -0,0 +1,5 @@
[tool.bandit]
skips = [
"B404",
"B603",
]
-3
View File
@@ -1,3 +0,0 @@
skips:
- B404
- B603
+5 -5
View File
@@ -12,7 +12,7 @@ pacman -Syyu --noconfirm
# main dependencies
pacman -S --noconfirm devtools git npm pyalpm python-bcrypt python-filelock python-inflection python-pyelftools python-requests python-systemd sudo
# make dependencies
pacman -S --noconfirm --asdeps base-devel python-build python-flit python-installer python-tox python-wheel
pacman -S --noconfirm --asdeps base-devel python-build python-hatchling python-installer python-tox python-wheel
# optional dependencies
if [[ -z $MINIMAL_INSTALL ]]; then
# web server
@@ -26,10 +26,10 @@ cp "docker/systemd-nspawn.sh" "/usr/local/bin/systemd-nspawn"
# create fresh tarball
tox -e archive
# run makepkg
PKGVER=$(python -c "from src.ahriman import __version__; print(__version__)")
mv "dist/ahriman-$PKGVER.tar.gz" package/archlinux
chmod +777 package/archlinux # because fuck you that's why
cd package/archlinux
PKGVER=$(PYTHONPATH=ahriman-core/src python -c "from ahriman import __version__; print(__version__)")
mv "dist/ahriman-$PKGVER.tar.gz" archlinux
chmod +777 archlinux # because fuck you that's why
cd archlinux
sudo -u nobody -- makepkg -cf --skipchecksums --noconfirm
sudo -u nobody -- makepkg --packagelist | grep "ahriman-core-$PKGVER" | pacman -U --noconfirm --nodeps -
if [[ -z $MINIMAL_INSTALL ]]; then
+5 -2
View File
@@ -103,5 +103,8 @@ docs/html/
# Frontend
node_modules/
package-lock.json
package/share/ahriman/templates/static/index.js
package/share/ahriman/templates/static/index.css
ahriman-web/package/share/ahriman/templates/static/index.js
ahriman-web/package/share/ahriman/templates/static/index.css
# local configs
/*.ini
-5
View File
@@ -1,5 +0,0 @@
[pytest]
addopts = --cov=ahriman --cov-report=term-missing:skip-covered --no-cov-on-fail --cov-fail-under=100 --spec
asyncio_default_fixture_loop_scope = function
asyncio_mode = auto
spec_test_format = {result} {docstring_summary}
+8
View File
@@ -0,0 +1,8 @@
[pytest]
addopts = [
"--spec",
]
asyncio_default_fixture_loop_scope = "function"
asyncio_mode = "auto"
"resource-path.directory-name-test-resources" = "../../tests/testresources"
spec_test_format = "{result} {docstring_summary}"
+64
View File
@@ -0,0 +1,64 @@
[build-system]
requires = [
"hatchling",
]
build-backend = "hatchling.build"
[project]
name = "ahriman-core"
dependencies = [
"bcrypt",
"filelock",
"inflection",
"pyelftools",
"requests",
]
description = "ArcH linux ReposItory MANager, core package"
dynamic = [
"version",
]
requires-python = ">=3.13"
[project.optional-dependencies]
journald = [
"systemd-python",
]
# FIXME technically this dependency is required, but in some cases we do not have access to
# the libalpm which is required in order to install the package. Thus in case if we do not
# really need to run the application we can move it to "optional" dependencies
pacman = [
"pyalpm",
]
reports = [
"Jinja2",
]
s3 = [
"boto3",
]
shell = [
"IPython",
]
stats = [
"matplotlib",
]
unixsocket = [
"requests-unixsocket2", # required by unix socket support
]
validator = [
"cerberus",
]
[project.scripts]
ahriman = "ahriman.application.ahriman:run"
[tool.hatch.build.targets.wheel]
packages = [
"src/ahriman",
]
[tool.hatch.build.targets.wheel.shared-data]
"package/lib" = "lib"
"package/share" = "share"
[tool.hatch.version]
path = "src/ahriman/__init__.py"
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loaded 100 of 815 files, more files were not shown because too many files have changed in this diff. Show more