Skip to content

Commit 412ae53

Browse files
authored
Merge pull request #12 from adamingas/cosine/convert-setup-cfg-to-project-toml-owjxuv
Migrate package configuration from setup.cfg to pyproject.toml
2 parents acc72e7 + f6751eb commit 412ae53

File tree

4 files changed

+45
-45
lines changed

4 files changed

+45
-45
lines changed

.github/workflows/python-app.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,4 @@ jobs:
3737
- uses: chartboost/ruff-action@v1
3838
- name: Test with pytest
3939
run: |
40-
pytest
40+
pytest

pyproject.toml

Lines changed: 44 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,49 @@ unfixable = []
99

1010
# restrict Line length to 99
1111
line-length = 88
12+
13+
# Exclude Jupyter notebooks from linting
14+
exclude = ["*.ipynb"]
15+
1216
[build-system]
1317
requires = ["setuptools >= 61"]
14-
build-backend = "setuptools.build_meta"
18+
build-backend = "setuptools.build_meta"
19+
20+
[project]
21+
name = "ordinalgbt"
22+
version = "0.1.2"
23+
description = "A library to build Gradient boosted trees for ordinal labels"
24+
readme = {file = "README.md", content-type = "text/markdown"}
25+
authors = [
26+
{name = "Adamos Spanashis", email = "[email protected]"}
27+
]
28+
requires-python = ">=3.8"
29+
classifiers = [
30+
"Programming Language :: Python :: 3",
31+
]
32+
dependencies = [
33+
"lightgbm<4",
34+
"numpy",
35+
"scipy",
36+
"scikit-learn",
37+
]
38+
39+
[project.urls]
40+
Homepage = "https://github.com/adamingas/ordinalgbt"
41+
42+
[project.optional-dependencies]
43+
tests = [
44+
"pytest",
45+
"pytest-cov",
46+
]
47+
dev = [
48+
"scikit-learn",
49+
"lightgbm<4.0.0",
50+
"pytest",
51+
"pytest-cov",
52+
"shap",
53+
"myst_nb",
54+
"sphinx>7.2",
55+
"sphinx-autoapi",
56+
"sphinx-rtd-theme",
57+
]

setup.cfg

Lines changed: 0 additions & 39 deletions
This file was deleted.

setup.py

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)