Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge upstream to 0.9.0 #4

Merged
merged 53 commits into from
Mar 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
37feab0
Merge pull request #13 from merit-network/master
merit-sno Mar 9, 2020
33644a2
Update the changelog
merit-sno Apr 22, 2020
e44ff53
v0.5.0 - Support for NetSuite SuiteTalk Web Services REST API
jacobsvante May 2, 2020
4829cc6
Merge pull request #16 from jmagnusson/rest-api
jacobsvante May 2, 2020
9389dff
v0.5.1 - Fix HTML title in OpenAPI Swagger docs
jacobsvante May 2, 2020
5bef4b8
Bump to 0.5.1
jacobsvante May 2, 2020
b99c939
v0.5.2 - Improvements and fixes to netsuite rest-api get command
jacobsvante May 2, 2020
60a2606
Enforce code standard with black and isort
jacobsvante May 2, 2020
35a1c4a
Add python 3.8 to CI
jacobsvante May 2, 2020
4ffbe23
Merge pull request #17 from jmagnusson/black-isort-pre-commit
jacobsvante May 2, 2020
379de5b
Fix `netsuite` not being importable unless `httpx` is installed
jacobsvante May 26, 2020
f5489c6
Fix bug in routine where request body is deleted.
mmangione Apr 9, 2021
b144612
Merge pull request #26 from mmangione/patch-1
jacobsvante Apr 25, 2021
a8e537f
Add back `json.dumps_str` and always set `force_include_body` to True
jacobsvante Apr 25, 2021
ae04e19
Bump to 0.6.0 and move to Github Actions + Poetry
jacobsvante Apr 25, 2021
101bbaa
Lint fixes
jacobsvante Apr 25, 2021
97e0e33
mypy fixes
jacobsvante Apr 25, 2021
2299aae
0.6.1 - Fix reference error in `NetSuite.get`
jacobsvante Apr 25, 2021
d175c38
Rebuild GitHub pages
jacobsvante Apr 25, 2021
f608db9
0.6.2 - Don't require a running asyncio loop to instantiate the REST …
jacobsvante Apr 25, 2021
d40a31f
Set black as vscode formatting provider
jacobsvante Apr 26, 2021
ec6623c
0.6.3 - custom headers to REST API and improve suiteql REST API method
jacobsvante Apr 26, 2021
292a61b
Mark as Beta version and add disclaimer about breaking APIs
jacobsvante Apr 26, 2021
e6815cc
Update CHANGELOG.md
jacobsvante Apr 26, 2021
b35f961
v0.7.0 - This release breaks a lot of things. Please read carefully.
jacobsvante Apr 27, 2021
f16f435
zeep wasn't marked as optional in pyproject.toml
jacobsvante Apr 27, 2021
96b902b
CI/CD fixes
jacobsvante Apr 27, 2021
9f943d6
Fix requests not being available
jacobsvante Apr 27, 2021
4f94345
httpx ~0.18
jacobsvante Apr 27, 2021
af780cf
Fix failing tests and add basic REST API and Restlet tests
jacobsvante Apr 27, 2021
c80515c
Ignore pushed version tags from triggering CI
jacobsvante Apr 27, 2021
86b4bd4
Changelog updates
jacobsvante Apr 27, 2021
f4e9f52
Hopefully fixes CI not running
jacobsvante Apr 27, 2021
49e0642
v0.8.0 - Default signing method is now HMAC-SHA256 for REST API and R…
jacobsvante Apr 28, 2021
b6db6e5
jmagnusson renamed to jacobsvante
fabriceb Nov 16, 2021
d6f4170
Merge pull request #33 from fabriceb/main
jacobsvante Nov 16, 2021
544cb59
chore: Upgrade black - issue with typed-ast and py3.9
jacobsvante Nov 17, 2021
0424975
chore: Don't include poetry.lock in repo
jacobsvante Nov 17, 2021
ea360bd
Bump lxml from 4.6.4 to 4.6.5
dependabot[bot] Dec 13, 2021
a2323a5
Merge pull request #38 from jacobsvante/dependabot/pip/lxml-4.6.5
jacobsvante Dec 14, 2021
b05c059
chore: Ignore .DS_Store
jacobsvante Jun 2, 2022
1b1d271
chore: Remove poetry.lock
jacobsvante Jun 2, 2022
1b2d4d6
ci: Update pre-commit config
jacobsvante Jun 2, 2022
352bdd6
docs: Add example project for soap requests
jacobsvante Jun 2, 2022
b9982bf
fix: Don't require existing config to check version
jacobsvante Jun 2, 2022
1956b4d
fix: Update dependencies
jacobsvante Jun 2, 2022
c0074a0
fix: Regression in `openapi serve` CLI command
jacobsvante Jun 2, 2022
28e2b8e
fix: Async connections sessions were being closed
jacobsvante Jun 2, 2022
20987ce
chore: Release 0.9.0
jacobsvante Jun 2, 2022
35a89bb
ci: Introduce release-please and prepare for first auto-release
jacobsvante Jun 2, 2022
7bbd0f8
New minor version
jacobsvante Jun 2, 2022
9180897
ci: Fix yaml miss
jacobsvante Jun 2, 2022
9d7bdb3
chore(main): release 0.9.0
github-actions[bot] Jun 2, 2022
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: 3 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[flake8]
max-line-length = 88
extend-ignore = E203,E501
34 changes: 34 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: cd
on:
push:
branches: [main]

jobs:
release-please:
runs-on: ubuntu-latest
outputs:
release_created: ${{ steps.release.outputs.release_created }}
steps:
- uses: google-github-actions/release-please-action@v3
id: release
with:
release-type: python
package-name: netsuite
bump-minor-pre-major: true
cd:
runs-on: ubuntu-latest
needs: [release-please]
if: needs.release-please.outputs.release_created
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
with:
python-version: '3.10'
architecture: x64
- uses: abatilo/actions-poetry@v2.1.4
with:
poetry-version: '1.1.13'
- run: poetry build
- run: poetry publish
env:
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_API_TOKEN }}
50 changes: 50 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: ci

on:
push:
branches: [main]
pull_request:

jobs:
unittests:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: ['3.10', '3.9', '3.8', '3.7']
extras: ['', all, soap_api, orjson, cli]
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
with:
python-version: '${{ matrix.python-version }}'
architecture: x64
- uses: abatilo/actions-poetry@v2.1.4
with:
poetry-version: '1.1.13'
- run: poetry install --extras ${{ matrix.extras }}
if: matrix.extras != ''
- run: poetry install
if: matrix.extras == ''
- run: poetry run pytest -v

style:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.10']
extras: [all]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
with:
python-version: '${{ matrix.python-version }}'
architecture: x64
- uses: abatilo/actions-poetry@v2.1.4
with:
poetry-version: '1.1.13'
- run: poetry install --extras ${{ matrix.extras }}
- run: poetry run flake8
- run: poetry run mypy --ignore-missing-imports .
- run: poetry run isort --check --diff .
- run: poetry run black --check --diff .
24 changes: 24 additions & 0 deletions .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: codecov

on:
push:
branches: [main]
pull_request:

jobs:
code_coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
with:
python-version: '3.10'
architecture: x64
- uses: abatilo/actions-poetry@v2.1.4
with:
poetry-version: '1.1.13'
- run: poetry install --extras all
- run: poetry run pytest --cov=netsuite --cov-report=xml --cov-report=term
- uses: codecov/codecov-action@v3
with:
files: ./coverage.xml
23 changes: 23 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: docs
on:
push:
branches: [main]

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
with:
python-version: '3.9'
architecture: x64
- uses: abatilo/actions-poetry@v2.1.4
with:
poetry-version: '1.1.13'
- run: poetry install --extras all
- run: poetry run mkdocs build
- uses: peaceiris/actions-gh-pages@v3.7.3
with:
github_token: "${{ secrets.GITHUB_TOKEN }}"
publish_dir: ./site
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,5 @@
/Pipfile.lock
/.mypy*
/.pytest_cache
/poetry.lock
.DS_Store
22 changes: 22 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
exclude: '{{project_slug}}'

default_language_version:
python: python3

repos:
- repo: https://gitlab.com/pycqa/flake8
rev: 4.0.1
hooks:
- id: flake8
- repo: https://github.com/pycqa/isort
rev: 5.10.1
hooks:
- id: isort
- repo: https://github.com/psf/black
rev: 22.3.0
hooks:
- id: black
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.960
hooks:
- id: mypy
23 changes: 0 additions & 23 deletions .travis.yml

This file was deleted.

6 changes: 6 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"python.formatting.provider": "black",
"files.exclude": {
"poetry.lock": true
}
}
Loading