Skip to content

Commit

Permalink
Merge pull request #97 from PagerDuty/v5.0.0-expanded-endpoint-support
Browse files Browse the repository at this point in the history
V5.0.0: Expanded endpoint support and debug mode
  • Loading branch information
Deconstrained authored May 1, 2023
2 parents d395936 + 17649f3 commit 38cf8b0
Show file tree
Hide file tree
Showing 32 changed files with 5,629 additions and 3,854 deletions.
23 changes: 11 additions & 12 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ test: &test
jobs:

py3_5:
py3_6:
docker:
- image: circleci/python:3.5-buster
- image: circleci/python:3.6-buster
steps:
- checkout
- run:
Expand All @@ -45,9 +45,9 @@ jobs:
- run:
<<: *test

py3_6:
py3_7:
docker:
- image: circleci/python:3.6-buster
- image: circleci/python:3.7-buster
steps:
- checkout
- run:
Expand All @@ -61,9 +61,9 @@ jobs:
- run:
<<: *test

py3_7:
py3_8:
docker:
- image: circleci/python:3.7-buster
- image: circleci/python:3.8-buster
steps:
- checkout
- run:
Expand All @@ -77,9 +77,9 @@ jobs:
- run:
<<: *test

py3_8:
py3_9:
docker:
- image: circleci/python:3.8-buster
- image: circleci/python:3.9-buster
steps:
- checkout
- run:
Expand All @@ -93,9 +93,9 @@ jobs:
- run:
<<: *test

py3_9:
py3_10:
docker:
- image: circleci/python:3.9-buster
- image: circleci/python:3.10-buster
steps:
- checkout
- run:
Expand All @@ -109,14 +109,13 @@ jobs:
- run:
<<: *test


workflows:
version: 2.1
run_tests:
jobs:
- py3_5
- py3_6
- py3_7
- py3_8
- py3_9
- py3_10

2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
*.pyc
docs/build/*
docs/_sources/
sphinx/build
dist/
pdpyras.egg-info/
docs/.buildinfo
tmp/
.DS_Store
.tool-versions
*.swp
25 changes: 23 additions & 2 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,28 @@
**2022-10-13: Version 4.5.1**
**2023-05-01: Version 5.0.0:**

* **New features:**
* Methods that assume entity wrapping like ``rget`` and ``iter_all`` now support all API endpoints
* Property ``PDSession.print_debug`` enables printing verbose log messages to ``sys.stderr``
* **Breaking Changes:**
* Removal of the deprecated method ``PDSession.set_api_key``
* End support for `Python v3.5 <https://www.python.org/downloads/release/python-350/>`_, which has reached end-of-life.
* **Deprecations:** the following will be removed in the next minor release, and use of them in v5.0.0 will trigger warnings:
* Keyword argument ``name`` of the session constructor: this previously set the name of the logger; now it has no effect.
* Keyword argument ``paginate`` of ``APISession.iter_all``: this previously could be set to ``False`` to make ``iter_all`` stop iteration after the first page of results; now it has no effect.
* Keyword argument ``attribute`` of ``APISession.iter_all``: this previously could be used to specify the entity wrapper name of results. The wrapper is now determined automatically and this argument has no effect.
* Function ``tokenize_url_path``
* Function (decorator) ``resource_envelope``
* Function ``object_type``
* Function ``raise_on_error``
* Function ``resource_name``
* Property ``APISession.raise_if_http_error``: this previously allowed partial results to be returned from ``iter_all`` in the case of HTTP errors; now it has no effect.
* Function ``APISession.profiler_key``

**2022-10-13: Version 4.5.2**

* The default value for request timeouts is now 60s.
* Method ``api_key_access`` is now implemented as :attr:`APISession.api_key_access`; formerly it was implemented in the parent class and inherited in classes that did not need it and could not use it.
* Bug in version 4.5.1 (removed) in package distribution/build fixed

**2022-02-22: Version 4.5.0**

Expand Down Expand Up @@ -40,7 +61,7 @@

* Use documented method for including the routing key in the request for API V2 (addresses `#53 <https://github.com/PagerDuty/pdpyras/issues/53>`_)
* Add warning for Python 2.7
* Configurable timeout: argument to `requests.Session.request`_ set in default args to backwards-compatible 5 second value that can be set at the module level (@ctrlaltdel / `#48 <https://github.com/PagerDuty/pdpyras/pull/48>`)
* Configurable timeout: argument to ``requests.Session.request`` set in default args to backwards-compatible 5 second value that can be set at the module level (@ctrlaltdel / `#48 <https://github.com/PagerDuty/pdpyras/pull/48>`)

**2020-09-15: Version 4.1.2**

Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2018 PagerDuty
Copyright (c) 2023 PagerDuty

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
dist: pdpyras.py setup.py
rm -f dist/* && python setup.py sdist

docs/index.html: pdpyras.py README.rst CHANGELOG.rst sphinx/source/index.rst
docs/index.html: pdpyras.py README.rst CHANGELOG.rst sphinx/source/conf.py sphinx/source/*.rst
rm -fr ./docs && cd sphinx && make html && cd .. && mv sphinx/build/html ./docs && touch ./docs/.nojekyll

docs: docs/index.html
Expand Down
Loading

0 comments on commit 38cf8b0

Please sign in to comment.