Skip to content

Commit d7cd5b0

Browse files
authored
Merge pull request #48 from dlenski/fix_PySNMP_dependency_versioning
Add requirements.txt and fix PySNMP dependency versioning
2 parents 078f8ba + d6b3dea commit d7cd5b0

2 files changed

Lines changed: 17 additions & 0 deletions

File tree

‎README.md‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,13 @@ I hope people find this project useful but I am not getting paid for it. If you
1313

1414
# Install prerequisites
1515

16+
The `requirements.txt` file contains the required dependency versioning for
17+
the PySNMP dependency. It can be installed with:
18+
19+
```
20+
pip install -r requirements.txt
21+
```
22+
1623
## On Debian-based distributions (e.g. Debian/Mint/Ubuntu)
1724

1825
```

‎requirements.txt‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# oh-brother uses the `pysnmp.entity.rfc3413.oneliner` module, which was
2+
# removed in v6.2 (see https://github.com/lextudio/pysnmp/compare/v6.1.4..v6.2).
3+
# So v6.1.4 is the highest version of PySNMP that we can currently use.
4+
#
5+
# Additionally, Python 3.12 completely removes the `asyncore` module from
6+
# the standard library, so PySNMP versions older than 6.x do not work with
7+
# it.
8+
9+
pysnmp >= 4, <= 6.1.4 ; python_version < "3.12"
10+
pysnmp >= 6, <= 6.1.4 ; python_version >= "3.12"

0 commit comments

Comments
 (0)