Skip to content
This repository was archived by the owner on Sep 26, 2022. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
0fe4d5c
First test to use sphinx for documentation
tkilias Mar 23, 2021
6921bb6
Properly setup sphinx and transformed README to rst. Use poethepoet t…
tkilias Jun 7, 2021
4ba663f
Test rst references
tkilias Jun 7, 2021
d8b4cd7
Add deployment script for the documentation to github pages. Add .git…
tkilias Jun 8, 2021
441006e
Add deployment scripts for sphinx documentation
tkilias Jun 8, 2021
9f201f3
Update poetry version in CI
tkilias Jun 8, 2021
bc66fc0
Add poetry install to install packages
tkilias Jun 8, 2021
4c2665d
Ignore github-pages/* branches
tkilias Jun 8, 2021
1a0e039
Remove markdown residuals from README
tkilias Jun 8, 2021
70f6719
add git fetch into github_pages_docs* CI scripts
tkilias Jun 8, 2021
05ee4d0
Remove ref to user guide from README
tkilias Jun 8, 2021
86df39d
Test checkout in CI if it is sufficient for commit-html-doc-to-github…
tkilias Jun 8, 2021
9674a58
Remove empty headlines from README
tkilias Jun 8, 2021
3f40cfa
debug github CI github_pages_docs_for_current.yaml
tkilias Jun 8, 2021
1c4675e
debug github CI github_pages_docs_for_current.yaml
tkilias Jun 8, 2021
bd3494f
debug github CI github_pages_docs_for_current.yaml
tkilias Jun 8, 2021
8644311
debug github CI github_pages_docs_for_current.yaml
tkilias Jun 8, 2021
f879efc
Use workaround to set new github-pages branch to the correct commit id
tkilias Jun 8, 2021
5ff0532
debug github CI github_pages_docs_for_current.yaml
tkilias Jun 8, 2021
fdc7813
Fix structure of sphinx docu and start with content conversion
tkilias Jun 9, 2021
c157eea
Allow multiple versions of the documentation live in the same branch.…
tkilias Jun 10, 2021
af8859e
Move git user config before the git commit for the deployment
tkilias Jun 10, 2021
7a825a5
Fix review suggestions and check_github_pages_docs_for_feature_branch…
tkilias Jun 11, 2021
53ae6e0
Fix executable permissions for doc shell scripts
tkilias Jun 11, 2021
020ee69
Reconstruct and improve the content of the documentation
tkilias Jun 11, 2021
c7fc472
Fix copyright in documentation
Jun 22, 2021
02eeb7e
Fix the checkout of a new target branch in deploy-to-github-pages.sh
Jun 22, 2021
3df785d
Use origin branches for MAIN and ROOT in deploy-to-github-pages.sh
Jun 22, 2021
e3d4f7e
Add explanation for default branches github-pages/main and github-pag…
Jun 22, 2021
0a5d27f
Add issue to changes_0.1.0.md and fix missing empty line
Jun 22, 2021
038de81
Apply suggestions from code review
tkilias Jun 23, 2021
99ebd60
Add the creation of the new root commit to doc/deploy-to-github-pages.sh
Jun 24, 2021
d46a9ad
Adding intitial eplaination about how to build the documentation to t…
Jun 24, 2021
8096638
Move git config user to the beginning in doc/deploy-to-github-pages.sh
Jun 24, 2021
8322032
Apply suggestions from code review
tkilias Jun 24, 2021
944041d
Apply suggestions from code review
tkilias Jun 24, 2021
11039fe
Apply suggestions from code review
Jun 24, 2021
5ae0fc7
Moved setting the github user config to the CI jobs
tkilias Jun 24, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions .github/workflows/check_github_pages_docs_for_feature_branch.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Check documentation build and deployment for feature branch

on:
push:
branches-ignore:
- main
- github-pages/*

jobs:
create_github_pages_docs:
strategy:
fail-fast: false
matrix:
python-version: [3.6]
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install poetry
uses: abatilo/actions-poetry@v2.0.0
with:
poetry-version: 1.1.4
- name: Poetry install
run: poetry install
- name: Test documentation deployment for current feature branch
run: |
git config --local user.email "opensource@exasol.com"
git config --local user.name "GitHub Action"
git fetch
SOURCE_BRANCH="$(git rev-parse --abbrev-ref HEAD)"
TARGET_BRANCH="$(doc/get_target_branch_name.sh "$SOURCE_BRANCH")"
poetry run poe push-html-doc-to-github-pages-current || echo
git push origin --delete "$TARGET_BRANCH"
9 changes: 8 additions & 1 deletion .github/workflows/check_setup_py.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: Check if setup.py is up to date

on: [push, pull_request]
on:
push:
branches-ignore:
- github-pages/*

jobs:
check_setup_py:
Expand All @@ -16,6 +19,10 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
- uses: abatilo/actions-poetry@v2.0.0
with:
poetry-version: 1.1.4
- name: Poetry install
run: poetry install
- name: Run packaging update
run: bash githooks/update_setup_py.sh
- name: Show changes on working copy
Expand Down
33 changes: 33 additions & 0 deletions .github/workflows/deploy_github_pages_docs_for_main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Build and push documentation for main branch

on:
push:
branches:
- main
jobs:
create_github_pages_docs:
strategy:
fail-fast: false
matrix:
python-version: [3.6]
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install poetry
uses: abatilo/actions-poetry@v2.0.0
with:
poetry-version: 1.1.4
- name: Poetry install
run: poetry install
- name: Deploy documentation to github-pages-main branch
run: |
git config --local user.email "opensource@exasol.com"
git config --local user.name "GitHub Action"
git fetch
poetry run poe push-html-doc-to-github-pages-main
7 changes: 6 additions & 1 deletion .github/workflows/pytest.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: Run pytest tests

on: [ push, pull_request ]
on:
push:
branches-ignore:
- github-pages/*

jobs:
integration_tests:
Expand All @@ -16,6 +19,8 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
- uses: abatilo/actions-poetry@v2.0.0
with:
poetry-version: 1.1.4
- name: Poetry install
run: poetry install
- name: Poetry build
Expand Down
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -132,4 +132,7 @@ dmypy.json
poetry.lock

# PyCharm
.idea
.idea

# Sphinx
doc/_build
54 changes: 0 additions & 54 deletions README.md

This file was deleted.

43 changes: 43 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
#####################
BucketFS Utils Python
#####################

********
Overview
********

This project provides a python library for accessing the Exasol BucketFS system.
It provides functions to upload and download files to and from the BucketFS.

In a Nutshell
=============

Prerequisites
-------------

- Python 3.6+

Installation
-------------

Install the package from Github via `pip`::

pip install -e git://github.com/exasol/bucketfs-utils-python.git@{tag name}#egg=exasol-bucketfs-utils-python

Documentation
-------------

`Documentation for the latest release text <https://exasol.github.io/bucketfs-utils-python/>`_ is hosted on the Github Pages of this project.

Features
========

* Download or upload files from/to the Exasol BucketFS
* Supported sources and targets for the uploads and downloads:

* Files on the local Filesystem
* Python file objects
* Python Strings
* Python objects ((De-)Serialization with [Joblib](https://joblib.readthedocs.io/en/latest/persistence.html))

* Loading an artefact from a public Github Release into the BucketFS
30 changes: 30 additions & 0 deletions doc/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Minimal makefile for Sphinx documentation
#

# You can set these variables from the command line, and also
# from the environment for the first two.
SPHINXOPTS ?=
SPHINXBUILD ?= sphinx-build
SPHINXAPIDOC ?= sphinx-apidoc
SOURCEDIR = .
BUILDDIR = _build
MODULES_PATH = ../exasol_bucketfs_utils_python
APIDOC_OUTPUT = api

# Put it first so that "make" without argument is like "make help".
help:
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

.PHONY: help Makefile

api-doc:
@$(SPHINXAPIDOC) -T -d 1 --separate -o "$(APIDOC_OUTPUT)" "$(MODULES_PATH)"

clean-build:
[ ! -e "$(BUILDDIR)" ] || rm -r "$(BUILDDIR)"
[ ! -e "$(APIDOC_OUTPUT)" ] || rm -r "$(APIDOC_OUTPUT)"

# Catch-all target: route all unknown targets to Sphinx using the new
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
%: Makefile api-doc
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
Empty file added doc/_static/.gitkeep
Empty file.
Empty file added doc/_templates/.gitkeep
Empty file.
7 changes: 7 additions & 0 deletions doc/api/exasol_bucketfs_utils_python.bucket_config.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
exasol\_bucketfs\_utils\_python.bucket\_config module
=====================================================

.. automodule:: exasol_bucketfs_utils_python.bucket_config
:members:
:undoc-members:
:show-inheritance:
7 changes: 7 additions & 0 deletions doc/api/exasol_bucketfs_utils_python.bucketfs_config.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
exasol\_bucketfs\_utils\_python.bucketfs\_config module
=======================================================

.. automodule:: exasol_bucketfs_utils_python.bucketfs_config
:members:
:undoc-members:
:show-inheritance:
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
exasol\_bucketfs\_utils\_python.bucketfs\_connection\_config module
===================================================================

.. automodule:: exasol_bucketfs_utils_python.bucketfs_connection_config
:members:
:undoc-members:
:show-inheritance:
7 changes: 7 additions & 0 deletions doc/api/exasol_bucketfs_utils_python.bucketfs_utils.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
exasol\_bucketfs\_utils\_python.bucketfs\_utils module
======================================================

.. automodule:: exasol_bucketfs_utils_python.bucketfs_utils
:members:
:undoc-members:
:show-inheritance:
7 changes: 7 additions & 0 deletions doc/api/exasol_bucketfs_utils_python.download.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
exasol\_bucketfs\_utils\_python.download module
===============================================

.. automodule:: exasol_bucketfs_utils_python.download
:members:
:undoc-members:
:show-inheritance:
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
exasol\_bucketfs\_utils\_python.github\_release\_file\_bucketfs\_uploader module
================================================================================

.. automodule:: exasol_bucketfs_utils_python.github_release_file_bucketfs_uploader
:members:
:undoc-members:
:show-inheritance:
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
exasol\_bucketfs\_utils\_python.release\_link\_extractor module
===============================================================

.. automodule:: exasol_bucketfs_utils_python.release_link_extractor
:members:
:undoc-members:
:show-inheritance:
25 changes: 25 additions & 0 deletions doc/api/exasol_bucketfs_utils_python.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
exasol\_bucketfs\_utils\_python package
=======================================

Submodules
----------

.. toctree::
:maxdepth: 1

exasol_bucketfs_utils_python.bucket_config
exasol_bucketfs_utils_python.bucketfs_config
exasol_bucketfs_utils_python.bucketfs_connection_config
exasol_bucketfs_utils_python.bucketfs_utils
exasol_bucketfs_utils_python.download
exasol_bucketfs_utils_python.github_release_file_bucketfs_uploader
exasol_bucketfs_utils_python.release_link_extractor
exasol_bucketfs_utils_python.upload

Module contents
---------------

.. automodule:: exasol_bucketfs_utils_python
:members:
:undoc-members:
:show-inheritance:
7 changes: 7 additions & 0 deletions doc/api/exasol_bucketfs_utils_python.upload.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
exasol\_bucketfs\_utils\_python.upload module
=============================================

.. automodule:: exasol_bucketfs_utils_python.upload
:members:
:undoc-members:
:show-inheritance:
3 changes: 0 additions & 3 deletions doc/changes/changelog.md

This file was deleted.

8 changes: 8 additions & 0 deletions doc/changes/changelog.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
*****************
Changelog
*****************

.. toctree::
:maxdepth: 1

changes_0.1.0.md
16 changes: 12 additions & 4 deletions doc/changes/changes_0.1.0.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
# BucketFS Utils Python 0.1.0, released 2020-11-??

# BucketFs Utily Python 0.1.0, released XYZ
Code name: Initial implementation

## Features
## Summary

### Features

- #1: Added initial implementation.
- #6: Download file into fileobj, string or file
- #7: Upload file, string or fileboj
- #29: Add sphinx documentation

### Refactorings

#1: Added initial implementation.
- #15: Remove DepHell dependency, because it is not maintained anymore
Loading