Skip to content

Commit

Permalink
Require Python 3.9
Browse files Browse the repository at this point in the history
for importlib.resources.files
  • Loading branch information
mnot committed Sep 15, 2023
1 parent 67d1b95 commit 3b21fe1
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
strategy:
max-parallel: 2
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
python-version: ["3.9", "3.10", "3.11"]
steps:
- uses: actions/checkout@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ message_test: venv

.PHONY: typecheck
typecheck: venv
PYTHONPATH=$(VENV) $(VENV)/python -m mypy redbot
PYTHONPATH=$(VENV) $(VENV)/python -m mypy --python-version 3.9 redbot

#############################################################################
### Coverage
Expand Down
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ Your ideas, questions and other contributions are most welcome. See

### Installation

REDbot requires [Python](https;/python.org/) 3.9 or greater.

The recommended method for installing REDbot is using `pipx`. To install the latest release, do:

> pipx install redbot
Expand All @@ -37,16 +39,18 @@ Both of these methods will install the following into your [pipx binary folder](

REDbot can run as a standalone service, managed by [systemd](https://freedesktop.org/wiki/Software/systemd/). This offers a degree of sandboxing and resource management, as well as process monitoring (including a watchdog function).

To do this, install REDbot on your system (possibly changing the `PIPX_HOME` environment variable) and copy `extra/redbot.service` into the appropriate directory (on most systems, `/etc/systemd/system/`.)
To do this, install REDbot on your system (possibly changing the `PIPX_HOME` environment variable), with the `systemd` option. For example:

> pipx install redbot[systemd]
The copy `extra/redbot.service` into the appropriate directory (on most systems, `/etc/systemd/system/`.)

Modify the file appropriately; this is only a sample. In particular, you will need to adjust the first part of `BindReadOnlyPaths` to suit the location of the REDbot directory for you.

Then, as root:

> systemctl reload-daemon
> systemctl enable redbot
> systemctl start redbot
By default, REDbot will listen on localhost port 8000. This can be adjusted in `config.txt`. Running REDbot behind a reverse proxy is recommended, if it is to be exposed to the Internet.
Expand Down
4 changes: 2 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ project_urls =
Bug Tracker = https://github.com/mnot/redbot/issues
classifiers =
Operating System :: OS Independent
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.9
Development Status :: 4 - Beta
Intended Audience :: Developers
Intended Audience :: System Administrators
Expand All @@ -26,7 +26,7 @@ classifiers =
package_dir =
redbot = redbot
packages = find:
python_requires = >=3.8
python_requires = >=3.9
install_requires =
thor >= 0.9.6
markdown >= 2.6.5
Expand Down

0 comments on commit 3b21fe1

Please sign in to comment.