furl
furl copied to clipboard
Restore metadata to the furl module
Before v2.0.0:
>>> import furl
>>> print(furl.__version__)
'2.0.0'
With v2.1.0:
>>> import furl
>>> print(furl.__version__)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: module 'furl' has no attribute '__version__'
The other metadata attributes are missing, too: __version__
, __license__
, etc.
hey can I work on this?
I guess they just removed those variables from the __init__.py
and put it in the __version__.py
. They might need to add an __all__
variable to let the user get this metadata.
Absolutely! Pull requests welcome.
@ThatXliner Yep; the metadata was lost in the migration to __version__.py
@gruns The main code is in furl.py
, right? So I just need to add __all__ = ["furl", "__version__"]
unless some of the implementation are in the other files.
Not sure; that might do it.
If
>>> import furl
>>> furl.__version__
2.1.0
works, you did it :smiley: