switched from PyCrypto to PyCryptodome
parent
2ad5246096
commit
bd01807038
|
@ -4,6 +4,7 @@ Revision 4.3.3, work in progress
|
|||
|
||||
Github `repo <https://github.com/etingof/pysnmp>`_
|
||||
|
||||
- Switched from now unmaintained PyCrypto to PyCryptodome.
|
||||
- Switched to new-style classes.
|
||||
- NotificationType now allows additional var-binds specified as
|
||||
MIB objects. A side effect of this change is that additional
|
||||
|
|
|
@ -59,7 +59,7 @@ $ pip install pysnmp
|
|||
to download and install PySNMP along with its dependencies:
|
||||
|
||||
* [PyASN1](http://pyasn1.sf.net)
|
||||
* [PyCrypto](http://pycrypto.org) (required only if SNMPv3 encryption is in use)
|
||||
* [PyCryptodome](https://pycryptodome.readthedocs.io) (required only if SNMPv3 encryption is in use)
|
||||
* [PySMI](http://pysmi.sf.net) (required for MIB services only)
|
||||
|
||||
Besides the library, command-line [SNMP utilities](https://github.com/etingof/pysnmp-apps)
|
||||
|
|
|
@ -48,7 +48,7 @@ operational:
|
|||
|
||||
Optional, but recommended:
|
||||
|
||||
* `PyCrypto <https://pypi.python.org/pypi/pycrypto/>`_,
|
||||
* `PyCryptodome <https://pypi.python.org/pypi/pycryptodome/>`_,
|
||||
used by SNMPv3 crypto features (Windows users need
|
||||
`precompiled version <http://www.voidspace.org.uk/python/modules.shtml>`_)
|
||||
* `PySMI <https://pypi.python.org/pypi/pysmi/>`_ for automatic
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
pyasn1>=0.1.8
|
||||
pysmi
|
||||
pycrypto>=2.4.1
|
||||
pycryptodome
|
||||
|
|
4
setup.py
4
setup.py
|
@ -62,7 +62,7 @@ try:
|
|||
'zip_safe': True
|
||||
}
|
||||
if sys.platform.lower()[:3] != 'win':
|
||||
params['install_requires'].append('pycrypto>=2.4.1')
|
||||
params['install_requires'].append('pycryptodome')
|
||||
|
||||
except ImportError:
|
||||
for arg in sys.argv:
|
||||
|
@ -75,7 +75,7 @@ except ImportError:
|
|||
if sys.version_info[:2] > (2, 4):
|
||||
params['requires'] = ['pyasn1(>=0.1.8)', 'pysmi']
|
||||
if sys.platform.lower()[:3] != 'win':
|
||||
params['requires'].append('pycrypto(>=2.4.1)')
|
||||
params['requires'].append('pycryptodome')
|
||||
|
||||
if sys.platform.lower()[:3] == 'win':
|
||||
try:
|
||||
|
|
Loading…
Reference in New Issue