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
8 changes: 1 addition & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
python: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]

include:
- os: [ubuntu-22.04]
python: "3.7"
- os: [windows-2019]
python: "3.7"
python: ["3.9", "3.10", "3.11", "3.12", "3.13"]

steps:
- uses: actions/checkout@v4
Expand Down
27 changes: 21 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,24 @@
# Python-generated files
__pycache__/
*.py[oc]
build/
dist/
wheels/
*.egg-info

# Virtual environments
.venv

# Coverage
.coverage
cover

# Docs
docs/html

# Tests
.tox
*.pyc

.project
.idea
.pydevproject
Expand All @@ -10,9 +28,6 @@
*.help
.pylintrc
*.log
__pycache__
.DS_Store
nosetests.xml
*.egg-info
docs/html
cover


1 change: 1 addition & 0 deletions .python-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.9
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ This repository contains the IBM RESTful API Python client, which establishes te

## Python Compatibility

The content in this collection supports Python 3.7 and newer.
The content in this collection supports Python 3.9 and newer.

## Getting started

Expand Down Expand Up @@ -42,17 +42,17 @@ To display the full RESTful API Reference Guide of a specific storage system and

2. On the welcome page, select a storage system software version. For example, select **Version 8.5.3**.

![Software version](https://github.com/IBM/pyds8k/blob/master/images/1.jpg)
![Software version](images/1.jpg)

The welcome page of the selected software version is displayed.

3. If needed, select the **Table of contents** tab.

![Table of contents](https://github.com/IBM/pyds8k/blob/master/images/2.jpg)
![Table of contents](images/2.jpg)

4. On the table of contents, click **RESTful API**.

![CLI interface](https://github.com/IBM/pyds8k/blob/master/images/3.jpg)
![CLI interface](images/3.jpg)

5. Refer to **Host commands** and to all subsequent chapters.

Expand Down
62 changes: 62 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
[project]
name = "pyds8k"
description = "DS8000 Python Client"
dynamic = ["version"]
readme = "README.md"
license-files = ["LICENSE"]
requires-python = ">=3.9"
authors = [
{ name = "Zhang Wu", email = "shwzhang@cn.ibm.com" },
]
maintainers = [
{ name = "Randy Blea", email = "blead@us.ibm.com" },
{ name = "NjM3MjY5NzAgNzA3MzA3", email = "102704081+NjM3MjY5NzAgNzA3MzA3@users.noreply.github.com" },
]
keywords = [
"IBM",
"DS8000 Storage"
]
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'Environment :: Console',
'Programming Language :: Python',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Programming Language :: Python :: 3.13',
'Topic :: Software Development :: Libraries :: Python Modules',
]
dependencies = [
"requests>=2.31.0",
]
[dependency-groups]
dev = [
"flake8>=7.0.0",
"sphinx>=2.2.1",
]
test = [
"pytest>=7.0.0",
"pytest-cov>=3.0.0",
"mock>=3.0.5",
"httpretty>=0.9.6",
"tox>=4.22.0"
]

[build-system]
requires = ["setuptools >= 77.0.0"]
build-backend = "setuptools.build_meta"

[project.urls]
Documentation = "https://pyds8k.readthedocs.io/en/latest"
Homepage = "https://github.com/IBM/pyds8k"
Issues = "https://github.com/IBM/pyds8k/issues"
Repository = "https://github.com/IBM/pyds8k.git"

[tool.setuptools.dynamic]
version = {attr = "pyds8k.version"} # Set in pyds8k/__init__.py

[tool.setuptools.packages.find]
exclude = ["cover", "images"]
1 change: 0 additions & 1 deletion requirements.txt

This file was deleted.

55 changes: 0 additions & 55 deletions setup.py

This file was deleted.

6 changes: 0 additions & 6 deletions test-requirements.txt

This file was deleted.

14 changes: 6 additions & 8 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,30 +1,28 @@
[tox]
minversion = 3.14.3
minversion = 4.22.0
skipdist = True
envlist = py3{6,7,8,9,10,11},flake8,cover,docs
envlist = py3{9,10,11,12,13},flake8,cover,docs

[testenv]
setenv = VIRTUAL_ENV={envdir}
usedevelop = True
install_command = pip install {opts} {packages}

deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
dependency_groups = test
commands =
pytest --disable-warnings -v {posargs}

[testenv:cover]
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
dependency_groups = test
commands =
pytest --cov-config=.coveragerc --cov pyds8k --disable-warnings -v {posargs}

[testenv:docs]
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
dependency_groups = dev
commands =
sphinx-build -b html docs docs/html

[testenv:flake8]
dependency_groups = dev
commands =
flake8 {posargs} --exclude=./pyds8k/tests/ ./pyds8k
Loading