Skip to content

Commit

Permalink
Cleanup build files
Browse files Browse the repository at this point in the history
  • Loading branch information
rjfarmer committed Jul 10, 2024
1 parent fd055a2 commit a91f288
Show file tree
Hide file tree
Showing 6 changed files with 64 additions and 60 deletions.
30 changes: 18 additions & 12 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,23 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
python-version: ['3.7', '3.8', '3.9', '3.10','3.11']
python-version: ['3.7', '3.8', '3.9', '3.10','3.11','3.12']

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 tox tox-gh-actions
- name: Test with tox
run: tox
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install build wheel pytest
- name: Build
run: python -m pip install .

- name: Test
run: python -m pytest -v
45 changes: 42 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,50 @@
[build-system]
requires = ["setuptools>=45", "wheel", "setuptools_scm>=6.2"]

build-backend = "setuptools.build_meta"
requires = ["setuptools>=64", "wheel", "setuptools_scm[toml]>=7.1.0"]
# Python 3.7 doesnt go above 7.1.0

[tool.pytest.ini_options]
testpaths = [
"tests",
]
addopts = "-s"

[tool.setuptools_scm]


[project]
name = "mesaPlot"
authors = [
{name="Robert Farmer", email="[email protected]"}
]
description = "Library for reading and plotting MESA data"
readme = "README.md"
requires-python = ">=3.7"
license = {text = "GPLv2+"}
classifiers = [
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering :: Astronomy",
"Intended Audience :: Science/Research",
]


dependencies = [
"numpy",
"matplotlib",
"scipy",
"pandas",
"importlib_metadata" # Needed for python <3.8
]

dynamic = ["version"]


[project.optional-dependencies]
test = ['pytest', 'tox']
dev = ['pre-commit','black']
5 changes: 0 additions & 5 deletions requirements.txt

This file was deleted.

35 changes: 0 additions & 35 deletions setup.cfg

This file was deleted.

3 changes: 1 addition & 2 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from setuptools import setup

if __name__ == "__main__":
setup()
setup()

6 changes: 3 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
[tox]
minversion = 3.8.0
envlist = py3{7,8,9,10,11}
minversion = 3.12.0
envlist = py3{7,8,9,10,11,12}
isolated_build = true

[testenv]
setenv =
PYTHONPATH = {toxinidir}
commands =
pytest --basetemp={envtmpdir}
whitelist_externals = pytest
allowlist_externals = pytest

0 comments on commit a91f288

Please sign in to comment.