Skip to content

Commit 873f065

Browse files
Merge pull request #272 from blueyed/revisit-readme
Revisit README
2 parents dbb1e92 + 060e8b0 commit 873f065

File tree

1 file changed

+25
-22
lines changed

1 file changed

+25
-22
lines changed

README.rst

Lines changed: 25 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -159,44 +159,47 @@ Configuration Parameters
159159
------------------------------
160160

161161
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.
163163

164-
The Currently supported configuration keys are:
164+
The currently supported configuration keys are:
165165

166166
: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:`.`
168168

169169
: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.
172172

173173
: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+
176177
: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.
180181

181182
.. warning::
182183

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+
186188
: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.
189191

190192
: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__``.
195197

196198
: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.
200203

201204

202205
To use setuptools_scm in other Python code you can use the

0 commit comments

Comments
 (0)