10000 dirty causes issues with dockerization and always returns true, disabling for now... · Issue #830 · allthingslinux/tux · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

dirty causes issues with dockerization and always returns true, disabling for now... #830

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

Open
github-actions bot opened this issue Apr 20, 2025 · 0 comments
Assignees

Comments

@github-actions
Copy link
Contributor

format-jinja = """

{%- if distance == 0 -%}

{{ serialize_pep440(base, stage, revision, metadata=[] + (["dirty"] if dirty else [])) }}

{%- elif branch == "main" -%}

{{ serialize_pep440(base, stage, revision, dev=distance, metadata=[commit] + (["dirty"] if dirty else [])) }}

{%- else -%}

{{ serialize_pep440(base, stage, revision, dev=distance, metadata=[commit, branch_escaped] + (["dirty"] if dirty else [])) }}

{%- endif -%}

"""

tux/pyproject.toml

Lines 25 to 34 in 914da3a

# TODO: dirty causes issues with dockerization and always returns true, disabling for now
#format-jinja = """
# {%- if distance == 0 -%}
# {{ serialize_pep440(base, stage, revision, metadata=[] + (["dirty"] if dirty else [])) }}
# {%- elif branch == "main" -%}
# {{ serialize_pep440(base, stage, revision, dev=distance, metadata=[commit] + (["dirty"] if dirty else [])) }}
# {%- else -%}
# {{ serialize_pep440(base, stage, revision, dev=distance, metadata=[commit, branch_escaped] + (["dirty"] if dirty else [])) }}
# {%- endif -%}
#"""

enable = true
metadata = true
dirty = true
# TODO: dirty causes issues with dockerization and always returns true, disabling for now
#format-jinja = """
#    {%- if distance == 0 -%}
#        {{ serialize_pep440(base, stage, revision, metadata=[] + (["dirty"] if dirty else [])) }}
#    {%- elif branch == "main" -%}
#        {{ serialize_pep440(base, stage, revision, dev=distance, metadata=[commit] + (["dirty"] if dirty else [])) }}
#    {%- else -%}
#        {{ serialize_pep440(base, stage, revision, dev=distance, metadata=[commit, branch_escaped] + (["dirty"] if dirty else [])) }}
#    {%- endif -%}
#"""
format-jinja = """
   {%- if distance == 0 -%}
       {{ serialize_pep440(base, stage, revision) }}
   {%- elif branch == "main" -%}
       {{ serialize_pep440(base, stage, revision, dev=distance, metadata=[commit]) }}
   {%- else -%}
       {{ serialize_pep440(base, stage, revision, dev=distance, metadata=[commit, branch_escaped]) }}
   {%- endif -%}
"""


[tool.poetry.requires-plugins]
poetry-dynamic-versioning = { version = ">=1.0.0,<2.0.0", extras = ["plugin"] }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant
0