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

updating for versioneer #145

Merged
merged 5 commits into from
Dec 3, 2018
Merged

Conversation

gidden
Copy link
Member

@gidden gidden commented Nov 27, 2018

Please confirm that this PR has done the following:

  • Tests Added
  • Documentation Added
  • Description in RELEASE_NOTES.md Added

Adding to RELEASE_NOTES.md (remove section after adding to RELEASE_NOTES.md)

Please add a single line in the release notes similar to the following:

- (#XX)[http://link-to-pr.com] Added feature which does something

Description of PR

This PR uses versioneer to automatically generate appropriate version numbers. If on a tag, it will provide the current tag as the version (for packaging). If on a certain commit, it will name the commit like so:

$ python -c 'import pyam; print(pyam.__version__)'
0.1.2+6.g04b4940

Copy link
Collaborator

@znicholls znicholls left a comment

Choose a reason for hiding this comment

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

The install stuff isn't vital so merge if you want. If you want to make sure everything is behaving, I'd double check this RunTests class business.

setup.cfg Show resolved Hide resolved
print('removing {}'.format(d))
shutil.rmtree(d)


# thank you https://stormpath.com/blog/building-simple-cli-interfaces-in-python
class RunTests(Command):
"""Run all tests."""
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is this class redundant now that you're using "cmdclass": versioneer.get_cmdclass(), below? Looking at https://stormpath.com/blog/building-simple-cli-interfaces-in-python again, I think it needs to be setup something like https://github.com/znicholls/netcdf-scm/blob/master/setup.py for this to actually do anything.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, it is. I wasn't sure what exactly to do with it, since I didn't add it (I believe you did, right?).

In any case, I can mirror your netcdf-scm style or we can just remove it. I always run pytest tests and not python setup.py test. Do you have a preference?

@znicholls
Copy link
Collaborator

znicholls commented Nov 29, 2018 via email

@gidden
Copy link
Member Author

gidden commented Dec 3, 2018

ok should be g2g @znicholls

@znicholls
Copy link
Collaborator

lgtm

@znicholls znicholls merged commit d04891c into IAMconsortium:master Dec 3, 2018
@gidden gidden deleted the versioneer branch June 15, 2022 11:16
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.

2 participants