Skip to content
This repository has been archived by the owner on Dec 20, 2024. It is now read-only.

Commit

Permalink
Merge pull request #15 from DCSO/fix/pypi-doc
Browse files Browse the repository at this point in the history
Fix documentation installing from PyPI
  • Loading branch information
Geert Vanderkelen authored Jan 15, 2021
2 parents c016bc1 + 1c3b25f commit 662b201
Show file tree
Hide file tree
Showing 20 changed files with 42 additions and 32 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ Installation
This section explains how to install the DCSO Portal Python SDK. You can get
a copy and source on [GitHub](https://github.com/dcso/dcso-portal-python-sdk).

### From Python Package Index (PyPI)

$ pip install -U dcso-portal-python-sdk


### Using Source

Installation is done using `setup.py`:
Expand Down
2 changes: 1 addition & 1 deletion docs/dcso/glosom/constants.html
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ <h1>Index</h1>
<p>Copyright (c) 2020, <a href="https://dcso.de">DCSO Deutsche Cyber-Sicherheitsorganisation GmbH</a></p>
</div>
<div>
<p><strong>v0.1.0-beta1</strong></p>
<p><strong>v1.0.0-beta2</strong></p>
</div>
</div>
</footer>
Expand Down
2 changes: 1 addition & 1 deletion docs/dcso/glosom/glosom.html
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ <h4><code><a title="dcso.glosom.glosom.GlosomException" href="#dcso.glosom.gloso
<p>Copyright (c) 2020, <a href="https://dcso.de">DCSO Deutsche Cyber-Sicherheitsorganisation GmbH</a></p>
</div>
<div>
<p><strong>v0.1.0-beta1</strong></p>
<p><strong>v1.0.0-beta2</strong></p>
</div>
</div>
</footer>
Expand Down
2 changes: 1 addition & 1 deletion docs/dcso/glosom/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ <h1>Index</h1>
<p>Copyright (c) 2020, <a href="https://dcso.de">DCSO Deutsche Cyber-Sicherheitsorganisation GmbH</a></p>
</div>
<div>
<p><strong>v0.1.0-beta1</strong></p>
<p><strong>v1.0.0-beta2</strong></p>
</div>
</div>
</footer>
Expand Down
2 changes: 1 addition & 1 deletion docs/dcso/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ <h1>Index</h1>
<p>Copyright (c) 2020, <a href="https://dcso.de">DCSO Deutsche Cyber-Sicherheitsorganisation GmbH</a></p>
</div>
<div>
<p><strong>v0.1.0-beta1</strong></p>
<p><strong>v1.0.0-beta2</strong></p>
</div>
</div>
</footer>
Expand Down
4 changes: 2 additions & 2 deletions docs/dcso/portal/abstracts.html
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ <h3>Instance variables</h3>
<h3>Methods</h3>
<dl>
<dt id="dcso.portal.abstracts.APIAbstract.execute_graphql"><code class="name flex">
<span>def <span class="ident">execute_graphql</span></span>(<span>self, query: str, variables: Union[dict, NoneType] = None, fragments: Union[List[str], NoneType] = None) ‑> <function namedtuple at 0x7fa1a4c01830></span>
<span>def <span class="ident">execute_graphql</span></span>(<span>self, query: str, variables: Union[dict, NoneType] = None, fragments: Union[List[str], NoneType] = None) ‑> <function namedtuple at 0x7fc9a5b1e830></span>
</code></dt>
<dd>
<div class="desc"></div>
Expand Down Expand Up @@ -245,7 +245,7 @@ <h4><code><a title="dcso.portal.abstracts.ServiceAbstract" href="#dcso.portal.ab
<p>Copyright (c) 2020, <a href="https://dcso.de">DCSO Deutsche Cyber-Sicherheitsorganisation GmbH</a></p>
</div>
<div>
<p><strong>v0.1.0-beta1</strong></p>
<p><strong>v1.0.0-beta2</strong></p>
</div>
</div>
</footer>
Expand Down
4 changes: 2 additions & 2 deletions docs/dcso/portal/api.html
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ <h3>Methods</h3>
</details>
</dd>
<dt id="dcso.portal.api.APIClient.execute_graphql"><code class="name flex">
<span>def <span class="ident">execute_graphql</span></span>(<span>self, query: str, variables: Union[dict, NoneType] = None, fragments: Union[List[str], NoneType] = None) ‑> <function namedtuple at 0x7fa1a4c01830></span>
<span>def <span class="ident">execute_graphql</span></span>(<span>self, query: str, variables: Union[dict, NoneType] = None, fragments: Union[List[str], NoneType] = None) ‑> <function namedtuple at 0x7fc9a5b1e830></span>
</code></dt>
<dd>
<div class="desc"><p>Executes the GraphQL query and returns response as namedtuple. This
Expand Down Expand Up @@ -596,7 +596,7 @@ <h4><code><a title="dcso.portal.api.APIClient" href="#dcso.portal.api.APIClient"
<p>Copyright (c) 2020, <a href="https://dcso.de">DCSO Deutsche Cyber-Sicherheitsorganisation GmbH</a></p>
</div>
<div>
<p><strong>v0.1.0-beta1</strong></p>
<p><strong>v1.0.0-beta2</strong></p>
</div>
</div>
</footer>
Expand Down
2 changes: 1 addition & 1 deletion docs/dcso/portal/auth/auth.html
Original file line number Diff line number Diff line change
Expand Up @@ -721,7 +721,7 @@ <h4><code><a title="dcso.portal.auth.auth.Authentication" href="#dcso.portal.aut
<p>Copyright (c) 2020, <a href="https://dcso.de">DCSO Deutsche Cyber-Sicherheitsorganisation GmbH</a></p>
</div>
<div>
<p><strong>v0.1.0-beta1</strong></p>
<p><strong>v1.0.0-beta2</strong></p>
</div>
</div>
</footer>
Expand Down
2 changes: 1 addition & 1 deletion docs/dcso/portal/auth/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ <h1>Index</h1>
<p>Copyright (c) 2020, <a href="https://dcso.de">DCSO Deutsche Cyber-Sicherheitsorganisation GmbH</a></p>
</div>
<div>
<p><strong>v0.1.0-beta1</strong></p>
<p><strong>v1.0.0-beta2</strong></p>
</div>
</div>
</footer>
Expand Down
2 changes: 1 addition & 1 deletion docs/dcso/portal/auth/rbac.html
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ <h4><code><a title="dcso.portal.auth.rbac.ServicePermissions" href="#dcso.portal
<p>Copyright (c) 2020, <a href="https://dcso.de">DCSO Deutsche Cyber-Sicherheitsorganisation GmbH</a></p>
</div>
<div>
<p><strong>v0.1.0-beta1</strong></p>
<p><strong>v1.0.0-beta2</strong></p>
</div>
</div>
</footer>
Expand Down
2 changes: 1 addition & 1 deletion docs/dcso/portal/auth/token.html
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ <h4><code><a title="dcso.portal.auth.token.Token" href="#dcso.portal.auth.token.
<p>Copyright (c) 2020, <a href="https://dcso.de">DCSO Deutsche Cyber-Sicherheitsorganisation GmbH</a></p>
</div>
<div>
<p><strong>v0.1.0-beta1</strong></p>
<p><strong>v1.0.0-beta2</strong></p>
</div>
</div>
</footer>
Expand Down
2 changes: 1 addition & 1 deletion docs/dcso/portal/exceptions.html
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ <h4><code><a title="dcso.portal.exceptions.PortalException" href="#dcso.portal.e
<p>Copyright (c) 2020, <a href="https://dcso.de">DCSO Deutsche Cyber-Sicherheitsorganisation GmbH</a></p>
</div>
<div>
<p><strong>v0.1.0-beta1</strong></p>
<p><strong>v1.0.0-beta2</strong></p>
</div>
</div>
</footer>
Expand Down
4 changes: 2 additions & 2 deletions docs/dcso/portal/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ <h1 class="title">Module <code>dcso.portal</code></h1>
which need to interact with the DCSO Portal.</p>
<h2 id="installation">Installation</h2>
<p>To install the latest DCSO Portal SDK using pip:</p>
<pre><code>$ pip install dcso-portal-sdk
<pre><code>$ pip install dcso-portal-python-sdk
</code></pre>
<p>We advise to use a Virtual Environment when testing/developing.</p>
<p>Alternatively, you can can download or clone the DCSO Portal SDK from
Expand Down Expand Up @@ -211,7 +211,7 @@ <h1>Index</h1>
<p>Copyright (c) 2020, <a href="https://dcso.de">DCSO Deutsche Cyber-Sicherheitsorganisation GmbH</a></p>
</div>
<div>
<p><strong>v0.1.0-beta1</strong></p>
<p><strong>v1.0.0-beta2</strong></p>
</div>
</div>
</footer>
Expand Down
6 changes: 3 additions & 3 deletions docs/dcso/portal/util/graphql.html
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ <h1 class="title">Module <code>dcso.portal.util.graphql</code></h1>
<h2 class="section-title" id="header-functions">Functions</h2>
<dl>
<dt id="dcso.portal.util.graphql.graphql_data_to_namedtuple"><code class="name flex">
<span>def <span class="ident">graphql_data_to_namedtuple</span></span>(<span>mapping: dict, name: str = 'data') ‑> <function namedtuple at 0x7fa1a4c01830></span>
<span>def <span class="ident">graphql_data_to_namedtuple</span></span>(<span>mapping: dict, name: str = 'data') ‑> <function namedtuple at 0x7fc9a5b1e830></span>
</code></dt>
<dd>
<div class="desc"><p>Transforms GraphQL response data and returns it as a namedtuple.</p>
Expand Down Expand Up @@ -629,7 +629,7 @@ <h3>Methods</h3>
<h3>Methods</h3>
<dl>
<dt id="dcso.portal.util.graphql.GraphQLRequest.execute"><code class="name flex">
<span>def <span class="ident">execute</span></span>(<span>self) ‑> <function namedtuple at 0x7fa1a4c01830></span>
<span>def <span class="ident">execute</span></span>(<span>self) ‑> <function namedtuple at 0x7fc9a5b1e830></span>
</code></dt>
<dd>
<div class="desc"><p>Executes the GraphQL request returning response as a namedtuple.</p>
Expand Down Expand Up @@ -835,7 +835,7 @@ <h4><code><a title="dcso.portal.util.graphql.GraphQLRequest" href="#dcso.portal.
<p>Copyright (c) 2020, <a href="https://dcso.de">DCSO Deutsche Cyber-Sicherheitsorganisation GmbH</a></p>
</div>
<div>
<p><strong>v0.1.0-beta1</strong></p>
<p><strong>v1.0.0-beta2</strong></p>
</div>
</div>
</footer>
Expand Down
2 changes: 1 addition & 1 deletion docs/dcso/portal/util/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ <h1>Index</h1>
<p>Copyright (c) 2020, <a href="https://dcso.de">DCSO Deutsche Cyber-Sicherheitsorganisation GmbH</a></p>
</div>
<div>
<p><strong>v0.1.0-beta1</strong></p>
<p><strong>v1.0.0-beta2</strong></p>
</div>
</div>
</footer>
Expand Down
2 changes: 1 addition & 1 deletion docs/dcso/portal/util/networking.html
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ <h1>Index</h1>
<p>Copyright (c) 2020, <a href="https://dcso.de">DCSO Deutsche Cyber-Sicherheitsorganisation GmbH</a></p>
</div>
<div>
<p><strong>v0.1.0-beta1</strong></p>
<p><strong>v1.0.0-beta2</strong></p>
</div>
</div>
</footer>
Expand Down
2 changes: 1 addition & 1 deletion docs/dcso/portal/util/temporal.html
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ <h1>Index</h1>
<p>Copyright (c) 2020, <a href="https://dcso.de">DCSO Deutsche Cyber-Sicherheitsorganisation GmbH</a></p>
</div>
<div>
<p><strong>v0.1.0-beta1</strong></p>
<p><strong>v1.0.0-beta2</strong></p>
</div>
</div>
</footer>
Expand Down
2 changes: 1 addition & 1 deletion lib/dcso/portal/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Installation

To install the latest DCSO Portal SDK using pip:

$ pip install dcso-portal-sdk
$ pip install dcso-portal-python-sdk

We advise to use a Virtual Environment when testing/developing.

Expand Down
2 changes: 1 addition & 1 deletion lib/dcso/portal/_version.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Copyright (c) 2021, DCSO GmbH

__version__ = "1.0.0-beta1"
__version__ = "1.0.0-beta2"
23 changes: 14 additions & 9 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2020, DCSO GmbH
# Copyright (c) 2020, 2021, DCSO GmbH

import os
import sys
Expand All @@ -11,24 +11,29 @@

from lib.dcso.portal._version import __version__ # nopep8 allowing import here

with open(os.path.join(os.path.abspath(curr_wd), 'README.md'), encoding='utf-8') as f:
long_description = f.read()

setup(name='dcso_portal_python_sdk',
version=__version__,
description="DCSO Portal SDK",
long_description=long_description,
long_description_content_type='text/markdown',
author='DCSO GmbH',
author_email='[email protected]',
url="https://dcso.de",
url="https://dcso.github.io/dcso-portal-python-sdk/dcso/portal/",
package_dir={'': 'lib'},
packages=find_namespace_packages(where='lib'),
license='MIT License',
license_files=['LICENSE.txt'],
platforms=['Any'],
classifiers=[
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.7",
"Operating System :: OS Independent",
"Development Status :: 3 - Alpha",
"License :: OSI Approved :: MIT License",
"Topic :: Software Development",
"Topic :: Software Development :: Version Control :: Git",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.7",
"Operating System :: OS Independent",
"Development Status :: 4 - Beta",
"License :: OSI Approved :: MIT License",
"Topic :: Software Development",
"Topic :: Software Development :: Version Control :: Git",
],
)

0 comments on commit 662b201

Please sign in to comment.