diff --git a/.travis.yml b/.travis.yml index 9c73976b..9993f92d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -100,6 +100,19 @@ jobs: after_success: - python -m pip install twine - python -m twine upload wheelhouse/*.whl + - python: 3.8 + if: branch = master + install: + - pip install -r requirements-doc.txt + - pip install awscli + - pip install -e . + script: (cd docs && make clean html) + after_success: + - aws s3 sync docs/_build/html s3://python-dependency-injector-docs --delete + - aws cloudfront create-invalidation --distribution-id ${AWS_CLOUDFRONT_DISTRIBUTION_ID} --path "/*" > /dev/null + - echo "Cache invalidation triggered" +echo "Result: OK" + - python -m twine upload wheelhouse/*.whl notifications: slack: rooms: diff --git a/docs/conf.py b/docs/conf.py index 04e3587e..57dde9d1 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -305,4 +305,5 @@ html_theme_options = { 'logo': 'logo.svg', 'description': 'Dependency injection framework for Python', 'code_font_size': '10pt', + 'analytics_id': 'UA-67012059-1', } diff --git a/docs/main/changelog.rst b/docs/main/changelog.rst index 5816a4e9..637140df 100644 --- a/docs/main/changelog.rst +++ b/docs/main/changelog.rst @@ -7,6 +7,10 @@ that were made in every particular version. From version 0.7.6 *Dependency Injector* framework strictly follows `Semantic versioning`_ +4.1.7 +----- +- Add CI job to build and push documentation to S3 bucket. + 4.1.6 ----- - Fix wiring of multiple containers diff --git a/requirements-doc.txt b/requirements-doc.txt index 1223452c..f0fdcb40 100644 --- a/requirements-doc.txt +++ b/requirements-doc.txt @@ -1,5 +1,4 @@ sphinx -alabaster>=0.7.12 -e git://github.com/rmk135/sphinxcontrib-disqus.git#egg=sphinxcontrib-disqus -r requirements-ext.txt diff --git a/src/dependency_injector/__init__.py b/src/dependency_injector/__init__.py index 5fc48203..183f4fd7 100644 --- a/src/dependency_injector/__init__.py +++ b/src/dependency_injector/__init__.py @@ -1,6 +1,6 @@ """Top-level package.""" -__version__ = '4.1.6' +__version__ = '4.1.7' """Version number. :type: str