Skip to content

Commit

Permalink
Merge pull request #32 from boutproject/modernise-packaging
Browse files Browse the repository at this point in the history
Modernise packaging
  • Loading branch information
bendudson authored Nov 20, 2024
2 parents 15d692f + 33ad6c6 commit 39709d1
Show file tree
Hide file tree
Showing 9 changed files with 553 additions and 616 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/black-fix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}

- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: '3.x'

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/python_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install dependencies
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/test-python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,19 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11']
python-version: ["3.10", "3.11", "3.12"]

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: |
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
python -m pip install .[tests]
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
Expand Down
48 changes: 45 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,54 @@
[build-system]
requires = [
"setuptools >= 42",
"setuptools >= 61.0.0",
"setuptools_scm[toml] >= 6.2",
"setuptools_scm_git_archive",
"wheel >= 0.29.0",
]
build-backend = "setuptools.build_meta"

[project]
name = "zoidberg"
readme = "README.md"
authors = [{name = "Peter Hill", email = "peter.hill@york.ac.uk"}, {name = "BOUT++ team"}]
description = "Generate flux-coordinate independent (FCI) grids for BOUT++"
license = {text = "GNU Lesser General Public License v3 or later (LGPLv3+)"}
classifiers = [
"Programming Language :: Python",
"Development Status :: 4 - Beta",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)",
"Natural Language :: English",
"Topic :: Scientific/Engineering :: Visualization",
]
keywords = [
"bout++",
"bout",
"plasma",
"physics",
]
requires-python = ">=3.10"
dependencies = [
"boututils ~= 0.1.10",
"numpy ~= 1.24",
"sympy ~= 1.7",
"scipy ~= 1.10",
"matplotlib ~= 3.7",
"netCDF4 ~= 1.7",
"freeqdsk >= 0.4.0",
]
dynamic = ["version"]

[project.urls]
Documentation = "https://bout-dev.readthedocs.io/en/latest"
Repository = "https://github.com/boutproject/zoidberg"
Tracker = "https://github.com/boutproject/zoidberg/issues"

[project.optional-dependencies]
tests = ["pytest >= 3.3.0"]

[project.scripts]
zoidberg-rotating-ellipse = "zoidberg.examples.rotating_ellipse:main"
zoidberg-screwpinch = "zoidberg.examples.screwpinch:main"

[tool.setuptools_scm]
write_to = "zoidberg/_version.py"
git_describe_command = "git describe --dirty --tags --first-parent"
48 changes: 0 additions & 48 deletions setup.cfg

This file was deleted.

3 changes: 0 additions & 3 deletions setup.py

This file was deleted.

Loading

0 comments on commit 39709d1

Please sign in to comment.