Skip to content
Open
Show file tree
Hide file tree
Changes from all 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
27 changes: 13 additions & 14 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,32 +1,31 @@
# 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
# Run tests and lint across supported Python versions
# https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions

name: test

on: [ push, pull_request]
on: [push, pull_request]

jobs:
build:

test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.x']
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
sudo apt install -y libgirepository1.0-dev
python -m pip install --upgrade pip
python -m pip install flake8 pytest
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
python -m pip install flake8 coverage
python -m pip install -e .

- name: Lint with flake8
run: |
Expand All @@ -37,6 +36,6 @@ jobs:

- name: Run tests
run: |
if [ -f requirements-test.txt ]; then pip install -r requirements-test.txt; fi
python -m unittest discover -s tests
coverage run run_tests.py && coverage report -m
python -m unittest discover -s tests -v
coverage run -m unittest discover -s tests
coverage report -m
22 changes: 17 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
from distutils.core import setup
from setuptools import setup
import sys

import fitparse


requires = None
if sys.version_info < (3, 6):
sys.exit("Python 3.6+ is required.")
if sys.version_info < (3, 9):
sys.exit("Python 3.9+ is required.")


setup(
Expand All @@ -19,5 +18,18 @@
license=open('LICENSE').read(),
packages=['fitparse'],
scripts=['scripts/fitdump'], # Don't include generate_profile.py
install_requires=requires,
python_requires='>=3.9',
install_requires=[],
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Programming Language :: Python :: 3.13',
'Topic :: Scientific/Engineering',
],
)