Skip to content

Commit

Permalink
MNT: Switch to flit_scm
Browse files Browse the repository at this point in the history
  • Loading branch information
effigies committed Dec 18, 2022
1 parent 12ea23c commit 19b0b60
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -127,3 +127,7 @@ dmypy.json

# Pyre type checker
.pyre/

.*.swp

_version.py
10 changes: 5 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
requires = ["flit_scm"]
build-backend = "flit_scm:buildapi"

[project]
name = "nipreps_versions"
description = "Version schemes for nipreps tools"
version = "0.0.1"
authors = [{name = "Chris Markiewicz", email = "[email protected]"}]
readme = "README.md"
license = {file = "LICENSE"}
classifiers = ["License :: OSI Approved :: Apache Software License"]
dynamic = ["version"]

[project.urls]
Home = "https://github.com/nipreps/version_schemes"

[project.entry-points."setuptools_scm.version_scheme"]
nipreps-degenerate = "nipreps_versions.schemes:nipreps_degenerate"

[tool.setuptools.packages.find]
where = ["src"]
[tool.setuptools_scm]
write_to = "src/nipreps_versions/_version.py"
4 changes: 4 additions & 0 deletions src/nipreps_versions/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
try:
from ._version import __version__
except ImportError:
pass

0 comments on commit 19b0b60

Please sign in to comment.