Skip to content

Commit 522eba5

Browse files
committed
dynamic version
1 parent 4c71945 commit 522eba5

File tree

4 files changed

+31
-10
lines changed

4 files changed

+31
-10
lines changed

environment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ channels:
33
- conda-forge
44
- defaults
55
dependencies:
6-
- python
6+
- python <=3.12
77
- pip
88
- cmake
99
- compas

pyproject.toml

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,25 @@ build-backend = "scikit_build_core.build"
44

55
[project]
66
name = "compas_cgal"
7-
version = "1.0.1"
87
description = "CGAL wrapper for COMPAS."
98
readme = "README.md"
10-
requires-python = ">=3.8"
9+
requires-python = ">=3.9"
1110
authors = [
1211
{ name = "tom van mele", email = "[email protected]" },
1312
{ name = "Petras Vestartas", email = "[email protected]" },
1413
]
1514
classifiers = [
1615
"License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)",
1716
]
17+
dynamic = ["version"]
1818

1919
[project.urls]
2020
Homepage = "https://github.com/compas-dev/compas_cgal"
2121

22+
# ============================================================================
23+
# replace pytest.ini
24+
# ============================================================================
25+
2226
[tool.pytest.ini_options]
2327
minversion = "6.0"
2428
testpaths = ["tests"]
@@ -49,6 +53,10 @@ doctest_optionflags = [
4953
"NUMBER",
5054
]
5155

56+
# ============================================================================
57+
# scikit-build
58+
# ============================================================================
59+
5260
[tool.scikit-build]
5361
# Protect the configuration against future changes in scikit-build-core
5462
minimum-version = "build-system.requires"
@@ -66,9 +74,17 @@ cmake.build-type = "Release"
6674
# Set CMake args for verbose output
6775
cmake.args = ["-DCMAKE_VERBOSE_MAKEFILE=ON"]
6876

77+
[tool.scikit-build.metadata.version]
78+
provider = "scikit_build_core.metadata.regex"
79+
input = "src/compas_cgal/__init__.py"
80+
6981
[tool.scikit-build.cmake.define]
7082
CMAKE_POLICY_DEFAULT_CMP0135 = "NEW"
7183

84+
# ============================================================================
85+
# cibuildwheel
86+
# ============================================================================
87+
7288
[tool.cibuildwheel]
7389
# Necessary to see build output from the actual compilation
7490
build-verbosity = 1
@@ -84,8 +100,12 @@ test-skip = "cp38-macosx_*:arm64"
84100
[tool.cibuildwheel.macos.environment]
85101
MACOSX_DEPLOYMENT_TARGET = "10.14"
86102

103+
# ============================================================================
104+
# replace bumpversion.cfg
105+
# ============================================================================
106+
87107
[tool.bumpversion]
88-
current_version = "1.0.1"
108+
current_version = "0.7.2"
89109
message = "Bump version to {new_version}"
90110
commit = true
91111
tag = true
@@ -103,6 +123,7 @@ replace = "[{new_version}] {now:%Y-%m-%d}"
103123
# ============================================================================
104124
# replace setup.cfg
105125
# ============================================================================
126+
106127
[tool.black]
107128
line-length = 179
108129

requirements-dev.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ bump-my-version
44
compas_invocations2
55
compas_viewer
66
invoke >=0.14
7-
line_profiler>=4.0.0
8-
pytest>=7.0.0
9-
pytest-cov>=4.0.0
10-
nanobind>=1.3.2
7+
line_profiler >=4.0.0
8+
pytest >=7.0.0
9+
pytest-cov >=4.0.0
10+
nanobind >=1.3.2
1111
ruff
12-
scikit-build-core[pyproject]>=0.10
12+
scikit-build-core[pyproject] >=0.10
1313
sphinx_compas2_theme
1414
twine
1515
wheel

src/compas_cgal/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
__copyright__ = "Block Research Group - ETH Zurich"
66
__license__ = "MIT License"
77
8-
__version__ = "1.0.1"
8+
__version__ = "0.7.2"
99

1010
HERE = os.path.dirname(__file__)
1111

0 commit comments

Comments
 (0)