Skip to content

Commit 3c8bfc1

Browse files
authored
Merge pull request #19 from cloudblue/namespace_pkg_docs_version
Move code under namespace "connect"
2 parents a332b7e + e4bfcd9 commit 3c8bfc1

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+35676
-11308
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
poetry install
3030
- name: Linting
3131
run: |
32-
poetry run flakehell lint
32+
poetry run flake8
3333
- name: Testing
3434
run: |
3535
poetry run pytest

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
poetry install
2121
- name: Linting
2222
run: |
23-
poetry run flakehell lint
23+
poetry run flake8
2424
- name: Testing
2525
run: |
2626
poetry run pytest

.github/workflows/docs.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Build Docs For Connect Python OpenAPI Client
2+
3+
on:
4+
push:
5+
tags:
6+
- '*'
7+
8+
jobs:
9+
mddocs:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
with:
14+
fetch-depth: 0
15+
- name: Setup branch for markdown documentation
16+
run: |
17+
git remote add docs https://$GITHUB_TOKEN@github.com/cloudblue/connect-python-openapi-client.git
18+
sh -c 'test -n "$(git ls-remote docs docs/markdown)" && git push -d docs docs/markdown || exit 0'
19+
git checkout -B docs/markdown
20+
env:
21+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
22+
- name: Set up Python
23+
uses: actions/setup-python@v2
24+
with:
25+
python-version: '3.x'
26+
- name: Install dependencies
27+
run: |
28+
python -m pip install --upgrade pip
29+
pip install poetry
30+
poetry install
31+
- name: Build markdown docs
32+
run: |
33+
cd docs
34+
poetry run sphinx-build -M markdown ./ _build
35+
poetry run python genindex.py
36+
- name: Commit generated documentation
37+
run: |
38+
git config --local user.name "Github actions docs bot"
39+
git config --local user.email "bot@github.com"
40+
git add -f docs/_build/markdown
41+
git commit -am 'Docs generated'
42+
- name: Push markdown documentation branch to remote
43+
run: |
44+
git push -u docs docs/markdown
45+
env:
46+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,4 @@ coverage/
1717
/htmlcov/
1818
docs/_build
1919
temp/
20+
converage.xml

cnct/__init__.py

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
# -*- coding: utf-8 -*-
2-
3-
# This file is part of the Ingram Micro Cloud Blue Connect connect-fluent-client.
4-
# Copyright (c) 2019-2020 Ingram Micro. All Rights Reserved.
5-
6-
from cnct.client.exceptions import ClientError # noqa
7-
from cnct.client.fluent import ConnectClient # noqa
8-
from cnct.client.version import get_version # noqa
9-
from cnct.rql import R # noqa
1+
from connect.client.exceptions import ClientError # noqa
2+
from connect.client.fluent import ConnectClient # noqa
3+
from connect.client.rql import R # noqa

cnct/client/__init__.py

Whitespace-only changes.

cnct/client/models/__init__.py

Lines changed: 0 additions & 2 deletions
This file was deleted.

cnct/rql.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from connect.client.rql import R # noqa

cnct/rql/__init__.py

Lines changed: 0 additions & 1 deletion
This file was deleted.

connect/client/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
from connect.client.exceptions import ClientError # noqa
2+
from connect.client.fluent import ConnectClient # noqa
3+
from connect.client.rql import R # noqa

0 commit comments

Comments
 (0)