Skip to content

Commit 2044580

Browse files
committed
use VERSION file
1 parent 297ce0a commit 2044580

File tree

4 files changed

+11
-2
lines changed

4 files changed

+11
-2
lines changed

MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
include src/__init__.pyi src/py.typed
22
include src/*.h
3+
include VERSION

VERSION

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
1.2.0
2+

pyproject.toml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,12 @@ build-backend = "setuptools.build_meta"
99

1010
[project]
1111
name = "arraykit"
12-
version = "1.2.0"
1312
description = "Array utilities for StaticFrame"
1413
readme = { file = "README.rst", content-type = "text/x-rst" }
1514
requires-python = ">=3.10"
1615

16+
dynamic = ["version"]
17+
1718
authors = [
1819
{ name = "Christopher Ariza" },
1920
{ name = "Brandt Bucher" },
@@ -50,3 +51,7 @@ package-dir = { "arraykit" = "src" }
5051

5152
[tool.setuptools.package-data]
5253
arraykit = ["__init__.pyi", "py.typed"]
54+
55+
[tool.setuptools.dynamic]
56+
version = { file = "VERSION" }
57+

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
from setuptools import setup, Extension
22
from setuptools.command.build_ext import build_ext
33
import site, os
4+
from pathlib import Path
45

5-
AK_VERSION = "1.2.0"
6+
AK_VERSION = Path("VERSION").read_text(encoding="utf-8").strip()
67

78
def get_ext_dir(*components: tp.Iterable[str]) -> tp.Sequence[str]:
89
dirs = []

0 commit comments

Comments
 (0)