summaryrefslogtreecommitdiff
path: root/README.rst
diff options
context:
space:
mode:
authorMihai Capotă <mihai@mihaic.ro>2016-10-20 17:57:04 -0700
committerMihai Capotă <mihai@mihaic.ro>2016-10-20 17:57:04 -0700
commit97423d0a1587192aae980f47343a662c0f6ea05f (patch)
tree4aa36cb557d10a8059f291b0aaeccecf2ccac1e5 /README.rst
parent9cf20094857f4568ef0218ae132913d1a08ed35d (diff)
downloadsetuptools-scm-97423d0a1587192aae980f47343a662c0f6ea05f.tar.gz
Fix Sphinx usage example
Diffstat (limited to 'README.rst')
-rw-r--r--README.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/README.rst b/README.rst
index ab1e8cb..a9eb9f7 100644
--- a/README.rst
+++ b/README.rst
@@ -53,8 +53,8 @@ instead use ``pkg_resources`` after editable/real installation:
.. code:: python
from pkg_resources import get_distribution
- release = pkg_resources('myproject').version
- # for the example take major/minor
+ release = get_distribution('myproject').version
+ # for example take major/minor
version = '.'.join(release.split('.')[:2])
The underlying reason is, that services like readthedocs sometimes change