gruns / furl

🌐 URL parsing and manipulation made easy.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Restore metadata to the furl module

gruns opened this issue · comments

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 😃