Skip to content

Commit

Permalink
Bump up minimum Python version to 3.10 (#313)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
algochoi and michaeldiamant authored Apr 19, 2022
1 parent 5e67f64 commit 006b3a0
Show file tree
Hide file tree
Showing 8 changed files with 38 additions and 17 deletions.
4 changes: 2 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ workflows:
jobs:
unit-test:
docker:
- image: python:3.7.9
- image: python:3.10
steps:
- checkout
- run: pip install -r requirements.txt
Expand All @@ -26,7 +26,7 @@ jobs:
docset:
docker:
# NOTE: We might eventually need Docker authentication here.
- image: cimg/python:3.9
- image: cimg/python:3.10
steps:
- checkout
- run:
Expand Down
29 changes: 29 additions & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# .readthedocs.yaml
# Read the Docs configuration file
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details

# Required
version: 2

# Set the version of Python and other tools you might need
build:
os: ubuntu-20.04
tools:
python: "3.10"
# You can also specify other tool versions:
# nodejs: "16"
# rust: "1.55"
# golang: "1.17"

# Build documentation in the docs/ directory with Sphinx
sphinx:
configuration: docs/conf.py

# If using Sphinx, optionally build your docs in additional formats such as PDF
# formats:
# - pdf

# Optionally declare the Python requirements required to build your docs
python:
install:
- requirements: docs/requirements.txt
10 changes: 0 additions & 10 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.7.9
FROM python:3.10

# Copy SDK code into the container
RUN mkdir -p $HOME/py-algorand-sdk
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ Run `$ pip3 install py-algorand-sdk` to install the package.

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

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).

## SDK Development

Install dependencies
Expand Down
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
# -- Project information -----------------------------------------------------

project = "algosdk"
copyright = "2020 Algorand"
copyright = "2022 Algorand"
author = "Algorand"


Expand Down
4 changes: 2 additions & 2 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
sphinx==4.0.1
sphinx-rtd-theme
sphinx==4.2.0
sphinx-rtd-theme==1.0.0
m2r2
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"msgpack>=1.0.0,<2",
],
packages=setuptools.find_packages(),
python_requires=">=3.5",
python_requires=">=3.10",
package_data={"": ["data/langspec.json"]},
include_package_data=True,
)

0 comments on commit 006b3a0

Please sign in to comment.