Debian Codegraph @

PKG-INFO

raw
1 Metadata-Version: 2.1
2 Name: venusian
3 Version: 3.1.1
4 Summary: A library for deferring decorator actions
5 Home-page: https://pylonsproject.org/
6 Author: Chris McDonough, Agendaless Consulting
7 Author-email: [email protected]
8 License: BSD-derived (Repoze)
9 Keywords: web wsgi zope
10 Classifier: Development Status :: 6 - Mature
11 Classifier: Intended Audience :: Developers
12 Classifier: Programming Language :: Python :: 3
13 Classifier: Programming Language :: Python :: 3.7
14 Classifier: Programming Language :: Python :: 3.8
15 Classifier: Programming Language :: Python :: 3.9
16 Classifier: Programming Language :: Python :: 3.10
17 Classifier: Programming Language :: Python :: 3.11
18 Classifier: Programming Language :: Python :: 3.12
19 Classifier: Programming Language :: Python :: 3.13
20 Classifier: Programming Language :: Python :: Implementation :: CPython
21 Classifier: Programming Language :: Python :: Implementation :: PyPy
22 Classifier: License :: Repoze Public License
23 Requires-Python: >=3.7
24 Description-Content-Type: text/x-rst
25 License-File: LICENSE.txt
26 Provides-Extra: testing
27 Requires-Dist: pytest; extra == "testing"
28 Requires-Dist: pytest-cov; extra == "testing"
29 Requires-Dist: coverage; extra == "testing"
30 Provides-Extra: docs
31 Requires-Dist: Sphinx>=4.3.2; extra == "docs"
32 Requires-Dist: repoze.sphinx.autointerface; extra == "docs"
33 Requires-Dist: pylons-sphinx-themes; extra == "docs"
34 Requires-Dist: sphinx-copybutton; extra == "docs"
35
36 venusian
37 ========
38
39 .. image:: https://github.com/Pylons/venusian/workflows/Build%20and%20test/badge.svg
40 :target: https://github.com/Pylons/venusian/actions?query=workflow%3A%22Build+and+test%22
41
42 .. image:: https://readthedocs.org/projects/venusian/badge/?version=latest
43 :target: https://docs.pylonsproject.org/projects/venusian/en/latest/
44 :alt: Documentation Status
45
46 Venusian is a library which allows framework authors to defer
47 decorator actions. Instead of taking actions when a function (or
48 class) decorator is executed at import time, you can defer the action
49 usually taken by the decorator until a separate "scan" phase.
50
51 See the "docs" directory of the package or the online documentation at
52 https://docs.pylonsproject.org/projects/venusian/en/latest/
53
54 3.1.1 (2024-12-01)
55 ------------------
56
57 - Add support for Python 3.13 (thanks to musicinmybrain).
58
59 - Fix GitHub test actions.
60
61 3.1.0 (2023-11-06)
62 ------------------
63
64 - Remove support for Python 3.5 and 3.6
65
66 - Add support for Python 3.9, 3.10, 3.11 and 3.12.
67
68 - Use GitHub Actions instead of Travis.
69
70 3.0.0 (2019-10-04)
71 ------------------
72
73 - This release matches 2.0.0 other than in the version number. This fixes an
74 issue with Requires-Python metadata not being uploaded correctly to PyPi.
75
76 This version is only compatible with Python 3.5+
77
78 2.0.0 (2019-10-04)
79 ------------------
80
81 - Drop support for Python 2.7, 3.3, and 3.4
82
83 - Removed the usage of the ``imp`` module to squelch the warnings regarding a
84 deprecated modules. See https://github.com/Pylons/venusian/pull/63 and
85 https://github.com/Pylons/venusian/issues/57
86
87 1.2.0 (2019-01-08)
88 ------------------
89
90 - Add support for Python 3.7.
91
92 - Drop support for Python 3.3.
93
94 1.1.0 (2017-04-24)
95 ------------------
96
97 - Updated to using py.test instead of nosetest, and added support for Python
98 3.4 -> 3.6
99
100 - Make scanning more resilient of metaclasses that return proxies for any
101 attribute access.
102
103 - Fix bug where using the same venusian decorator on both a class and its
104 methods would cause the method decorations to be ignored. See
105 https://github.com/Pylons/venusian/issues/40
106
107 - Drop support for Python 2.6.
108
109 - Drop support for Python 3.2: it is no longer supported by current
110 packaging / CI tools.
111
112 - Support loaders that require the module name as argument to their
113 ``get_filename()`` method. This fixes problems with zipped packages
114 on Python 3.
115
116 - Micro-optimization when ignores are used (see
117 https://github.com/Pylons/venusian/pull/20).
118
119 - A tox run now combines coverage between Py2 and Py3.
120
121 1.0 (2014-06-30)
122 ----------------
123
124 - Fix an issue under PyPy > 2.0 where attached decorators may not be found.
125
126 - Drop support of Python 2.4 / 2.5 / Jython.
127
128 - Add ``lift`` and ``onlyliftedfrom`` class decorators to allow for inheritance
129 of venusian decorators attached to superclass methods. See the API
130 documentation for more information.
131
132 - Fix bug where otherwise undecorated subclass of a superclass that had
133 venusian decorators on it would inherit its superclass' decorations.
134 Venusian decorators should have never been inherited implicitly. See
135 https://github.com/Pylons/venusian/issues/11#issuecomment-4977352
136
137 1.0a8 (2013-04-15)
138 ------------------
139
140 - Pass ``ignore`` argument along recursively to ``walk_packages`` so custom
141 ignore functions will ignore things recursively. See
142 https://github.com/Pylons/venusian/pull/16
143
144 - Don't run tox tests under Python 2.4 anymore (tox no longer supports 2.4).
145
146 1.0a7 (2012-08-25)
147 ------------------
148
149 - Venusian now works on Python 3.3b2+ (importlib-based).
150
151 - Use nose-exclude instead of relying on fragile module-scope code to ensure
152 we don't get errors resulting from import of fixture code during
153 "nosetests".
154
155 - Bug fix: no longer suppress ``ImportError`` while scanning by default. If
156 you want to suppress ``ImportError`` while scanning, you'll now need use an
157 ``onerror`` callback as described in the documentation.
158
159 1.0a6 (2012-04-23)
160 ------------------
161
162 - Don't ignore decorated objects within their original locations if they
163 happen to be imported into another module (remove ``seen`` set from invoke
164 in venusian scanning). See https://github.com/Pylons/venusian/pull/13 .
165
166 1.0a5 (2012-04-21)
167 ------------------
168
169 - Slightly less sucky way to ignore objects during scanning that are only
170 imported into a module but not actually defined there. See 1.0a4 change
171 notes for rationale. Now instead of checking whether the module of the
172 *scanned object* matches the module being scanned, we check whether the
173 module of the *Venusian attachment* matches the module being scanned. This
174 allows some genuine uses of imported objects as Venusian scan targets while
175 preventing inappropriate double-scanning of objects that have a venusian
176 attachment which just happen to be imported into other scanned modules.
177
178 - Add ``dev`` and ``docs`` setup.py commands (ala Pyramid).
179
180 1.0a4 (2012-04-16)
181 ------------------
182
183 - Attempt to ignore objects during scanning that are only imported into a
184 module but not actually defined there. This is a semantics change, but
185 it's the right thing to do, because I found myself facing a situation like
186 this::
187
188 # in a module named "one"
189
190 from two import anotheradecoratedthing
191 @adecorator
192 def adecoratedthing(): pass
193
194 # and scanning both modules
195 scan('one')
196 scan('two')
197
198 In this case you'd wind up with two repeated registrations for
199 "anotherdecoratedthing", which isn't what anyone expects.
200
201 1.0a3 (2012-02-08)
202 ------------------
203
204 - Add an ``ignore`` argument to the ``scan`` method of a ``Scanner``. This
205 argument allows a user to ignore packages, modules, and global objects by
206 name during a ``scan``. See the "ignore Scan Argument" in the narrative
207 documentation for more details.
208
209 1.0a2 (2011-09-02)
210 ------------------
211
212 - Close ImpLoader file handle to avoid resource warnings on Python 3.
213
214 1.0a1 (2011-08-27)
215 ------------------
216
217 - Python 3 compatibility.
218
219 - Allow an ``onerror`` callback to be passed to ``Scanner.scan()``.
220
221 0.9 (2011-06-18)
222 ----------------
223
224 - Prevent corner case scan-time exception when trying to introspect insane
225 module-scope objects. See https://github.com/Pylons/venusian/issues/5 .
226
227 0.8 (2011-04-30)
228 ----------------
229
230 - Normal "setup.py test" can't support running the venusian tests under py
231 2.4 or 2.5; when it scans the 'classdecorators' fixture, it barfs. To get
232 around this, we used to depend on ``nose`` in ``setup_requires`` and tell
233 "setup.py test" to use nose by setting test_suite to "nose.collector" but
234 we can't anymore because folks use Venusian in systems which install from
235 pip bundles; pip bundles do not support setup_requires. So, sorry, we're
236 painted into a corner; at this point you just have to know to install nose
237 and run "setup.py nosetests" rather than "setup.py test". Or just run
238 "tox" which tests it under all Pythons.
239
240 0.7 (2011-03-16)
241 ----------------
242
243 - Use Pylons theme in documentation.
244
245 - Fix orphaned pyc test on pypy.
246
247 - Fix GitHub Issue #1: subclasses of decorated classes that do not
248 have any decorations should not inherit the decorations of their
249 parent classes.
250
251 - Fix GitHub Issue #2: scans should only "find" each object once per
252 scan, regardless of how many modules that object is imported into.
253
254 0.6 (2011-01-09)
255 ----------------
256
257 - Some metaclasses (Elixir's) don't raise an AttributeError when asked for a
258 nonexistent attribute during a scan. We now catch all exceptions when
259 interrogating an object for ``__venusian_callbacks__`` rather than just
260 AttributeError.
261
262 0.5 (2010-12-19)
263 ----------------
264
265 - Make ``codeinfo`` attribute available as an attribute of the AttachInfo
266 object. It will be a tuple in the form ``(filename, lineno, function,
267 sourceline)`` representing the context of the venusian decorator. Eg.
268 ``('/home/chrism/projects/venusian/tests/test_advice.py', 81,
269 'testCallInfo', 'add_handler(foo, bar)')``
270
271 0.4 (2010-09-03)
272 ----------------
273
274 - Bug fix: when a venusian decorator used as a class decorator was
275 used against both a class *and* a subclass of that class, the
276 superclass and subclass would effectively share the same set of
277 callbacks. This was not the intent: each class declaration should
278 have its own local set of callbacks; callbacks added via decorations
279 should not be inherited, and a superclass should not receive its
280 subclass' decorations.
281
282 - Arrange test fixtures into a single directory.
283
284 0.3 (2010-06-24)
285 ----------------
286
287 - Ignore orphaned modules (``.pyc`` or ``.pyo`` files without a
288 corresponding ``.py`` file) during a scan.
289
290 0.2 (2010-04-18)
291 ----------------
292
293 - Add the concept of scan categories (see the "Scan Categories"
294 section of the documentation) to allow an application to make use of
295 more than one Venusian-using framework simultaneously.
296
297 0.1 (2010-02-15)
298 ----------------
299
300 - Initial release.