Debian Codegraph @

PKG-INFO

raw
1 Metadata-Version: 2.3
2 Name: noseOfYeti
3 Version: 2.4.9
4 Summary: A custom python codec that provides an RSpec style dsl for python
5 Project-URL: Homepage, https://github.com/delfick/nose-of-yeti
6 Author-email: Stephen Moore <[email protected]>
7 License-Expression: MIT
8 License-File: LICENSE
9 Keywords: bdd,rspec,spec
10 Classifier: Intended Audience :: Developers
11 Classifier: Programming Language :: Python
12 Classifier: Topic :: Software Development :: Documentation
13 Classifier: Topic :: Software Development :: Testing
14 Requires-Python: >=3.8
15 Provides-Extra: black
16 Requires-Dist: black==24.2.0; extra == 'black'
17 Requires-Dist: importlib-resources==5.10.0; extra == 'black'
18 Provides-Extra: tests
19 Requires-Dist: alt-pytest-asyncio==0.6.0; extra == 'tests'
20 Requires-Dist: pytest-helpers-namespace==2021.4.29; extra == 'tests'
21 Requires-Dist: pytest>=7.0.1; extra == 'tests'
22 Description-Content-Type: text/x-rst
23
24 Nose of Yeti
25 ============
26
27 This is a project creates a custom Python ``codec`` that lets the developer write
28 their tests using an `RSpec <https://rspec.info>`_ inspired DSL (i.e. ``describe``
29 and ``it`` blocks).
30
31 It uses the fact that python allows the registration of a
32 `codec <http://docs.python.org/library/codecs.html>`_ that can be used
33 to read in source code and modify it at import time.
34
35 NoseOfYeti uses this technique to find files with a particular coding declaration
36 on the first line of a file to turn the rspec inspired DSL into ordinary python
37 that is then executed as if it were written like that in the first place.
38
39 The original idea comes from `@fmeyer <https://github.com/fmeyer>`_ who wrote this
40 `blog post <https://web.archive.org/web/20120405004819/http://fmeyer.org/en/writing-a-DSL-with-python.html>`_
41 and a simple `proof of concept <https://github.com/fmeyer/pydsl>`_ before it was
42 picked up and worked on by `@hltbra <https://github.com/hltbra>`_
43 in `this repo <https://github.com/fmeyer/yeti>`_.
44
45 `@delfick <https://github.com/delfick>`_ discovered this work in 2010 and over the
46 following decade plus has improved on the concept, giving it more features and
47 integration with python tooling.
48
49 The documentation can be found at http://noseofyeti.readthedocs.io and the code
50 over at https://github.com/delfick/nose-of-yeti.
51
52 Updating nose-of-yeti version
53 -----------------------------
54
55 It is recommended any .pyc files are removed when NoseOfYeti is upgraded.
56
57 The Python interpreter skips the translation process if it
58 sees a .pyc file (unless the .py file has changed since the .pyc file was
59 created). This means that any changes in the translation process won't apply
60 until either the .pyc files are removed or all the .py files have been changed.