Skip to content

Commit

Permalink
migrate to pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
Migelo committed Aug 7, 2024
1 parent 6038353 commit c245eed
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 26 deletions.
18 changes: 14 additions & 4 deletions .github/workflows/test_and_upload_artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,24 @@ jobs:
with:
python-version: '3.12'

- name: Install dependencies
- name: Upgrade pip
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Install nbconvert
run: |
pip install nbconvert
- name: Convert Notebooks to Python Scripts
run: |
mkdir -p scripts
for notebook in examples/*.ipynb; do
jupyter nbconvert --to script "$notebook" --output "scripts/$(basename "${notebook%.ipynb}.py")"
done
- name: Build package
run: |
python setup.py install # Replace with the appropriate build command for your project
pip install .
- name: Run tests
run: |
Expand All @@ -39,7 +49,7 @@ jobs:
- name: Upload test/figs as artifacts
if: success()
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: test-figures
path: test/figs/* # Adjust the path to your needs
28 changes: 28 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
[build-system]
requires = ["setuptools>=42", "wheel"]
build-backend = "setuptools.build_meta"

[project]
name = "colorstamps"
version = "0.1.2"
description = "2D colormaps for every occasion"
readme = "README.md"
requires-python = ">=3.6"
license = {text = "MIT"}
authors = [
{name = "Trygve Ræder", email = "[email protected]"}
]
classifiers = [
"Intended Audience :: Science/Research",
"Programming Language :: Python :: 3"
]

dependencies = [
"colorspacious",
"numpy",
"matplotlib",
"scipy"
]

[project.urls]
homepage = "https://github.com/trygvrad/colorstamps"
22 changes: 0 additions & 22 deletions setup.py

This file was deleted.

0 comments on commit c245eed

Please sign in to comment.