@@ -159,44 +159,47 @@ Configuration Parameters
159
159
------------------------------
160
160
161
161
In order to configure the way ``use_scm_version `` works you can provide
162
- a mapping with options instead of simple boolean value.
162
+ a mapping with options instead of a boolean value.
163
163
164
- The Currently supported configuration keys are:
164
+ The currently supported configuration keys are:
165
165
166
166
:root:
167
- cwd relative path to use for finding the scm root, defaults to :code: `. `
167
+ Relative path to cwd, used for finding the scm root, defaults to :code: `. `
168
168
169
169
:version_scheme:
170
- configures how the local version number is constructed.
171
- either an entrypoint name or a callable
170
+ Configures how the local version number is constructed.
171
+ Either an entrypoint name or a callable.
172
172
173
173
:local_scheme:
174
- configures how the local component of the version is constructed
175
- either an entrypoint name or a callable
174
+ Configures how the local component of the version is constructed.
175
+ Either an entrypoint name or a callable.
176
+
176
177
:write_to:
177
- declares a text file or python file which is replaced with a file
178
- containing the current version.
179
- its ideal or creating a version.py file within the package
178
+ A path to a file that gets replaced with a file containing the current
179
+ version.
180
+ It is ideal for creating a version.py file within the package.
180
181
181
182
.. warning ::
182
183
183
- only :code: `*.py ` and :code: `*.txt ` have builtin templates,
184
- for other extensions it is necessary
185
- to provide a :code: `write_to_template `
184
+ Only files with :code: `.py ` and :code: `.txt ` extensions have builtin
185
+ templates, for other file types it is necessary to provide
186
+ :code: `write_to_template `.
187
+
186
188
:write_to_template:
187
- a newstyle format string thats given the current version as
188
- the :code: `version ` keyword argument for formatting
189
+ A newstyle format string that is given the current version as
190
+ the :code: `version ` keyword argument for formatting.
189
191
190
192
:relative_to:
191
- a file from which root may be resolved. typically called by a
192
- script or module that is not
193
- in the root of the repository to direct setuptools_scm to the
194
- root of the repository by supplying ``__file__ ``.
193
+ A file from which the root can be resolved.
194
+ Typically called by a script or module that is not in the root of the
195
+ repository to point setuptools_scm at the root of the repository by
196
+ supplying ``__file__ ``.
195
197
196
198
:parse:
197
- a function that will be used instead of the discovered scm for parsing the version,
198
- use with caution, this is a expert function and you should be closely familiar
199
- with the setuptools_scm internals to use it
199
+ A function that will be used instead of the discovered SCM for parsing the
200
+ version.
201
+ Use with caution, this is a function for advanced use, and you should be
202
+ familiar with the setuptools_scm internals to use it.
200
203
201
204
202
205
To use setuptools_scm in other Python code you can use the
0 commit comments