Skip to content

Commit c367565

Browse files
committed
python: configure to use Poetry
1 parent b14e37e commit c367565

3 files changed

Lines changed: 75 additions & 10 deletions

File tree

README.md

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,32 @@ sudo python3 setup.py install
138138
sudo wifite
139139
```
140140

141-
### Development Install
141+
### Development Install with Poetry (Recommended for Developers)
142+
143+
Poetry provides better dependency management and reproducible builds:
144+
145+
```bash
146+
# Install Poetry (if not already installed)
147+
curl -sSL https://install.python-poetry.org | python3 -
148+
149+
# Clone and enter directory
150+
git clone https://github.com/kimocoder/wifite2.git
151+
cd wifite2
152+
153+
# Install all dependencies (creates virtual environment automatically)
154+
poetry install
155+
156+
# Run wifite
157+
sudo poetry run wifite
158+
159+
# Or activate the Poetry shell
160+
poetry shell
161+
sudo wifite
162+
```
163+
164+
**See [POETRY.md](POETRY.md) for detailed Poetry usage and commands.**
165+
166+
### Development Install with pip
142167

143168
For development or if you want to modify wifite:
144169

pyproject.toml

Lines changed: 49 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,56 @@
1-
[tool.poetry]
1+
[project]
22
name = "wifite2"
3-
version = "0.1.0"
4-
description = ""
5-
authors = ["kimocoder <christian@aircrack-ng.org>"]
3+
version = "2.9.9-beta"
4+
description = "Wireless Network Auditor for Linux & Android"
5+
authors = [
6+
{name = "kimocoder", email = "christian@aircrack-ng.org"}
7+
]
68
readme = "README.md"
9+
license = "GPL-2.0-only"
10+
requires-python = ">=3.9"
11+
keywords = ["wireless", "security", "auditing", "penetration-testing", "wifi"]
12+
classifiers = [
13+
"Programming Language :: Python :: 3",
14+
"Programming Language :: Python :: 3.9",
15+
"Programming Language :: Python :: 3.10",
16+
"Programming Language :: Python :: 3.11",
17+
"Programming Language :: Python :: 3.12",
18+
"Programming Language :: Python :: 3.13",
19+
"Operating System :: POSIX :: Linux",
20+
"Topic :: Security",
21+
]
22+
dependencies = [
23+
"chardet>=5.2.0",
24+
"rich>=13.0.0",
25+
"scapy>=2.6.1; python_version < '4'",
26+
"setuptools>=78.1.1",
27+
]
28+
29+
[project.urls]
30+
Homepage = "https://github.com/kimocoder/wifite2"
31+
Repository = "https://github.com/kimocoder/wifite2"
32+
Issues = "https://github.com/kimocoder/wifite2/issues"
33+
34+
[project.scripts]
35+
wifite = "wifite.wifite:main"
736

8-
[tool.poetry.dependencies]
9-
python = "^3.11"
10-
setuptools = "^80.9.0"
11-
chardet = "^5.2.0"
37+
[project.optional-dependencies]
38+
dev = [
39+
"pytest>=8.0.0",
40+
"pytest-cov>=4.1.0",
41+
]
42+
43+
[tool.poetry]
44+
packages = [
45+
{ include = "wifite" }
46+
]
1247

48+
[tool.pytest.ini_options]
49+
testpaths = ["tests"]
50+
python_files = ["test_*.py"]
51+
python_classes = ["Test*"]
52+
python_functions = ["test_*"]
53+
addopts = "-v --tb=short"
1354

1455
[build-system]
1556
requires = ["poetry-core"]

setup.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
long_description_content_type='text/markdown',
3434
classifiers=[
3535
"Programming Language :: Python :: 3",
36-
"Programming Language :: Python :: 3.8",
3736
"Programming Language :: Python :: 3.9",
3837
"Programming Language :: Python :: 3.10",
3938
"Programming Language :: Python :: 3.11",

0 commit comments

Comments
 (0)