fix: requirement packages

This commit is contained in:
Hieu Le committed 2021-03-31 23:41:35 +07:00
1 parent 12b1b6ef00
commit c1a61b40a3
3 files changed
+17 -11

No files matched your search

-7
View File
@@ -10,12 +10,6 @@ cd cicflowmeter
python setup.py install
```
or
```sh
pip install cicflowmeter
```
### Usage
```sh
@@ -44,4 +38,3 @@ cicflowmeter -i eth0 -c flows.csv
```
### Reference: https://www.unb.ca/cic/research/applications.html#CICFlowMeter
+3 -3
View File
@@ -1,4 +1,4 @@
numpy~=1.18
scipy~=1.4.1
scapy~=2.4.3
numpy==1.18
scipy==1.4.1
scapy==2.4.3
requests
+14 -1
View File
@@ -14,7 +14,20 @@ AUTHOR = "Le Hieu"
REQUIRES_PYTHON = ">=3.7.0"
VERSION = None
REQUIRED = ["numpy", "scipy", "scapy"]
def get_requirements(source: str = "requirements.txt"):
requirements = []
with open(source) as f:
for line in f:
package, _, comment = line.partition("#")
package = package.strip()
if package:
requirements.append(package)
return requirements
REQUIRED = get_requirements("requirements.txt")
# The rest you shouldn't have to touch too much :)
# ------------------------------------------------