Skip to content

Commit 5077a73

Browse files
committed
revert to normal setup
1 parent 6522ee2 commit 5077a73

File tree

3 files changed

+48
-56
lines changed

3 files changed

+48
-56
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
runs-on: ${{ matrix.os }}
1515
strategy:
1616
matrix:
17-
os: [macos-latest]
17+
os: [ubuntu-latest, windows-latest, macos-latest]
1818
python: ["3.10", "3.11", "3.12"]
1919

2020
steps:

pyproject.toml

Lines changed: 5 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -1,58 +1,3 @@
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 :: Implementation :: CPython",
31-
]
32-
33-
[project.urls]
34-
Homepage = "https://compas-dev.github.io/compas_cgal"
35-
Repository = "https://github.com/compas-dev/compas_cgal"
36-
37-
# ============================================================================
38-
# setuptools config
39-
# ============================================================================
40-
41-
[tool.setuptools]
42-
package-dir = { "" = "src" }
43-
include-package-data = true
44-
zip-safe = false
45-
46-
[tool.setuptools.dynamic]
47-
version = { attr = "compas_cgal.__version__" }
48-
dependencies = { file = "requirements.txt" }
49-
optional-dependencies = { dev = { file = "requirements-dev.txt" } }
50-
51-
[tool.setuptools.packages.find]
52-
where = ["src"]
53-
54-
[tool.setuptools.package-data]
55-
561
# ============================================================================
572
# replace pytest.ini
583
# ============================================================================
@@ -86,6 +31,11 @@ message = "Bump version to {new_version}"
8631
commit = true
8732
tag = true
8833

34+
[[tool.bumpversion.files]]
35+
filename = "setup.py"
36+
search = "{current_version}"
37+
replace = "{new_version}"
38+
8939
[[tool.bumpversion.files]]
9040
filename = "src/compas_cgal/__init__.py"
9141
search = "{current_version}"

setup.py

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import io
12
import os
23
import tempfile
34

@@ -6,6 +7,17 @@
67
from setuptools import setup
78
from setuptools.command.build_ext import build_ext
89

10+
here = os.path.abspath(os.path.dirname(__file__))
11+
12+
13+
def read(*names, **kwargs):
14+
return io.open(os.path.join(here, *names), encoding=kwargs.get("encoding", "utf8")).read()
15+
16+
17+
requirements = read("requirements.txt").split("\n")
18+
optional_requirements = {}
19+
20+
921
conda_prefix = os.getenv("CONDA_PREFIX")
1022

1123
windows = os.name == "nt"
@@ -128,7 +140,37 @@ def build_extensions(self):
128140

129141
setup(
130142
name="compas_cgal",
143+
version="0.7.1",
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={},
131167
packages=["compas_cgal"],
168+
package_dir={"": "src"},
132169
ext_modules=ext_modules,
133170
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,
134176
)

0 commit comments

Comments
 (0)