Skip to content

Commit

Permalink
Merge pull request #256 from Crown-Commercial-Service/update-apiclien…
Browse files Browse the repository at this point in the history
…t-to-run-on-python-3.8

Change to using python 3.8
  • Loading branch information
tim-s-ccs authored Oct 18, 2021
2 parents 9b51e75 + 266978b commit af53775
Show file tree
Hide file tree
Showing 11 changed files with 23 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:

- uses: actions/setup-python@v2
with:
python-version: '3.6'
python-version: '3.8'

- name: Install dependencies
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:

- uses: actions/setup-python@v2
with:
python-version: '3.6'
python-version: '3.8'

- name: Get package version
id: package_version
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.6, 3.7, 3.8, 3.9]
python-version: [3.8, 3.9]

steps:
- uses: actions/checkout@v2
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
*.pyc
venv*
.cache
.idea/
1 change: 1 addition & 0 deletions .python-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.8.10
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

Records breaking changes from major version bumps

## 23.0.0
Update to use python 3.8 as python 3.6 is reaching end of life.

Dropping support for:
- python 3.6
- python 3.7

## 22.0.0

Mark this package as PEP 561 compatible. If you have dmapiclient as a dependency and run type checking, the type checker
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Digital Marketplace API client
=========================

![Python 3.6](https://img.shields.io/badge/python-3.6-blue.svg)
![Python 3.8](https://img.shields.io/badge/python-3.8-blue.svg)

## What's in here?

Expand Down
2 changes: 1 addition & 1 deletion dmapiclient/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = '22.2.0'
__version__ = '23.0.0'

from .errors import APIError, HTTPError, InvalidResponse # noqa
from .errors import REQUEST_ERROR_STATUS_CODE, REQUEST_ERROR_MESSAGE # noqa
Expand Down
2 changes: 1 addition & 1 deletion mypy.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[mypy]
python_version = 3.6
python_version = 3.8
files = dmapiclient
warn_return_any = True

Expand Down
14 changes: 7 additions & 7 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# This file is autogenerated by pip-compile
# This file is autogenerated by pip-compile with python 3.8
# To update, run:
#
# pip-compile requirements-dev.in
Expand Down Expand Up @@ -47,10 +47,10 @@ mock==4.0.2
# via -r requirements-dev.in
more-itertools==8.7.0
# via pytest
mypy-extensions==0.4.3
# via mypy
mypy==0.812
# via -r requirements-dev.in
mypy-extensions==0.4.3
# via mypy
packaging==20.9
# via pytest
pluggy==0.13.1
Expand All @@ -63,19 +63,19 @@ pyflakes==2.2.0
# via flake8
pyparsing==2.4.7
# via packaging
pytest-cov==2.7.1
# via -r requirements-dev.in
pytest==4.6.3
# via
# -r requirements-dev.in
# pytest-cov
requests-mock==1.7.0
pytest-cov==2.7.1
# via -r requirements-dev.in
requests==2.25.1
# via
# coveralls
# digitalmarketplace-apiclient
# requests-mock
# sanitized-package
requests-mock==1.7.0
# via -r requirements-dev.in
six==1.15.0
# via
# pytest
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@
install_requires=[
'requests<3,>=2.18.4',
],
python_requires="~=3.6",
python_requires="~=3.8",
)

0 comments on commit af53775

Please sign in to comment.