Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
5 changes: 3 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.8]
python-version: [3.13]

steps:
- uses: actions/checkout@v2
Expand All @@ -30,4 +30,5 @@ jobs:
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=180 --statistics
- name: Test with pytest
run: |
python setup.py test
pip install pytest
pytest tests
15 changes: 4 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,6 @@ Provide for each resource endpoint an rest api client.
## Module workspace
Provide a fluent way to create or update an Airlock Gateway configuration.

## Documentation
For full documentation and tutorials, trigger:
```
python setup.py build_sphinx
```

## Requirements
- Python 3.8 or higher
- virutalenv
Expand All @@ -22,7 +16,7 @@ python setup.py build_sphinx
```
python3 -m venv env
source env/bin/activate
pip install -r requirement.txt
pip install -r requirements.txt
pip install -e .
```

Expand All @@ -39,9 +33,8 @@ python setup.py sdist bdist_wheel
```

## Contributing
Please use the [GitHub issue tracker](https://github.com/orltom/airlock-gateway-client-python/issues) to submit bugs or request features.
Contributions are welcome in any form, be it code, logic, documentation, examples, requests, bug reports,
ideas or anything else that will help this project move forward.

## Disclaimer
Copyright Orlando Tomás.

Distributed under the terms of the MIT license, airlock-gateway-client is free and open source software.
This project is licensed under the MIT License. See the LICENSE file for more details.
2 changes: 2 additions & 0 deletions client/crud_client.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from .airlock_session import AirlockSession

class ResourceRUClient:
def __init__(self, session: type(AirlockSession), base_path: str):
self.client = session
Expand Down
8 changes: 3 additions & 5 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
requests==2.25.0
sphinx
sphinx_rtd_theme
pytest
wheel
requests==2.32.0
wheel
setuptools>=42.0.0
26 changes: 1 addition & 25 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,39 +2,15 @@
# -*- coding: utf-8 -*-
from version import __version__
from setuptools import setup
from sphinx.setup_command import BuildDoc
import subprocess


class BuildDocApiDoc(BuildDoc, object):
"""Execute sphinx-apidoc before trigger the sphinx-build"""

def run(self):
sphinx_apidoc = subprocess.run(["sphinx-apidoc", "-f", "-o", "doc/source/", "client/"])
if sphinx_apidoc.returncode != 0:
raise Exception("sphinx-apidoc failed.")
super(BuildDocApiDoc, self).run()


setup(
version=__version__,
packages=[
'client',
'workspace'
],
python_requires='>=3.8',
install_requires=[
'requests==2.24.0'
],
python_requires='>=3.13',
setup_requires=[
'sphinx',
'sphinx_rtd_theme',
'pytest-runner'
],
tests_require=[
'pytest'
],
cmdclass={
'build_sphinx': BuildDocApiDoc
}
)
Loading