Skip to content

Commit e94d175

Browse files
committed
Documentation: add example usage of 'write_to_template' parameter
Fix #184
1 parent 8dd71e3 commit e94d175

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)