Skip to content

Commit fb29817

Browse files
authored
Merge pull request #12 from foundation-model-stack/build/add-dynamic-version
Add dynamic build versioning
2 parents 2fbe1fc + 01b26f9 commit fb29817

File tree

2 files changed

+24
-23
lines changed

2 files changed

+24
-23
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,6 @@ venv/
3434
# Build output
3535
/build/lib/
3636

37+
# generated by setuptools_scm
38+
/fms_mo/_version.py
39+

pyproject.toml

Lines changed: 21 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,25 @@
11
[build-system]
2-
build-backend = "setuptools.build_meta"
3-
requires = [
4-
"setuptools>=60",
5-
"setuptools-scm>=8.0"
6-
]
2+
requires = ["setuptools>=60", "setuptools-scm>=8.0"]
73

84
[project]
95
name = "fms_mo"
10-
version="0.1.0"
116
description = "Quantization Techniques"
12-
authors = [
13-
{name = "Andrea Fasoli"},
14-
{name = "Brandon Groth"},
15-
{name = "Charlie Liu"},
16-
{name = "Derrick Liu"},
17-
{name = "Naigang Wang"},
18-
{name = "Thara Palanivel"},
19-
]
20-
license = {text = "Apache-2.0"}
217
readme = "README.md"
22-
requires-python = "~=3.9"
23-
keywords = ['quantization', 'python', 'pytorch']
8+
license = {text = "Apache-2.0"}
9+
requires-python = ">=3.9,<3.12"
2410
classifiers=[
11+
"Development Status :: 3 - Alpha",
2512
"License :: OSI Approved :: Apache Software License",
26-
"Development Status :: 4 - Beta",
13+
"License :: OSI Approved :: MIT License",
14+
"Operating System :: POSIX :: Linux",
15+
"Topic :: Scientific/Engineering :: Artificial Intelligence",
16+
"Programming Language :: Python :: 3",
2717
"Programming Language :: Python :: 3.9",
2818
"Programming Language :: Python :: 3.10",
2919
"Programming Language :: Python :: 3.11",
20+
"Programming Language :: Python :: Implementation :: CPython",
3021
]
22+
dynamic = ["version"]
3123
dependencies = [
3224
"torch >=2.1, <2.5",
3325
"numpy",
@@ -46,15 +38,21 @@ dependencies = [
4638
]
4739

4840
[project.optional-dependencies]
41+
dev = ["pre-commit>=3.0.4,<4.0"]
4942
fp8 = ["llmcompressor"]
5043
gptq = ["auto_gptq"]
5144
visualize = ["matplotlib", "graphviz", "pygraphviz"]
5245

46+
[tool.setuptools_scm]
47+
version_file = "fms_mo/_version.py"
48+
# do not include +gREV local version, required for Test PyPI upload
49+
local_scheme = "no-local-version"
50+
5351
[tool.setuptools.packages.find]
54-
exclude = ["tests", "tests.*"]
55-
namespaces = false
52+
where = [""]
53+
include = ["fms_mo", "fms_mo*"]
5654

5755
[project.urls]
58-
Homepage = "https://github.com/foundation-model-stack/fms-model-optimizer"
59-
Repository = "https://github.com/foundation-model-stack/fms-model-optimizer"
60-
Issues = "https://github.com/foundation-model-stack/fms-model-optimizer/issues"
56+
homepage = "https://github.com/foundation-model-stack/fms-model-optimizer"
57+
source = "https://github.com/foundation-model-stack/fms-model-optimizer"
58+
issues = "https://github.com/foundation-model-stack/fms-model-optimizer/issues"

0 commit comments

Comments
 (0)