Skip to content

Commit a0c5d1c

Browse files
committed
0.2.0
1 parent 41f2541 commit a0c5d1c

File tree

4 files changed

+16
-13
lines changed

4 files changed

+16
-13
lines changed

README.rst

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
.. role:: raw-html-m2r(raw)
2+
:format: html
3+
14

25

36
.. image:: logo.png
@@ -264,14 +267,14 @@ Limitations
264267

265268

266269
* Working in ``ipython REPL`` but not in standard ``python console``
267-
* You have to know at which stack the function/class will be called
270+
* You have to know at which stack the function/class will be called (caller's depth)
268271
* Not working with ``reticulate`` from ``R`` since it cuts stacks to the most recent one.
269-
* ``nameof`` cannot be used in statements in ``pytest``
270-
.. code-block::
271-
272-
a = 1
273-
assert nameof(a) == 'a'
274-
# Retrieving failure.
275-
# The right way:
276-
aname = nameof(a)
277-
assert aname == 'a'
272+
* :raw-html-m2r:`<del>\ ``nameof`` cannot be used in statements in ``pytest``\ </del>` (supported in ``v0.2.0``\ )
273+
.. code-block:: diff
274+
275+
-a = 1
276+
+assert nameof(a) == 'a'
277+
-# Retrieving failure.
278+
-# The right way:
279+
-aname = nameof(a)
280+
-assert aname == 'a'

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "poetry.masonry.api"
44

55
[tool.poetry]
66
name = "python-varname"
7-
version = "0.1.7"
7+
version = "0.2.0"
88
description = "Retrieving variable names of function or class calls."
99
authors = [ "pwwang <pwwang@pwwang.com>",]
1010
license = "MIT"

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
setup(
2222
long_description=readme,
2323
name='python-varname',
24-
version='0.1.7',
24+
version='0.2.0',
2525
description='Retrieving variable names of function or class calls.',
2626
python_requires='==3.*,>=3.6.0',
2727
project_urls={

varname.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from collections import namedtuple as standard_namedtuple
66
import executing
77

8-
__version__ = "0.1.7"
8+
__version__ = "0.2.0"
99

1010
VARNAME_INDEX = [-1]
1111

0 commit comments

Comments
 (0)