Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pyproject: fix setuptools and add pixi tool #1051

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
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
12 changes: 3 additions & 9 deletions .github/workflows/pythonpackage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,7 @@ jobs:
VIRES_TOKEN: ${{ secrets.VIRES_AUTH }}
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install spacepy # required for MMS qcotrans tests
pip install coveralls
pip install '.[test]'
pip install basemap
pip install 'mth5>=0.4.9'
python -m pyspedas.projects.mms.tests.setup_tests
Expand All @@ -42,9 +40,7 @@ jobs:
VIRES_TOKEN: ${{ secrets.VIRES_AUTH }}
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install spacepy # required for MMS qcotrans tests
pip install coveralls
pip install '.[test]'
pip install basemap
pip install 'mth5>=0.4.9'
python -m pyspedas.projects.mms.tests.setup_tests
Expand All @@ -56,9 +52,7 @@ jobs:
VIRES_TOKEN: ${{ secrets.VIRES_AUTH }}
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install spacepy # required for MMS qcotrans tests
pip install coveralls
pip install '.[test]'
pip install basemap
pip install 'mth5>=0.4.9'
python -m pyspedas.projects.mms.tests.setup_tests
Expand Down
15 changes: 3 additions & 12 deletions .github/workflows/quick_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,26 +24,17 @@ jobs:
- name: Install dependencies (Linux)
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install spacepy # required for MMS qcotrans tests
pip install coveralls
pip install 'mth5<=0.4.7'
pip install '.[test]'
if: matrix.os == 'ubuntu-latest'
- name: Install dependencies (Windows)
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install spacepy # required for MMS qcotrans tests
pip install coveralls
pip install 'mth5<=0.4.7'
pip install '.[test]'
if: matrix.os == 'windows-latest'
- name: Install dependencies (macOS)
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install spacepy # required for MMS qcotrans tests
pip install coveralls
pip install 'mth5<=0.4.7'
pip install '.[test]'
if: matrix.os == 'macos-latest'
- name: Lint with flake8
run: |
Expand Down
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,8 @@ venv/
ENV/
env.bak/
venv.bak/
.pixi
pixi.lock

# Spyder project settings
.spyderproject
Expand Down Expand Up @@ -238,4 +240,4 @@ dmypy.json
.vscode

# PyCharm
.idea
.idea
20 changes: 18 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,17 @@ Documentation = "https://pyspedas.readthedocs.io"
Issue_Tracker = "https://github.com/spedas/pyspedas/issues"
Source_Code = "https://github.com/spedas/pyspedas"

[project.optional-dependencies]
test = [
"spacepy", # required for MMS qcotrans tests
"coveralls",
"mth5<=0.4.7",
]
dev = [
"ruff",
"ipython",
]

[tool.setuptools]
packages = {find = {exclude = ["contrib", "docs", "tests*"]}}
include-package-data = true
Expand All @@ -111,5 +122,10 @@ include-package-data = true
"pyspedas.projects.mms.mec" = ["*.png"]
"pyspedas.projects.elfin.epd" = ["el*_epde_cal_data.txt"]

[tool.setuptools.include]
files = ["*.md", "LICENSE.txt"]
[tool.pixi.project]
channels = ["conda-forge"]
platforms = ["win-64", "linux-64", "osx-64", "osx-arm64"]

[tool.pixi.dependencies]
pytables = "*"
netcdf4 = "*"
Loading