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

setup.py python package #24

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

setup.py python package #24

wants to merge 3 commits into from

Conversation

IliaFeldgun
Copy link

@IliaFeldgun IliaFeldgun commented May 21, 2023

image
As long as we have a single tag in the repo, we have dynamic versioning
image

@IliaFeldgun IliaFeldgun force-pushed the ilia/package branch 2 times, most recently from d8191b7 to 37a36d1 Compare November 8, 2023 20:59
PEP-440 versioning with git cli
Readme
dev-requirements.txt
Lint for python3 (incomplete)
setup.py Outdated
def version():
git_describe_cmd = ["git", "describe", "--tags", "HEAD"]
git_head_tag = subprocess.check_output(git_describe_cmd).strip().decode("utf-8")
python_version = git_head_tag

Choose a reason for hiding this comment

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

should be pep440 version

return python_version


with open("README.md", "r") as fh:

Choose a reason for hiding this comment

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

fh to something more meaningful for readability

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