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

Put version string in __init__.py #214

Merged
merged 1 commit into from
Oct 17, 2022
Merged

Put version string in __init__.py #214

merged 1 commit into from
Oct 17, 2022

Conversation

wkentaro
Copy link
Owner

@wkentaro wkentaro commented Oct 17, 2022

Close #213

@wkentaro wkentaro added the feature for pr label Oct 17, 2022
@wkentaro wkentaro self-assigned this Oct 17, 2022
@wkentaro wkentaro force-pushed the put_version_in_init_py branch 2 times, most recently from 84290fb to 97fa1cc Compare October 17, 2022 13:41
setup.py Outdated
long_description=get_long_description(),
long_description_content_type="text/markdown",
author="Kentaro Wada",
author_email="www.kentaro.wada@gmail.com",
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this actually the email you wan to put here?

You have www. as a prefix?

Copy link
Owner Author

Choose a reason for hiding this comment

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

yes, because my name is very common in Japan :)

Copy link
Contributor

Choose a reason for hiding this comment

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

It is a very unique name to me 🤠

setup.py Outdated
sys.exit(1)

commands = [
"git pull origin main",
Copy link
Contributor

Choose a reason for hiding this comment

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

This seems to be a local first release process.

  1. Clone locally.
  2. Change the version constant.
  3. Run the setup script.

It can get very tiresome to change that constant locally, but it does help in the sense that when you download the code without git, you can see the version in the source.

Personally I would put these in a separate release script (calling bash from python is tiring to debug).

Other release process would be more github first, where things are triggered solely on the basis of tags.

Ultimately, not using pkg_resources is what I care about, this seems to address that

@wkentaro wkentaro merged commit 23641e0 into main Oct 17, 2022
@wkentaro wkentaro deleted the put_version_in_init_py branch October 17, 2022 13:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature for pr
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Consider moving away from pkg_resources
2 participants