$(BIN)/sphinx-apidoc -o docs/api/ juju/
$(BIN)/sphinx-build -b html docs/ docs/_build/
-.PHONY: clean client test docs
+upload: docs
+ $(PY) setup.py sdist upload upload_docs --upload-dir=docs/_build
+
+.PHONY: clean client test docs upload
import sys
import os
+from pathlib import Path
+
+here = Path(__file__).absolute().parent
+version = (here.parent / 'VERSION').read_text().strip()
+
# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
master_doc = 'index'
# General information about the project.
-project = u'libjuju'
-copyright = u'2016, Canonical'
+project = u'juju'
+copyright = u'2016, Canonical Ltd.'
author = u'Canonical'
# The version info for the project you're documenting, acts as replacement for
# built documents.
#
# The short X.Y version.
-version = u'0.0.0'
+version = version
# The full version, including alpha/beta/rc tags.
-release = u'0.0.0'
+release = version
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
here = Path(__file__).absolute().parent
readme = here / 'docs' / 'readme.rst'
+version = here / 'VERSION'
setup(
name='juju',
- version="0.0.1",
+ version=version.read_text().strip(),
packages=find_packages(
exclude=["*.tests", "*.tests.*", "tests.*", "tests"]),
install_requires=[