Skip to content

Commit f293316

Browse files
committed
wip! dynamic version
1 parent f63a2f3 commit f293316

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ packages = ["blazingmq"]
3737
package-dir = {"" = "src"}
3838
zip-safe = false
3939

40+
[tool.setuptools.dynamic]
41+
version = {attr = "blazingmq._about.__version__"}
42+
4043
[tool.setuptools.package-data]
4144
blazingmq = ["py.typed", "_ext.pyi"]
4245

setup.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -177,12 +177,7 @@ def create_extension(name, libraries, **kwargs):
177177
if not IS_LINUX and not IS_MAC:
178178
raise RuntimeError(f"BlazingMQ does not support this platform ({sys.platform})")
179179

180-
about = {}
181-
with open("src/blazingmq/_about.py") as fp:
182-
exec(fp.read(), about)
183-
184180
setup(
185-
version=about["__version__"],
186181
ext_modules=cythonize(
187182
EXTENSIONS,
188183
include_path=["src/declarations"],

0 commit comments

Comments
 (0)