Skip to content

have letsencrypt.VERSION, show it in letsencrypt --help, use it in setup.py - #207

Merged
jdkasten merged 5 commits into
certbot:masterfrom
ThomasWaldmann:version
Jan 30, 2015
Merged

jdkasten merged 5 commits into
certbot:masterfrom
ThomasWaldmann:version

Conversation

@ThomasWaldmann

Copy link
Copy Markdown
Contributor

note: we had some discussion about potential problems importing VERSION from main package.

SO link: http://stackoverflow.com/questions/2058802/how-can-i-get-the-version-defined-in-setup-py-setuptools-in-my-package

See also my comment in init.py - maybe we can add that "version detection from git tags" magic later.

…tup.py

note: we had some discussion about potential problems importing VERSION from main package.

SO link: http://stackoverflow.com/questions/2058802/how-can-i-get-the-version-defined-in-setup-py-setuptools-in-my-package

See also my comment in __init__.py - maybe we can add that "version detection from git tags" magic later.
@ThomasWaldmann

Copy link
Copy Markdown
Contributor Author

maybe nice also: -V, --version option that just gives the version.

@kuba

kuba commented Jan 29, 2015

Copy link
Copy Markdown
Contributor

My basic tests worked, though I still have a lot of reservation for this approach, c.f. zooko's comment over at SO regarding py2exe et al. It would be sad if we broke some (popular) ecosystems.

NB, another SO answer also suggests pkg_resources

What do others use? For example,

Most of the projects I've seen do the same as pypa folks. I think I trust this solution the most. What do you think?

@jdkasten

Copy link
Copy Markdown
Contributor

I didn't do any research myself, but I would be inclined to follow pypa approach.

@ThomasWaldmann

Copy link
Copy Markdown
Contributor Author

updated.

Comment thread setup.py Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

codes should go at the top

@kuba

kuba commented Jan 29, 2015

Copy link
Copy Markdown
Contributor

LGTM, just pls fix above comments

@ThomasWaldmann

Copy link
Copy Markdown
Contributor Author

fixed.

@jdkasten

Copy link
Copy Markdown
Contributor

Thanks @ThomasWaldmann!

jdkasten added a commit that referenced this pull request Jan 30, 2015
have letsencrypt.VERSION, show it in letsencrypt --help, use it in setup.py
@jdkasten
jdkasten merged commit e56737d into certbot:master Jan 30, 2015
eq19 pushed a commit to VirtualNetworks/cerbot that referenced this pull request May 2, 2025
* Add travis yml

* update travis CI config

* Add the build badge to the readme

* Update readme to include npm version, downloads/month
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.

3 participants