Skip to content

Commit 79c2b55

Browse files
Jamimtheacodes
authored andcommitted
Make the warning about dependencies in __init__.py an actual warning admonition (#570)
1 parent c845df6 commit 79c2b55

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

‎source/guides/single-sourcing-package-version.rst‎

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,10 +109,12 @@ number of your project:
109109
...
110110
)
111111

112-
Although this technique is common, beware that it will fail if
113-
``sample/__init__.py`` imports packages from ``install_requires``
114-
dependencies, which will very likely not be installed yet when
115-
:file:`setup.py` is run.
112+
.. warning::
113+
114+
Although this technique is common, beware that it will fail if
115+
``sample/__init__.py`` imports packages from ``install_requires``
116+
dependencies, which will very likely not be installed yet when
117+
:file:`setup.py` is run.
116118

117119

118120
#. Keep the version number in the tags of a version control system (Git, Mercurial, etc)

0 commit comments

Comments
 (0)