pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
py-stem: update to 1.7.0.
Module Name: pkgsrc-wip
Committed By: Thomas Klausner <tk%giga.or.at@localhost>
Pushed By: wiz
Date: Tue Oct 16 18:51:37 2018 +0200
Changeset: 3fd690683754473a8d8d759321cdac06b61488e9
Modified Files:
py-stem/Makefile
py-stem/PLIST
py-stem/distinfo
Removed Files:
py-stem/patches/patch-stem_util_test__tools.py
Log Message:
py-stem: update to 1.7.0.
Version 1.7 (October 7th, 2018)
-------------------------------
* **Controller**
* Listener exceptions and malformed events no longer break further event processing (:trac:`27053`)
* Documented v3 hidden service support (:trac:`25124`, :spec:`6bd0a69`)
* Added the stem.control.MALFORMED_EVENTS event listener constant
* Added support for limiting the maximum number of streams for :func:`~stem.control.Controller.create_ephemeral_hidden_service` (:spec:`2fcb1c2`)
* Added a timeout argument to :class:`~stem.control.Controller` methods that could await a response (:trac:`26056`)
* Added a close_output argument to :class:`~stem.process.launch_tor`
* :func:`stem.connection.connect` crashed if its port argument was a string
* More reliable ExitPolicy resolution (:trac:`25739`)
* Fixed cache invalidation when another contorller calls SETCONF (:trac:`25821`)
* :func:`~stem.control.COntroller.create_hidden_service` failed when creating services with v2 options (:trac:`27446`)
* :func:`~stem.control.Controller.get_info` commonly raised :class:`stem.ProtocolError` when it should provide a :class:`stem.OperationFailed`
* :func:`~stem.control.Controller.get_microdescriptors` now reads microdescriptors from the control port rather than disk when available (:spec:`b5396d5`)
* Added the delivered_read, delivered_written, overhead_read, and overhead_written attributes to :class:`~stem.response.events.CircuitBandwidthEvent` (:spec:`fbb38ec`)
* The *config* attribute of :class:`~stem.response.events.ConfChangedEvent` couldn't represent tor configuration options with multiple values. It has been replaced with new *changed* and *unset* attributes.
* Replaced socket's :func:`~stem.socket.ControlPort.get_address`, :func:`~stem.socket.ControlPort.get_port`, and :func:`~stem.socket.ControlSocketFile.get_socket_path` with attributes
* :class:`~stem.response.ControlMessage` is now comparable and hashable
* Removed the 'raw' argument from :func:`~stem.socket.ControlSocket.send`
* **Descriptors**
* `stem.descriptor.remote <api/descriptor/remote.html>`_ can now download from relay ORPorts
* Zstd and lzma compression support (:spec:`1cb56af`)
* Moved the Directory classes into their own `stem.directory <api/directory.html>`_ module
* Added :func:`~stem.descriptor.remote.Directory.from_cache` and :func:`~stem.descriptor.remote.Directory.from_remote` to the :class:`~stem.descriptor.remote.DirectoryAuthority` subclass
* `Tor rearranged its files <https://lists.torproject.org/pipermail/tor-dev/2018-July/013287.html>`_, adjusted :func:`stem.descriptor.remote.Directory.from_remote` and :func:`stem.manual.Manual.from_remote` to account for this
* `Fallback directory v2 support <https://lists.torproject.org/pipermail/tor-dev/2017-December/012721.html>`_, which adds *nickname* and *extrainfo*
* Added the *orport_v6* attribute to the :class:`~stem.directory.Authority` class
* Added server descriptor's new is_hidden_service_dir attribute
* Added the network status vote's new bandwidth_file attribute (:spec:`84591df`)
* Added the microdescriptor router status entry's new or_addresses attribute (:trac:`26405`, :spec:`fdc8f3e8`)
* Don't retry downloading descriptors when we've timed out
* Don't download from tor26, an authority that frequently timeout
* Replaced Bifroest bridge authority with Serge (:trac:`26771`)
* `stem.descriptor.remote <api/descriptor/remote.html>`_ now consistently defaults **fall_back_to_authority** to false
* Deprecated `stem.descriptor.export <api/descriptor/export.html>`_. If you use it please `let us know <https://www.atagar.com/contact/>`_.
* Added :func:`~stem.descriptor.remote.their_server_descriptor`
* Added the reply_headers attribute to :class:`~stem.descriptor.remote.Query`
* Supplying a User-Agent when downloading descriptors
* Reduced maximum descriptors fetched by the remote module to match tor's new limit (:trac:`24743`)
* Consensus **shared_randomness_*_reveal_count** attributes undocumented, and unavailable if retrieved before their corresponding shared_randomness_*_value attribute (:trac:`25046`)
* Allow 'proto' line to have blank values (:spec:`a8455f4`)
* **Utilities**
* Fixed PyPy compatibility (:trac:`26207`)
* Python 3.6+ syntax error if test_tools.py imported (:trac:`26739`)
* Connection information from proc limited to 10,000 results
* Include attribute types in most equality checks and hashes
* Cache hash values of immutable classes
* More performant string concatenation `via bytearrays <https://docs.python.org/3/faq/programming.html#what-is-the-most-efficient-way-to-concatenate-many-strings-together>`_
* Functions using lru_cache could fail with a KeyError on Python 3.5 (:trac:`26412`)
* **Website**
* Added `terminal styling <tutorials/east_of_the_sun.html#terminal-styling>`_ to our utilities tutorial
* Added `multiprocessing <tutorials/east_of_the_sun.html#multiprocessing>`_ to our utilities tutorial
* Added a `descriptor download example <tutorials/examples/download_descriptor.html>`_
* Added a `relay connection summary example <tutorials/examples/relay_connections.html>`_
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=3fd690683754473a8d8d759321cdac06b61488e9
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
py-stem/Makefile | 9 ++++++++-
py-stem/PLIST | 16 ++++++++++++++--
py-stem/distinfo | 9 ++++-----
py-stem/patches/patch-stem_util_test__tools.py | 15 ---------------
4 files changed, 26 insertions(+), 23 deletions(-)
diffs:
diff --git a/py-stem/Makefile b/py-stem/Makefile
index 8e265087a1..7fc17d7a39 100644
--- a/py-stem/Makefile
+++ b/py-stem/Makefile
@@ -1,6 +1,6 @@
# $NetBSD$
-DISTNAME= stem-1.6.0
+DISTNAME= stem-1.7.0
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
CATEGORIES= net security
MASTER_SITES= ${MASTER_SITE_PYPI:=s/stem/}
@@ -12,5 +12,12 @@ LICENSE= gnu-lgpl-v3
USE_LANGUAGES= # none
+TEST_DEPENDS+= tor-[0-9]*:../../net/tor
+DEPENDS+= ${PYPKGPREFIX}-sqlite3-[0-9]*:../../databases/py-sqlite3
+DEPENDS+= ${PYPKGPREFIX}-readline-[0-9]*:../../devel/py-readline
+
+do-test:
+ cd ${WRKSRC} && ${PYTHONBIN} run_tests.py --all --log TRACE
+
.include "../../lang/python/distutils.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/py-stem/PLIST b/py-stem/PLIST
index caec5d0bf7..f5e6c5351b 100644
--- a/py-stem/PLIST
+++ b/py-stem/PLIST
@@ -4,7 +4,17 @@ ${PYSITELIB}/${EGG_FILE}
${PYSITELIB}/stem/__init__.py
${PYSITELIB}/stem/__init__.pyc
${PYSITELIB}/stem/__init__.pyo
-${PYSITELIB}/stem/cached_tor_manual.sqlite
+${PYSITELIB}/stem/cached_fallbacks.cfg
+${PYSITELIB}/stem/cached_manual.sqlite
+${PYSITELIB}/stem/client/__init__.py
+${PYSITELIB}/stem/client/__init__.pyc
+${PYSITELIB}/stem/client/__init__.pyo
+${PYSITELIB}/stem/client/cell.py
+${PYSITELIB}/stem/client/cell.pyc
+${PYSITELIB}/stem/client/cell.pyo
+${PYSITELIB}/stem/client/datatype.py
+${PYSITELIB}/stem/client/datatype.pyc
+${PYSITELIB}/stem/client/datatype.pyo
${PYSITELIB}/stem/connection.py
${PYSITELIB}/stem/connection.pyc
${PYSITELIB}/stem/connection.pyo
@@ -23,7 +33,6 @@ ${PYSITELIB}/stem/descriptor/export.pyo
${PYSITELIB}/stem/descriptor/extrainfo_descriptor.py
${PYSITELIB}/stem/descriptor/extrainfo_descriptor.pyc
${PYSITELIB}/stem/descriptor/extrainfo_descriptor.pyo
-${PYSITELIB}/stem/descriptor/fallback_directories.cfg
${PYSITELIB}/stem/descriptor/hidden_service_descriptor.py
${PYSITELIB}/stem/descriptor/hidden_service_descriptor.pyc
${PYSITELIB}/stem/descriptor/hidden_service_descriptor.pyo
@@ -48,6 +57,9 @@ ${PYSITELIB}/stem/descriptor/server_descriptor.pyo
${PYSITELIB}/stem/descriptor/tordnsel.py
${PYSITELIB}/stem/descriptor/tordnsel.pyc
${PYSITELIB}/stem/descriptor/tordnsel.pyo
+${PYSITELIB}/stem/directory.py
+${PYSITELIB}/stem/directory.pyc
+${PYSITELIB}/stem/directory.pyo
${PYSITELIB}/stem/exit_policy.py
${PYSITELIB}/stem/exit_policy.pyc
${PYSITELIB}/stem/exit_policy.pyo
diff --git a/py-stem/distinfo b/py-stem/distinfo
index ed5ae45950..03e4d9c532 100644
--- a/py-stem/distinfo
+++ b/py-stem/distinfo
@@ -1,7 +1,6 @@
$NetBSD$
-SHA1 (stem-1.6.0.tar.gz) = 1590ee340a3b321d8e51cfd6e9fb2c6637b93fee
-RMD160 (stem-1.6.0.tar.gz) = 9b61f9e8659b056a23e2d4f77027ef6dc2a84bc2
-SHA512 (stem-1.6.0.tar.gz) = 499a15b1cbd12d75865c93e253e797507564d5b5f2a9a0f021107d89c85db040e050944a9ac69b629f74e265d350467bef9d36ec52f7ef2e6a97180a7b93e94c
-Size (stem-1.6.0.tar.gz) = 2049999 bytes
-SHA1 (patch-stem_util_test__tools.py) = b8056fb8a16c0d833224a70f3e7a1747a4a76013
+SHA1 (stem-1.7.0.tar.gz) = 1d075b54ebd32cf15e470c8f09a596cf8829a172
+RMD160 (stem-1.7.0.tar.gz) = 3f007f598864326a7debfb3b51c50be123f8a111
+SHA512 (stem-1.7.0.tar.gz) = 10750266860f4f90df5d4a3bf24ec68e28d12c84c136c35d2f168f767f4facae3d02cc62dc972a08666689695ea17337a7a6b80ec1c5ed8b9e5035d7417b07f5
+Size (stem-1.7.0.tar.gz) = 2196759 bytes
diff --git a/py-stem/patches/patch-stem_util_test__tools.py b/py-stem/patches/patch-stem_util_test__tools.py
deleted file mode 100644
index a1ddc21c64..0000000000
--- a/py-stem/patches/patch-stem_util_test__tools.py
+++ /dev/null
@@ -1,15 +0,0 @@
-$NetBSD$
-
-Fix build with python-3.6+
-https://gitweb.torproject.org/stem.git/commit/?id=6c677b6
-
---- stem/util/test_tools.py.orig 2017-11-02 17:11:48.000000000 +0000
-+++ stem/util/test_tools.py
-@@ -148,7 +148,6 @@ class AsyncTest(object):
- self._threaded = threaded
-
- self.method = lambda test: self.result(test) # method that can be mixed into TestCases
-- self.method.async = self
-
- self._process = None
- self._process_pipe = None
Home |
Main Index |
Thread Index |
Old Index