Skip to content

Commit ab74513

Browse files
committed
try pyproject
1 parent 7a3c4e0 commit ab74513

File tree

4 files changed

+59
-38
lines changed

4 files changed

+59
-38
lines changed

env_osx.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: cgal-dev
1+
name: cgal-dev2
22
channels:
33
- conda-forge
44
dependencies:

pyproject.toml

+56-5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,59 @@
1+
[build-system]
2+
requires = ["setuptools>=66", "pybind11>=2.6.1"]
3+
build-backend = "setuptools.build_meta"
4+
5+
# ============================================================================
6+
# project info
7+
# ============================================================================
8+
9+
[project]
10+
name = "compas_cgal"
11+
dynamic = ["version", "dependencies", "optional-dependencies"]
12+
description = "COMPAS friedly bindings for the CGAL library."
13+
keywords = []
14+
authors = [
15+
{ name = "tom van mele", email = "[email protected]" },
16+
{ name = "Petras Vestartas", email = "[email protected]" },
17+
]
18+
license = { file = "LICENSE" }
19+
readme = "README.md"
20+
requires-python = ">=3.9"
21+
classifiers = [
22+
"Development Status :: 5 - Production/Stable",
23+
"Topic :: Scientific/Engineering",
24+
"Programming Language :: Python",
25+
"Programming Language :: Python :: 3",
26+
"Programming Language :: Python :: 3.9",
27+
"Programming Language :: Python :: 3.10",
28+
"Programming Language :: Python :: 3.11",
29+
"Programming Language :: Python :: 3.12",
30+
"Programming Language :: Python :: 3.13",
31+
"Programming Language :: Python :: Implementation :: CPython",
32+
]
33+
34+
[project.urls]
35+
Homepage = "https://compas-dev.github.io/compas_cgal"
36+
Repository = "https://github.com/compas-dev/compas_cgal"
37+
38+
# ============================================================================
39+
# setuptools config
40+
# ============================================================================
41+
42+
[tool.setuptools]
43+
package-dir = { "" = "src" }
44+
include-package-data = true
45+
zip-safe = false
46+
47+
[tool.setuptools.dynamic]
48+
version = { attr = "compas_cgal.__version__" }
49+
dependencies = { file = "requirements.txt" }
50+
optional-dependencies = { dev = { file = "requirements-dev.txt" } }
51+
52+
[tool.setuptools.packages.find]
53+
where = ["src"]
54+
55+
[tool.setuptools.package-data]
56+
157
# ============================================================================
258
# replace pytest.ini
359
# ============================================================================
@@ -31,11 +87,6 @@ message = "Bump version to {new_version}"
3187
commit = true
3288
tag = true
3389

34-
[[tool.bumpversion.files]]
35-
filename = "setup.py"
36-
search = "{current_version}"
37-
replace = "{new_version}"
38-
3990
[[tool.bumpversion.files]]
4091
filename = "src/compas_cgal/__init__.py"
4192
search = "{current_version}"

recipe/sha256.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import hashlib
22
from pathlib import Path
33

4-
FILE = Path(__file__).parent / "compas_cgal-0.7.1.tar.gz"
4+
FILE = Path(__file__).parent / "compas_cgal-0.7.2.tar.gz"
55

66
with open(FILE, "rb") as f:
77
data = f.read()

setup.py

+1-31
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ def cpp_flag(compiler):
100100
101101
The newer version is prefered over c++11 (when it is available).
102102
"""
103-
flags = ["-std=c++14", "-std=c++11"]
103+
flags = ["-std=c++17", "-std=c++14", "-std=c++11"]
104104

105105
for flag in flags:
106106
if has_flag(compiler, flag):
@@ -140,37 +140,7 @@ def build_extensions(self):
140140

141141
setup(
142142
name="compas_cgal",
143-
version="0.7.2",
144-
description="COMPAS friedly bindings for the CGAL library.",
145-
url="https://github.com/compas-dev/compas_cgal",
146-
author="tom van mele",
147-
author_email="[email protected]",
148-
license="GPL-3 License",
149-
classifiers=[
150-
"Development Status :: 5 - Production/Stable",
151-
"Intended Audience :: Developers",
152-
"Topic :: Scientific/Engineering",
153-
"License :: OSI Approved :: GPL-3 License",
154-
"Operating System :: Unix",
155-
"Operating System :: POSIX",
156-
"Operating System :: Microsoft :: Windows",
157-
"Programming Language :: Python",
158-
"Programming Language :: Python :: 3",
159-
"Programming Language :: Python :: 3.10",
160-
"Programming Language :: Python :: 3.11",
161-
"Programming Language :: Python :: 3.12",
162-
"Programming Language :: Python :: 3.13",
163-
"Programming Language :: Python :: Implementation :: CPython",
164-
],
165-
keywords=[],
166-
project_urls={},
167143
packages=["compas_cgal"],
168-
package_dir={"": "src"},
169144
ext_modules=ext_modules,
170145
cmdclass={"build_ext": BuildExt},
171-
setup_requires=["pybind11>=2.6.1"],
172-
install_requires=requirements,
173-
python_requires=">=3.10",
174-
extras_require=optional_requirements,
175-
zip_safe=False,
176146
)

0 commit comments

Comments
 (0)