Skip to content

Commit 9d50b6f

Browse files
authored
Merge pull request #28 from astronomy-commons/delucchi/scm
Carry scm version information in builds.
2 parents a4613ad + 2d940b3 commit 9d50b6f

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.github/workflows/python-package.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,4 @@ jobs:
3535
python -m pytest --cov=. --cov-report=xml
3636
- name: Analyze code with pylint
3737
run: |
38-
pylint -rn -sn --recursive=y ./src
38+
pylint -rn -sn --recursive=y --ignore=_version.py ./src

pyproject.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,12 @@ long_description = { file = "README.md" }
3737
url = "https://github.com/astronomy-commons/hipscat"
3838

3939
[build-system]
40-
requires = ["setuptools","wheel"]
40+
requires = ["setuptools","wheel","setuptools_scm"]
4141
build-backend = "setuptools.build_meta"
4242

43+
[tool.setuptools_scm]
44+
write_to = "src/hipscat/_version.py"
45+
4346
[tool.pylint.'MESSAGES CONTROL']
4447
disable = """
4548
missing-module-docstring,

0 commit comments

Comments
 (0)