Use git tags to version releases
This commit is contained in:
parent
a1bd7cae8a
commit
4aa7b680a7
|
@ -3,6 +3,8 @@ import os
|
||||||
import sys
|
import sys
|
||||||
import subprocess
|
import subprocess
|
||||||
|
|
||||||
|
__version__ = "0.0.0"
|
||||||
|
|
||||||
#TODO not PEP302 complient -probably a big porting job
|
#TODO not PEP302 complient -probably a big porting job
|
||||||
coriolis_package_dir = os.path.abspath(os.path.dirname(__file__))
|
coriolis_package_dir = os.path.abspath(os.path.dirname(__file__))
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[tool.poetry]
|
[tool.poetry]
|
||||||
name = "Coriolis"
|
name = "Coriolis"
|
||||||
version = "2.5.0"
|
version = "0.0.0"
|
||||||
description = "Place and Route for semiconductors"
|
description = "Place and Route for semiconductors"
|
||||||
authors = ["Jean-Paul Chaput <Jean-Paul.Chaput@lip6.fr>"]
|
authors = ["Jean-Paul Chaput <Jean-Paul.Chaput@lip6.fr>"]
|
||||||
readme = "README.rst"
|
readme = "README.rst"
|
||||||
|
@ -9,6 +9,18 @@ packages = [
|
||||||
{ include = "Coriolis"}
|
{ 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]
|
[tool.poetry.dependencies]
|
||||||
python = "^3.8"
|
python = "^3.8"
|
||||||
find-libpython = "^0.3.0"
|
find-libpython = "^0.3.0"
|
||||||
|
@ -24,8 +36,8 @@ unittests = 'Coriolis:unittests'
|
||||||
yosys_coriolis = 'Coriolis:yosys_coriolis'
|
yosys_coriolis = 'Coriolis:yosys_coriolis'
|
||||||
|
|
||||||
[build-system]
|
[build-system]
|
||||||
requires = ["poetry-core", "setuptools", "cmake", "ninja", "patchelf"]
|
requires = ["poetry-core", "setuptools", "cmake", "ninja", "patchelf", "poetry-dynamic-versioning"]
|
||||||
build-backend = "poetry.core.masonry.api"
|
build-backend = "poetry_dynamic_versioning.backend"
|
||||||
|
|
||||||
[tool.cibuildwheel.linux]
|
[tool.cibuildwheel.linux]
|
||||||
skip = ["cp36-*", "cp37-*", "pp*"]
|
skip = ["cp36-*", "cp37-*", "pp*"]
|
||||||
|
|
Loading…
Reference in New Issue