... | ... |
@@ -34,9 +34,12 @@ _miniver_zip_url = 'https://github.com/jbweston/miniver/archive/master.zip' |
34 | 34 |
_zipfile_root = 'miniver-master' # tied to the fact that we fetch master.zip |
35 | 35 |
|
36 | 36 |
# File templates |
37 |
-_setup_template = ''' |
|
38 |
- # Loads version.py module without importing the whole package. |
|
37 |
+_setup_template = textwrap.dedent(''' |
|
39 | 38 |
def get_version_and_cmdclass(package_path): |
39 |
+ """Load version.py module without importing the whole package. |
|
40 |
+ |
|
41 |
+ Template code from miniver |
|
42 |
+ """ |
|
40 | 43 |
import os |
41 | 44 |
from importlib.util import module_from_spec, spec_from_file_location |
42 | 45 |
spec = spec_from_file_location('version', |
... | ... |
@@ -53,7 +56,7 @@ _setup_template = ''' |
53 | 56 |
version=version, |
54 | 57 |
cmdclass=cmdclass, |
55 | 58 |
) |
56 |
-''' |
|
59 |
+''') |
|
57 | 60 |
|
58 | 61 |
_static_version_template = textwrap.dedent('''\ |
59 | 62 |
# -*- coding: utf-8 -*- |