Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add __version__ constant to __init__.py, read it in setup.py #107

Merged
merged 1 commit into from
Sep 26, 2018

Conversation

pypt
Copy link

@pypt pypt commented Sep 26, 2018

Hi again Yuri!

I've moved the version string to __init__.py so that users of your module (such as us) could just simply read readability.__version__ instead of installing, importing and using pkg_resources from Pip (which is really slow, and Pip complains about upgrades when being imported).

Version string practices: Single-sourcing the package version

Users wouldn't need to install, import and use Pip ("pkg_resources") to
find out which version of readability-lxml is being used.
@buriy buriy merged commit dca6e21 into buriy:master Sep 26, 2018
@pypt pypt deleted the module_version_constant branch September 27, 2018 08:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants