Skip to content

Commit

Permalink
Try manual versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
SylviaWhittle committed Sep 17, 2023
1 parent 02c990f commit 71cdc67
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
10 changes: 5 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[build-system]
requires = ["setuptools>=45", "setuptools_scm[toml]>=6.2", "wheel", "cmake"]
requires = ["setuptools>=45", "wheel", "cmake"]
build-backend = "setuptools.build_meta"

[project]
Expand All @@ -8,7 +8,7 @@ name = "topo_libasd"
authors = [{ name = "Sylvia Whittle", email = "[email protected]" }]
description = "A fork of the original library to read High Speed AFM data file"
readme = "README.md"
license = { text = "LGPL=3.0" }
license = { text = "LGPL-3.0" }
dependencies = ["cmake", "wheel"]

[project.optional-dependencies]
Expand All @@ -17,6 +17,6 @@ pypi = ["build", "cmake", "setuptools_scm[toml]", "twine", "wheel"]
[tool.setuptools.packages.find]
where = ["."]

[tool.setuptools_scm]
write_to = "python/_version.py"
version_scheme = "release-branch-semver"
# [tool.setuptools_scm]
# write_to = "python/_version.py"
# version_scheme = "release-branch-semver"
6 changes: 4 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,8 @@ def build_extension(self, ext: CMakeExtension) -> None:
setup(
ext_modules=[CMakeExtension("topo_libasd")],
cmdclass=dict(build_ext=CMakeBuild),
setup_requires=["setuptools_scm"],
use_scm_version=True,
name='topo-libasd',
version='1.5.12',
# setup_requires=["setuptools_scm"],
# use_scm_version=True,
)

0 comments on commit 71cdc67

Please sign in to comment.