From bb87b20839fd4c9af735aa2ccca687fc828cbcb4 Mon Sep 17 00:00:00 2001 From: Jonathan Beaulieu <123.jonathan@gmail.com> Date: Thu, 31 May 2018 06:43:31 -0500 Subject: [PATCH 1/8] Updated gitignore --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 37913e4..8cc8b88 100644 --- a/.gitignore +++ b/.gitignore @@ -17,3 +17,4 @@ .eggs/* docs/build/* +.pytest_cache/* From c7e0300ca8fae3805bf9870efbc1780f9ec7a5a3 Mon Sep 17 00:00:00 2001 From: Jonathan Beaulieu <123.jonathan@gmail.com> Date: Thu, 31 May 2018 06:46:40 -0500 Subject: [PATCH 2/8] CI Fix --- setup.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/setup.py b/setup.py index 05706ca..5739128 100644 --- a/setup.py +++ b/setup.py @@ -19,10 +19,9 @@ license='MIT', packages=['littlepython'], zip_safe=False, - test_suite='nose.collector', install_requires=['enum34;python_version<"3.4"'], - setup_requires=[], - tests_require=['pytest', 'pytest-runner', 'pytest-timeout'], + setup_requires=['pytest-runner'], + tests_require=['pytest', 'pytest-timeout'], scripts=['bin/littlepy'], classifiers=[ # complete classifier list: http://pypi.python.org/pypi?%3Aaction=list_classifiers From 3f89c74cffb6532c12c5b40843bd8ff8605638ba Mon Sep 17 00:00:00 2001 From: Jonathan Beaulieu <123.jonathan@gmail.com> Date: Tue, 12 Mar 2019 15:45:24 -0400 Subject: [PATCH 3/8] Update .travis.yml --- .travis.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.travis.yml b/.travis.yml index ae487a7..214f8cd 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,9 +1,12 @@ language: python +dist: xenial python: - "2.7" - "3.5" - "3.6" + - "3.7" + - "3.8-dev" install: - pip install -e . From e36b45fd3f92238c02c73c025ed0f424d599123d Mon Sep 17 00:00:00 2001 From: Jonathan Beaulieu <123.jonathan@gmail.com> Date: Mon, 2 Nov 2020 22:51:53 -0500 Subject: [PATCH 4/8] Create python-package.yml --- .github/workflows/python-package.yml | 34 ++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/python-package.yml diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml new file mode 100644 index 0000000..1d817a8 --- /dev/null +++ b/.github/workflows/python-package.yml @@ -0,0 +1,34 @@ +# This workflow will install Python dependencies, run tests and lint with a variety of Python versions +# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions + +name: Python package + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + + runs-on: ubuntu-latest + strategy: + matrix: + python-version: [3.5, 3.6, 3.7, 3.8, 3.9] + + steps: + - uses: actions/checkout@v2 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -e . + pip install pytest pytest-cov codecov + - name: Test with pytest + run: | + python setup.py test + py.test --cov=./ From b91c85e6253756d5e5e3cbde1bbc12196c78e732 Mon Sep 17 00:00:00 2001 From: Chandler Swift Date: Thu, 5 Nov 2020 17:41:59 -0600 Subject: [PATCH 5/8] Update versions in .travis.yml Python 3.5 is out of support, and Ubuntu Xenial will be out of support in less than 6 months. --- .travis.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index 214f8cd..47dabbd 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,12 +1,11 @@ language: python -dist: xenial +dist: focal python: - - "2.7" - - "3.5" - "3.6" - "3.7" - - "3.8-dev" + - "3.8" + - "3.9" install: - pip install -e . From 30b795fc2fe2945609960627aaac1e2820e272ed Mon Sep 17 00:00:00 2001 From: Chandler Swift Date: Thu, 5 Nov 2020 17:48:13 -0600 Subject: [PATCH 6/8] Remove Python 3.5 from Github Action test targets --- .github/workflows/python-package.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index 1d817a8..eceec63 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -15,7 +15,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: [3.5, 3.6, 3.7, 3.8, 3.9] + python-version: [3.6, 3.7, 3.8, 3.9] steps: - uses: actions/checkout@v2 From a4cf29ce44de967fbb88fb746997488e8940d908 Mon Sep 17 00:00:00 2001 From: Chandler Swift Date: Thu, 5 Nov 2020 11:24:34 -0600 Subject: [PATCH 7/8] Add type name for additional debug info --- littlepython/interpreter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/littlepython/interpreter.py b/littlepython/interpreter.py index e84acf5..b95ad08 100644 --- a/littlepython/interpreter.py +++ b/littlepython/interpreter.py @@ -35,7 +35,7 @@ def convert_python_type_to_lp_type(var): for i, v in enumerate(var): new_list[i] = convert_python_type_to_lp_type(v) return new_list - raise TypeError("Little Python doesn't support this type as input.") + raise TypeError(f"Little Python doesn't support this type ({type(var)}) as input.") def convert_lp_type_to_python_type(var): From fcb4f5f92b333a6d070ae668d1836ebcff66bb76 Mon Sep 17 00:00:00 2001 From: Jon <123.jonathan@gmail.com> Date: Wed, 12 Oct 2022 21:51:24 -0700 Subject: [PATCH 8/8] Fix collections dep warning --- littlepython/feature.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/littlepython/feature.py b/littlepython/feature.py index 45d56a1..def8d2b 100644 --- a/littlepython/feature.py +++ b/littlepython/feature.py @@ -1,7 +1,7 @@ from __future__ import print_function from __future__ import unicode_literals -from collections import Iterable +from collections.abc import Iterable class Feature(object):