Skip to content

Commit

Permalink
fix: added hybrid support for setuptools
Browse files Browse the repository at this point in the history
  • Loading branch information
savon-noir committed Jan 29, 2025
1 parent 1ad07e3 commit 63cf766
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
9 changes: 5 additions & 4 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -115,21 +115,22 @@ You can install libnmap via pip:
ronald@brouette:~$ pip install python-libnmap
or via git and dist utils (à l’ancienne):
or via git and pip:

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

.. code:: bash
ronald@brouette:~$ git clone https://github.com/savon-noir/python-libnmap.git
ronald@brouette:~$ cd python-libnmap
ronald@brouette:~$ pip install .
ronald@brouette:~$ python setup.py install
Examples
--------
Expand Down
7 changes: 3 additions & 4 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
black==22.8.0
defusedxml==0.6.0
isort==5.6.4
black==24.3.0
defusedxml==0.7.1
isort==6.0.0
pre-commit
pytest
pytest-cov
flake8
setuptools
5 changes: 3 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,10 @@
except ImportError:
from distutils.core import setup


if sys.version_info >= (3, 0):
with open("README.rst", encoding="utf-8") as rfile:
long_description = rfile.read()
else: # encoding not compatible with python2
else: # if encoding not compatible with python2
with open("README.rst") as rfile:
long_description = rfile.read()

Expand Down Expand Up @@ -42,6 +41,8 @@
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Topic :: System :: Networking",
],
)

0 comments on commit 63cf766

Please sign in to comment.