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
3 changes: 1 addition & 2 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install .
pip install -e ".[test]"
- name: Test
run: |
python -m unittest
python -m pytest
7 changes: 1 addition & 6 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,7 @@ jobs:
python -m pip install --upgrade pip
pip install build
- name: Build package
run: python -m
build
--sdist
--wheel
--outdir dist/
.
run: python -m build --sdist --wheel --outdir dist/ .
- name: Publish distribution 📦 to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,5 @@ target/

#Ipython Notebook
.ipynb_checkpoints

**/.claude/settings.local.json
25 changes: 0 additions & 25 deletions .gitlab-ci.yml

This file was deleted.

17 changes: 0 additions & 17 deletions .travis.yml

This file was deleted.

26 changes: 12 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,40 +17,38 @@ Python 3.7+

### pip install

If the python package is hosted on a repository, you can install directly using:
You can install directly using pip:

```sh
pip install onelogin
```

(you may need to run `pip` with root permission: `sudo pip install onelogin`)
For development and testing, install with test dependencies:

```sh
pip install onelogin[test]
```

Then import the package:

```python
import onelogin
```

### Setuptools
### Tests

Install via [Setuptools](http://pypi.python.org/pypi/setuptools).
First, install the package with test dependencies:

```sh
python setup.py install --user
pip install -e .[test]
```

(or `sudo python setup.py install` to install the package for all users)

Then import the package:
Then run the tests:

```python
import onelogin
```sh
pytest
```

### Tests

Execute `pytest` to run the tests.

## Getting Started

Please follow the [installation procedure](#installation--usage) and then run the following:
Expand Down
57 changes: 0 additions & 57 deletions git_push.sh

This file was deleted.

2 changes: 1 addition & 1 deletion onelogin/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"""


__version__ = "3.1.5"
__version__ = "3.1.6"

# import apis into sdk package
from onelogin.api.api_auth_claims_api import APIAuthClaimsApi
Expand Down
54 changes: 37 additions & 17 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,29 +1,49 @@
[tool.poetry]
[project]
name = "onelogin"
version = "3.1.5"
version = "3.1.6"
description = "OneLogin API"
authors = ["OneLogin <team@openapitools.org>"]
license = "NoLicense"
authors = [
{name = "OneLogin", email = "team@openapitools.org"}
]
license = {text = "NoLicense"}
readme = "README.md"
repository = "https://github.com/GIT_USER_ID/GIT_REPO_ID"
keywords = ["OpenAPI", "OpenAPI-Generator", "OneLogin API"]
requires-python = ">=3.7"
dependencies = [
"urllib3>=2.0.2",
"python-dateutil>=2.5.3",
"pydantic>=2.11.0",
"aenum>=3.1.11",
"setuptools>=67.7.1",
]

[tool.poetry.dependencies]
python = "^3.7"
[project.optional-dependencies]
test = [
"pytest~=7.1.3",
"pytest-cov>=2.8.1",
"pytest-randomly>=3.12.0",
"flake8>=4.0.0",
"tox>=3.9.0",
]

urllib3 = ">= 1.25.3"
python-dateutil = ">=2.8.2"
pydantic = ">=2.11.0"
aenum = ">=3.1.11"

[tool.poetry.dev-dependencies]
pytest = ">=7.2.1"
tox = ">=3.9.0"
flake8 = ">=4.0.0"
[project.urls]
Repository = "https://github.com/onelogin/onelogin-python-sdk"

[build-system]
requires = ["setuptools"]
requires = ["setuptools>=67.7.1", "wheel"]
build-backend = "setuptools.build_meta"

[tool.setuptools]
packages = ["onelogin"]
package-dir = {"" = "."}
include-package-data = true

[tool.pytest.ini_options]
testpaths = ["test"]
python_files = "test_*.py"

[tool.flake8]
max-line-length = 99

[tool.pylint.'MESSAGES CONTROL']
extension-pkg-whitelist = "pydantic"
5 changes: 0 additions & 5 deletions requirements.txt

This file was deleted.

2 changes: 0 additions & 2 deletions setup.cfg

This file was deleted.

45 changes: 0 additions & 45 deletions setup.py

This file was deleted.

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

This file was deleted.

12 changes: 6 additions & 6 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
[tox]
envlist = py3
envlist = py37, py38, py39, py310, py311
isolated_build = True

[testenv]
deps=-r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt

commands=
pytest --cov=onelogin
deps =
.[test]
commands =
pytest --cov=onelogin