Skip to content

Commit 01944ca

Browse files
committed
fix: added hybrid support for setuptools
1 parent 8647812 commit 01944ca

File tree

3 files changed

+11
-10
lines changed

3 files changed

+11
-10
lines changed

README.rst

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,21 +115,22 @@ You can install libnmap via pip:
115115
116116
ronald@brouette:~$ pip install python-libnmap
117117
118-
or via git and dist utils (à l’ancienne):
118+
or via git and pip:
119119

120120
.. code:: bash
121121
122122
ronald@brouette:~$ git clone https://github.com/savon-noir/python-libnmap.git
123123
ronald@brouette:~$ cd python-libnmap
124-
ronald@brouette:~$ python setup.py install
124+
ronald@brouette:~$ pip install .
125125
126-
or via git and pip:
126+
or via git and dist utils (à l’ancienne/deprecated):
127127

128128
.. code:: bash
129129
130130
ronald@brouette:~$ git clone https://github.com/savon-noir/python-libnmap.git
131131
ronald@brouette:~$ cd python-libnmap
132-
ronald@brouette:~$ pip install .
132+
ronald@brouette:~$ python setup.py install
133+
133134
134135
Examples
135136
--------

requirements-dev.txt

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
black==22.8.0
2-
defusedxml==0.6.0
3-
isort==5.6.4
1+
black==24.3.0
2+
defusedxml==0.7.1
3+
isort==6.0.0
44
pre-commit
55
pytest
66
pytest-cov
77
flake8
8-
setuptools

setup.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,10 @@
55
except ImportError:
66
from distutils.core import setup
77

8-
98
if sys.version_info >= (3, 0):
109
with open("README.rst", encoding="utf-8") as rfile:
1110
long_description = rfile.read()
12-
else: # encoding not compatible with python2
11+
else: # if encoding not compatible with python2
1312
with open("README.rst") as rfile:
1413
long_description = rfile.read()
1514

@@ -42,6 +41,8 @@
4241
"Programming Language :: Python :: 3.6",
4342
"Programming Language :: Python :: 3.7",
4443
"Programming Language :: Python :: 3.8",
44+
"Programming Language :: Python :: 3.9",
45+
"Programming Language :: Python :: 3.10",
4546
"Topic :: System :: Networking",
4647
],
4748
)

0 commit comments

Comments
 (0)