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

Matrix test across Python versions for unit tests #325

Merged
merged 5 commits into from
Apr 28, 2022
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
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
12 changes: 9 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,20 @@ workflows:
version: 2
test:
jobs:
- unit-test
- unit-test:
matrix:
parameters:
python-version: ["3.8", "3.9", "3.10"]
- integration-test
- docset

jobs:
unit-test:
parameters:
python-version:
type: string
docker:
- image: python:3.7.9
- image: python:<< parameters.python-version >>
steps:
- checkout
- run: pip install -r requirements.txt
Expand All @@ -26,7 +32,7 @@ jobs:
docset:
docker:
# NOTE: We might eventually need Docker authentication here.
- image: cimg/python:3.9
- image: cimg/python:3.8
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.8"
# 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.8

# Copy SDK code into the container
RUN mkdir -p $HOME/py-algorand-sdk
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.8",
package_data={"": ["data/langspec.json"]},
include_package_data=True,
)