Use git tags to version releases
This commit is contained in:
parent
b8d2a0e598
commit
8d74ed8110
|
@ -3,6 +3,8 @@ import os
|
|||
import sys
|
||||
import subprocess
|
||||
|
||||
__version__ = "0.0.0"
|
||||
|
||||
#TODO not PEP302 complient -probably a big porting job
|
||||
coriolis_package_dir = os.path.abspath(os.path.dirname(__file__))
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[tool.poetry]
|
||||
name = "Coriolis"
|
||||
version = "2.5.0"
|
||||
version = "0.0.0"
|
||||
description = "Place and Route for semiconductors"
|
||||
authors = ["Jean-Paul Chaput <Jean-Paul.Chaput@lip6.fr>"]
|
||||
readme = "README.rst"
|
||||
|
@ -9,6 +9,18 @@ packages = [
|
|||
{ include = "Coriolis"}
|
||||
]
|
||||
|
||||
[tool.poetry-dynamic-versioning]
|
||||
enable = true
|
||||
dirty = true
|
||||
vcs = "git"
|
||||
style = "pep440"
|
||||
pattern = '''
|
||||
(?x)
|
||||
^coriolis-((?P<epoch>\d+)!)?(?P<base>\d+(\.\d+)*)
|
||||
([-._]?((?P<stage>[a-zA-Z]+)[-._]?(?P<revision>\d+)?))?
|
||||
(\+(?P<tagged_metadata>.+))?$
|
||||
'''
|
||||
|
||||
[tool.poetry.dependencies]
|
||||
python = "^3.8"
|
||||
find-libpython = "^0.3.0"
|
||||
|
@ -24,8 +36,8 @@ unittests = 'Coriolis:unittests'
|
|||
yosys_coriolis = 'Coriolis:yosys_coriolis'
|
||||
|
||||
[build-system]
|
||||
requires = ["poetry-core", "setuptools", "cmake", "ninja", "patchelf"]
|
||||
build-backend = "poetry.core.masonry.api"
|
||||
requires = ["poetry-core", "setuptools", "cmake", "ninja", "patchelf", "poetry-dynamic-versioning"]
|
||||
build-backend = "poetry_dynamic_versioning.backend"
|
||||
|
||||
[tool.cibuildwheel.linux]
|
||||
skip = ["cp36-*", "cp37-*", "pp*"]
|
||||
|
|
Loading…
Reference in New Issue