Skip to content

Commit 3c095f1

Browse files
authored
Incorporated setuptools_scm for automatic versioning (#301)
1 parent 86013d8 commit 3c095f1

File tree

3 files changed

+8
-9
lines changed

3 files changed

+8
-9
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,3 +133,6 @@ dmypy.json
133133

134134
*.ipynb
135135
env
136+
137+
# Matching pyproject.toml
138+
paperqa/version.py

paperqa/version.py

Lines changed: 0 additions & 5 deletions
This file was deleted.

pyproject.toml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
[build-system]
22
build-backend = "setuptools.build_meta"
3-
# Pin to 62.6 for support from reading requirements from requirements.txt
4-
requires = ["setuptools >= 62.6.0"]
3+
requires = ["setuptools>=64", "setuptools_scm>=8"]
54

65
[project]
76
authors = [
@@ -29,7 +28,7 @@ dependencies = [
2928
"tiktoken>=0.4.0",
3029
]
3130
description = "LLM Chain for answering questions from docs"
32-
dynamic = ["optional-dependencies"]
31+
dynamic = ["optional-dependencies", "version"]
3332
keywords = ["question answering"]
3433
license = {file = "LICENSE"}
3534
maintainers = [
@@ -40,7 +39,6 @@ name = "paper-qa"
4039
readme = "README.md"
4140
requires-python = ">=3.8"
4241
urls = {repository = "https://github.com/whitead/paper-qa"}
43-
version = "4.8.1"
4442

4543
[tool.codespell]
4644
check-filenames = true
@@ -222,6 +220,9 @@ file = ["dev-requirements.txt"]
222220
[tool.setuptools.packages.find]
223221
include = ["paperqa*"]
224222

223+
[tool.setuptools_scm]
224+
version_file = "paperqa/version.py"
225+
225226
[tool.tomlsort]
226227
all = true
227228
in_place = true

0 commit comments

Comments
 (0)