Added experimental support for other operating systems.

development
Shawn Davis 1 year ago
parent a8f811a256
commit 56e6af404e
  1. 2
      Makefile
  2. 2
      RELEASE.txt
  3. 2
      VERSION.txt
  4. 1
      help/en/docs/usage/packages.md
  5. 2
      help/en/docs/usage/posix.md
  6. 4
      scripttease/constants.py
  7. 4
      scripttease/lib/factories.py
  8. 8
      scripttease/version.py

@ -85,7 +85,7 @@ support:
cp meta.ini $(DOCS_PATH)/config/$(PROJECT_NAME).ini; cp meta.ini $(DOCS_PATH)/config/$(PROJECT_NAME).ini;
cd $(DOCS_WWW)/en/$(PROJECT_NAME) && ln -fs $(RELEASE) latest; cd $(DOCS_WWW)/en/$(PROJECT_NAME) && ln -fs $(RELEASE) latest;
cd $(DOCS_WWW)/en/$(PROJECT_NAME) && ln -fs $(RELEASE) stable; # if product is stable cd $(DOCS_WWW)/en/$(PROJECT_NAME) && ln -fs $(RELEASE) stable; # if product is stable
cd $(DOCS_PATH) && make build; #cd $(DOCS_PATH) && make build;
#> tests - Run unit tests and generate coverage report. #> tests - Run unit tests and generate coverage report.
tests: tests:

@ -1 +1 @@
7.0.0-a 7.1.0-a

@ -1 +1 @@
7.0.0 7.1.0

@ -39,6 +39,7 @@ sudo: yes
Upgrade system packages. Upgrade system packages.
```ini ```ini
[upgrade system packages]
upgrade: upgrade:
sudo: yes sudo: yes
``` ```

@ -1,6 +1,6 @@
# POSIX # POSIX
Summary: Work with common POSIX-compliant commands.. Summary: Work with common POSIX-compliant commands.
## Available Commands ## Available Commands

@ -19,4 +19,8 @@ class PROFILE:
"""Supported operating system profiles.""" """Supported operating system profiles."""
CENTOS = "centos" CENTOS = "centos"
DEBIAN = "debian"
FEDORA = "fedora"
REDHAT = "redhat"
POP_OS = "pop_os"
UBUNTU = "ubuntu" UBUNTU = "ubuntu"

@ -33,9 +33,9 @@ def command_factory(loader, excluded_kwargs=None, mappings=None, profile=PROFILE
""" """
# Identify the command mappings to be used. # Identify the command mappings to be used.
if profile == PROFILE.CENTOS: if profile in (PROFILE.CENTOS, PROFILE.FEDORA, PROFILE.REDHAT):
_mappings = CENTOS_MAPPINGS _mappings = CENTOS_MAPPINGS
elif profile == PROFILE.UBUNTU: elif profile in (PROFILE.DEBIAN, PROFILE.POP_OS, PROFILE.UBUNTU):
_mappings = UBUNTU_MAPPINGS _mappings = UBUNTU_MAPPINGS
else: else:
log.error("Unsupported or unrecognized profile: %s" % profile) log.error("Unsupported or unrecognized profile: %s" % profile)

@ -1,5 +1,7 @@
DATE = "2023-03-30" DATE = "2023-09-12"
VERSION = "7.0.0" VERSION = "7.1.0"
MAJOR = 7 MAJOR = 7
MINOR = 0 MINOR = 1
PATCH = 0 PATCH = 0
STATUS = "a"

Loading…
Cancel
Save