File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1717# add these directories to sys.path here. If the directory is relative to the
1818# documentation root, use os.path.abspath to make it absolute, like shown here.
1919sys .path .insert (0 , os .path .abspath ('..' ))
20+ from setup import kw
2021
2122# -- General configuration -----------------------------------------------------
2223
4748# |version| and |release|, also used in various other places throughout the
4849# built documents.
4950#
50- # The short X.Y version.
51- version = '0.1'
5251# The full version, including alpha/beta/rc tags.
53- release = '0.1.0'
52+ release = kw ['version' ]
53+
54+ # The short X.Y version.
55+ version = release
5456
5557# The language for content autogenerated by Sphinx. Refer to documentation
5658# for a list of supported languages.
Original file line number Diff line number Diff line change @@ -127,4 +127,5 @@ def run(self):
127127kw ['cmdclass' ]['develop' ] = DevelopCommand
128128kw ['cmdclass' ]['bdist_egg' ] = BdistEggCommand
129129
130- setup (** kw )
130+ if __name__ == '__main__' :
131+ setup (** kw )
You can’t perform that action at this time.
0 commit comments