Skip to content

Commit e863ca0

Browse files
Merge pull request #348 from vanschelven/fix-184-document-write-to-template
Documentation: add example usage of 'write_to_template' parameter
2 parents 8dd71e3 + e94d175 commit e863ca0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,8 @@ Example configuration in ``setup.py`` format:
318318
319319
setup(
320320
use_scm_version={
321-
'write_to': 'version.txt',
321+
'write_to': 'version.py',
322+
'write_to_template': '__version__ = "{version}"',
322323
'tag_regex': r'^(?P<prefix>v)?(?P<version>[^\+]+)(?P<suffix>.*)?$',
323324
}
324325
)

0 commit comments

Comments
 (0)