Skip to content

Commit 006b3a0

Browse files
Bump up minimum Python version to 3.10 (#313)
* Initial changes to bump up Python version to 3.10 * Update README and try build with sphinx=4.2 for python3.10 support * Unpin version from dockerfile * Update readthedocs config file * Update docs/requirements.txt Co-authored-by: Michael Diamant <[email protected]> Co-authored-by: Michael Diamant <[email protected]>
1 parent 5e67f64 commit 006b3a0

File tree

8 files changed

+38
-17
lines changed

8 files changed

+38
-17
lines changed

.circleci/config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ workflows:
1111
jobs:
1212
unit-test:
1313
docker:
14-
- image: python:3.7.9
14+
- image: python:3.10
1515
steps:
1616
- checkout
1717
- run: pip install -r requirements.txt
@@ -26,7 +26,7 @@ jobs:
2626
docset:
2727
docker:
2828
# NOTE: We might eventually need Docker authentication here.
29-
- image: cimg/python:3.9
29+
- image: cimg/python:3.10
3030
steps:
3131
- checkout
3232
- run:

.readthedocs.yaml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# .readthedocs.yaml
2+
# Read the Docs configuration file
3+
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
4+
5+
# Required
6+
version: 2
7+
8+
# Set the version of Python and other tools you might need
9+
build:
10+
os: ubuntu-20.04
11+
tools:
12+
python: "3.10"
13+
# You can also specify other tool versions:
14+
# nodejs: "16"
15+
# rust: "1.55"
16+
# golang: "1.17"
17+
18+
# Build documentation in the docs/ directory with Sphinx
19+
sphinx:
20+
configuration: docs/conf.py
21+
22+
# If using Sphinx, optionally build your docs in additional formats such as PDF
23+
# formats:
24+
# - pdf
25+
26+
# Optionally declare the Python requirements required to build your docs
27+
python:
28+
install:
29+
- requirements: docs/requirements.txt

.travis.yml

Lines changed: 0 additions & 10 deletions
This file was deleted.

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM python:3.7.9
1+
FROM python:3.10
22

33
# Copy SDK code into the container
44
RUN mkdir -p $HOME/py-algorand-sdk

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ Run `$ pip3 install py-algorand-sdk` to install the package.
1313

1414
Alternatively, choose a [distribution file](https://pypi.org/project/py-algorand-sdk/#files), and run `$ pip3 install [file name]`.
1515

16+
The py-algorand-sdk requires Python `3.10` to be installed. Please upgrade your Python version or consider using tools to manage multiple Python versions like [pyenv](https://github.com/pyenv/pyenv).
17+
1618
## SDK Development
1719

1820
Install dependencies

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
# -- Project information -----------------------------------------------------
2020

2121
project = "algosdk"
22-
copyright = "2020 Algorand"
22+
copyright = "2022 Algorand"
2323
author = "Algorand"
2424

2525

docs/requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
sphinx==4.0.1
2-
sphinx-rtd-theme
1+
sphinx==4.2.0
2+
sphinx-rtd-theme==1.0.0
33
m2r2

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"msgpack>=1.0.0,<2",
2323
],
2424
packages=setuptools.find_packages(),
25-
python_requires=">=3.5",
25+
python_requires=">=3.10",
2626
package_data={"": ["data/langspec.json"]},
2727
include_package_data=True,
2828
)

0 commit comments

Comments
 (0)