-
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds several improvements and updates
- Removes setup.py in favor of pyproject.toml. - Upgrades bootstrap to version 5.2.3. - Replace jquery functions with pure js. - Removes all external dependencies that were loaded from the HTML, now sysdweb can run in a completely isolated environment. - Fixes a problem that caused the journal not to be displayed in the systemd user units.
- Loading branch information
Showing
29 changed files
with
274 additions
and
593 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
github: ogarcia |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: Upload Python Package | ||
|
||
on: | ||
release: | ||
types: [created] | ||
|
||
jobs: | ||
deploy: | ||
name: Upload to PyPi | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.10' | ||
- name: Install build and publish dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install build twine | ||
- name: Build and publish | ||
env: | ||
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} | ||
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} | ||
run: | | ||
python -m build --sdist --no-isolation | ||
twine upload dist/* |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
[build-system] | ||
requires = ["setuptools"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "sysdweb" | ||
version = "1.1.5" | ||
description = "Control systemd services through Web or REST API" | ||
readme = "README.md" | ||
requires-python = ">=3.10" | ||
license = {file = "LICENSE"} | ||
keywords = ["REST API", "systemd"] | ||
authors = [ | ||
{name = "Óscar García Amor", email = "ogarcia@connectical.com"} | ||
] | ||
classifiers = [ | ||
"Development Status :: 5 - Production/Stable", | ||
"Environment :: Web Environment", | ||
"Framework :: Bottle", | ||
"Intended Audience :: End Users/Desktop", | ||
"Intended Audience :: System Administrators", | ||
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)", | ||
"Natural Language :: English", | ||
"Operating System :: POSIX :: Linux", | ||
"Programming Language :: Python :: 3", | ||
"Topic :: System", | ||
"Topic :: Utilities" | ||
] | ||
dependencies = [ | ||
"bottle ~= 0.12.25", | ||
"dbus-python ~= 1.3.2", | ||
"python-pam ~= 2.0.2", | ||
"systemd-python" | ||
] | ||
|
||
[tool.setuptools.packages.find] | ||
include = ["sysdweb*"] | ||
|
||
[tool.setuptools.package-data] | ||
"*" = [ | ||
"sysdweb.conf" | ||
] | ||
sysdweb = [ | ||
"templates/static/css/*", | ||
"templates/static/img/*", | ||
"templates/static/js/*", | ||
"templates/views/*" | ||
] | ||
|
||
[project.scripts] | ||
sysdweb = "sysdweb.main:main" | ||
|
||
[project.urls] | ||
"Bug Reports" = "https://github.com/ogarcia/sysdweb/issues" | ||
"Source" = "https://github.com/ogarcia/sysdweb" |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +0,0 @@ | ||
# -*- coding: utf-8 -*- | ||
# vim:fenc=utf-8 | ||
# | ||
# Copyright © 2016-2018 Óscar García Amor <ogarcia@connectical.com> | ||
# | ||
# Distributed under terms of the GNU GPLv3 license. | ||
|
||
NAME = 'sysdweb' | ||
VERSION = '1.1.4' | ||
AUTHOR_NAME = 'Óscar García Amor' | ||
AUTHOR_EMAIL = 'ogarcia@connectical.com' | ||
DESCRIPTION = 'Control systemd services through Web or REST API' | ||
KEYWORDS = 'systemd web api easy' | ||
URL = 'https://github.com/ogarcia/sysdweb' | ||
LICENSE = 'GPLv3' | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.