Skip to content

Commit

Permalink
Merge pull request #125 from punch-mission/bump-python-version
Browse files Browse the repository at this point in the history
bump python version to 3.10
  • Loading branch information
jmbhughes authored Jun 3, 2024
2 parents 0066d4c + 033e6cd commit 2c825f0
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 29 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python

name: CI

on:
Expand All @@ -17,7 +20,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.10"]
python-version: ["3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v3
Expand All @@ -28,14 +31,10 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install flake8 pytest pytest-cov hypothesis
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Lint with flake8
pip install ".[test]"
- name: Lint with ruff
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
ruff check .
- name: Test with pytest
run: |
pip install .
Expand Down
7 changes: 4 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "solpolpy"
version = "0.1.2"
version = "0.1.3"
authors = [
{ name="J. Marcus Hughes", email="[email protected]"},
{ name="Matthew J. West", email="[email protected]"},
Expand All @@ -11,7 +11,7 @@ authors = [
description = "Solar polarization resolver for any instrument"
readme = "README.md"
license = { file="LICENSE" }
requires-python = ">=3.8"
requires-python = ">=3.10"
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
Expand All @@ -30,7 +30,8 @@ dependencies = [
test = [
'pytest',
'coverage',
'pytest-cov'
'pytest-cov',
'ruff'
]

[build-system]
Expand Down
6 changes: 0 additions & 6 deletions requirements.txt

This file was deleted.

12 changes: 0 additions & 12 deletions requirements_dev.txt

This file was deleted.

0 comments on commit 2c825f0

Please sign in to comment.