Skip to content

Commit d1e842a

Browse files
authored
Merge pull request #117 from 10sr/fixversion
Configure setuptools_scm in pyproject.toml
2 parents 06af536 + e8ab65a commit d1e842a

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

flake8_no_implicit_concat/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
from itertools import pairwise
1414

1515
try:
16-
from ._version import __version__ # type: ignore
16+
from ._version import __version__
1717
except ImportError:
1818
__version__ = "N/A"
1919

pyproject.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
[build-system]
2-
requires = ["setuptools>=45", "wheel", "setuptools_scm[toml]>=6.0"]
2+
requires = ["setuptools>=80", "wheel", "setuptools_scm[simple]>=8.0"]
33
build-backend = "setuptools.build_meta"
4+
5+
[tool.setuptools_scm]
6+
version_file = "flake8_no_implicit_concat/_version.py"
7+
local_scheme = "no-local-version"

setup.cfg

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
[metadata]
22
name = flake8-no-implicit-concat
3-
use_scm_version =
4-
write_to = flake8_no_implicit_concat/_version.py
5-
local_schema = no-local-version
6-
version = attr: setuptools_scm.get_version
73
description = Flake8 plugin that forbids implicit str/bytes literal concatenations
84
long_description = file: README.md
95
long_description_content_type = text/markdown

0 commit comments

Comments
 (0)