Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
6 changes: 3 additions & 3 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
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
Expand Down
10 changes: 8 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
# -*- coding: utf-8 -*-
import sys
from distutils.core import setup

try:
from setuptools import setup
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 @@ -38,6 +42,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",
],
)