diff --git a/f4pga/pyproject.toml b/f4pga/pyproject.toml new file mode 100644 index 0000000..0788a5e --- /dev/null +++ b/f4pga/pyproject.toml @@ -0,0 +1,2 @@ +[tool.black] +line-length = 120 diff --git a/f4pga/setup.py b/f4pga/setup.py index af9256a..8836e21 100644 --- a/f4pga/setup.py +++ b/f4pga/setup.py @@ -55,13 +55,13 @@ version = None with (packagePath.parent / '.gitcommit').open("r") as rptr: sha = rptr.read().strip() if sha != '$Format:%h$': - version = f'{semver}-{sha}' + version = f'{semver}+{sha}' git = which('git') if git is not None: proc = run(['git', 'rev-parse', 'HEAD'], capture_output=True) if proc.returncode == 0: - version = f'{semver}-{proc.stdout.decode("utf8")[0:8]}' + version = f'{semver}+{proc.stdout.decode("utf8")[0:8]}' if version is None: version = semver