Skip to content
Merged
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
16 changes: 5 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,7 @@ jobs:
- name: Install package from Test PyPi
run: |
python -m pip install --upgrade pip
pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple leaflux
- name: Install test dependencies
run: |
pip install -r test_requirements.txt
pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple "leaflux[test]"
- name: Run pytest
env:
TEST_ENV: test_pypi
Expand All @@ -75,13 +72,13 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
pip install build twine
- name: Build and publish
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
run: |
python setup.py sdist bdist_wheel
python -m build
twine upload dist/*

test-on-pypi:
Expand All @@ -101,12 +98,9 @@ jobs:
- name: Install package from PyPi
run: |
python -m pip install --upgrade pip
pip install leaflux
- name: Install test dependencies
run: |
pip install -r test_requirements.txt
pip install "leaflux[test]"
- name: Run pytest
env:
TEST_ENV: pypi
run: |
pytest
pytest
41 changes: 41 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
[build-system]
requires = ["setuptools>=77.0"]
build-backend = "setuptools.build_meta"

[project]
name = "leaflux"
version = "0.5.0"
description = "Core algorithms for the Leaflux project"
readme = "README.md"
license = "MIT"
license-files = ["LICENSE"]
requires-python = ">=3.9"
dependencies = [
"numpy",
"pvlib",
"scipy",
"sparse",
"numba",
"pyvista",
]
classifiers = [
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering",
]

[project.urls]
Homepage = "https://github.com/silvxlabs/leaflux-core"

[project.optional-dependencies]
test = ["pytest"]

[tool.setuptools.packages.find]
where = ["."]
exclude = ["docs", "test", "data"]
7 changes: 0 additions & 7 deletions requirements.txt

This file was deleted.

53 changes: 0 additions & 53 deletions setup.py

This file was deleted.

8 changes: 0 additions & 8 deletions test_requirements.txt

This file was deleted.

Loading