Skip to content

Commit

Permalink
Replaced newer python string manipulation expressions with regex
Browse files Browse the repository at this point in the history
Splitted code in functions
Simplified some parts with shorter statements
Minor corrections to make the program compatible with python >=3.0
  • Loading branch information
a13ssandr0 committed Dec 4, 2022
1 parent 8ec8c5b commit 53669ac
Show file tree
Hide file tree
Showing 5 changed files with 316 additions and 278 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -157,4 +157,6 @@ cython_debug/
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
# and can be added to the global gitignore or merged into this file. For a more nuclear
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
#.idea/
#.idea/

.vscode/
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ Ufw terminal frontend based on dialog
#
## Installation
Tufw **NEEDS** to be installed as root, because it needs to run as root and python won't load the module if it's installed as a normal user.

Tufw requires python3.0 or newer.
```sh
sudo python3 -m pip install tufw
# OR
Expand All @@ -15,7 +17,7 @@ Obviously Tufw needs [`dialog`](https://invisible-island.net/dialog/), so instal
```sh
sudo apt install dialog
```
or what you use on your distribution.
or whatever you use on your distribution.
#
## Running
As ufw, Tufw needs to be run as root.
Expand Down
3 changes: 2 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = tufw
version = 1.0.1
version = 1.1.0
author = Alessandro Campolo
author_email = [email protected]
description = Ufw terminal frontend based on dialog
Expand All @@ -18,6 +18,7 @@ classifiers =
package_dir =
= src
packages = find:
python_requires = >= 3.0
install_requires =
pythondialog

Expand Down
Loading

0 comments on commit 53669ac

Please sign in to comment.