Skip to content
This repository has been archived by the owner on Nov 4, 2022. It is now read-only.

Bump version to 0.0.4 #11

Merged
merged 1 commit into from
May 17, 2022
Merged

Bump version to 0.0.4 #11

merged 1 commit into from
May 17, 2022

Conversation

nateraw
Copy link
Owner

@nateraw nateraw commented May 17, 2022

Bumping version in preparation for releasing 0.0.4. Also added get_version() in setup.py and ignored flake8 errors in modelcards/__init__.py.

@nateraw nateraw merged commit c75cadc into main May 17, 2022
@nateraw nateraw deleted the release-0.0.4 branch May 17, 2022 19:41
Comment on lines +4 to +11
def get_version() -> str:
rel_path = "modelcards/__init__.py"
with open(rel_path, "r") as fp:
for line in fp.read().splitlines():
if line.startswith("__version__"):
delim = '"' if '"' in line else "'"
return line.split(delim)[1]
raise RuntimeError("Unable to find version string.")
Copy link
Contributor

Choose a reason for hiding this comment

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

FYI, this is how I handle getting version during the setup, it's handled in the __init__ file: https://github.com/skops-dev/skops/blob/main/skops/__init__.py

and then during the setup you do:

https://github.com/skops-dev/skops/blob/main/setup.py#L10-L17

# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants