Skip to content

Commit

Permalink
Solve optional dependencies & __version__ (#112)
Browse files Browse the repository at this point in the history
* fix according to issue #111

* Fix #110 #111
  • Loading branch information
Reinier Koops committed Aug 8, 2023
1 parent 439b7e0 commit ef5c1c7
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
18 changes: 12 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "skorecard"
version = "1.6.7"
dynamic = ["version"]
requires-python= ">=3.8"
description = "Tools for building scorecard models in python, with a sklearn-compatible API"
readme = { file = "README.md", content-type = "text/markdown" }
Expand Down Expand Up @@ -40,14 +40,15 @@ Repository = "https://github.com/ing-bank/skorecard.git"
Changelog = "https://github.com/ing-bank/skorecard/blob/main/CHANGELOG.md"

[project.optional-dependencies]
all = [
# Dashboard dependencies
dashboard = [
"dash>=1.21.0",
"jupyter-dash>=0.4.0",
"dash_bootstrap_components>=0.13",
# Reporting dependencies
]
reporting = [
"plotly>=4.14.3",
# Dev dependencies
]
dev = [
"black>=19.10b0",
"pre-commit>=2.5.0",
"pytest>=6.0.0",
Expand All @@ -61,18 +62,23 @@ all = [
"types-PyYAML>=6.0.12.10",
"types-six>=1.16.21.8",
"types-decorator>=5.1.8.3",
# Doc dependencies
]
docs = [
"mkdocs>=1.1.2",
"mkdocs-material>=7.1",
"mkdocstrings>=0.13.2",
"mknotebooks>=0.7.0",
"mkdocs-git-revision-date-localized-plugin>=0.7.2",
"mkdocstrings-python>=1.1.2",
]
all = ["skorecard[dashboard,reporting,dev,docs]"]

[tool.setuptools.packages.find]
exclude = ["tests", "notebooks", "docs"]

[tool.setuptools.dynamic]
version = {attr = "skorecard.__version__"}

[tool.nbqa.addopts]
# E402: Ignores imports not at the top of file for IPYNB since this makes copy-pasting easier.
ruff = ["--fix", "--ignore=E402"]
Expand Down
1 change: 1 addition & 0 deletions skorecard/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from .skorecard import Skorecard

__all__ = ["Skorecard"]
__version__ = "1.6.8"

0 comments on commit ef5c1c7

Please sign in to comment.