Tecnativa / doodba-copier-template

A Copier template for Doodba projects
Boost Software License 1.0
86 stars 114 forks source link

packaging.version.InvalidVersion: Invalid version: 'v0.0.0-0-0' #450

Closed iledarn closed 8 months ago

iledarn commented 8 months ago

Just trying to start a new project. I've noticed that there is a tag in doodba-copier-template repo v0.0.0-0-0. It seems that this is invalid tag that packaging lib throw an InvalidVersion exception on

Describe the bug

packaging.version.InvalidVersion: Invalid version: 'v0.0.0-0-0'

To Reproduce

Affected versions:

Steps to reproduce the behavior:

  1. copier copy gh:Tecnativa/doodba-copier-template proj1

Expected behavior Copier interactive session to start.

Additional context copier==7.0.1

iledarn commented 8 months ago

the entry for that is - copier/vcs.py", line 110, in checkout_latest_tag

from packaging import version
version.parse('v0.0.0-0-0')
raise InvalidVersion(f"Invalid version: '{version}'")
packaging.version.InvalidVersion: Invalid version: 'v0.0.0-0-0'
iledarn commented 8 months ago

Sry, it seems that all I need - is to update the copier to >= 9