Skip to content

Commit

Permalink
Merge pull request #199 from MindSetLib/dev-poetry
Browse files Browse the repository at this point in the history
Transition to poetry packaging
  • Loading branch information
alexmindset authored May 15, 2024
2 parents cf752e3 + e222301 commit d6dd778
Show file tree
Hide file tree
Showing 10 changed files with 6,290 additions and 117 deletions.
7 changes: 4 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
rev: v4.5.0
hooks:
- id: check-added-large-files
args: ['--maxkb=800']
- id: check-yaml
- id: check-toml
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/psf/black
rev: 23.7.0
rev: 24.4.2
hooks:
- id: black-jupyter
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: 'v0.0.246'
rev: 'v0.4.4'
hooks:
- id: ruff
1 change: 0 additions & 1 deletion MANIFEST.in

This file was deleted.

9 changes: 0 additions & 9 deletions docs/requirements-docs.txt

This file was deleted.

6,171 changes: 6,171 additions & 0 deletions poetry.lock

Large diffs are not rendered by default.

121 changes: 115 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,115 @@
[build-system]
requires = [
"setuptools",
"setuptools_scm[toml]>=6.2",
"wheel"
[tool.poetry]
name = "insolver"
version = "0.4.26"
description = "Insolver is low-code machine learning library, initially created for the insurance industry."
authors = ["Mindset Team <request@mind-set.ru>"]
homepage = "http://insolver.io/"
repository = "https://github.com/MindSetLib/Insolver"
documentation = "https://insolver.readthedocs.io/"
keywords = ["insurance", "machine learning"]
license = "MIT"
readme = "README.md"
packages = [{include = "insolver"}]
classifiers = [
"Development Status :: 2 - Pre-Alpha",
"Intended Audience :: Financial and Insurance Industry",
"Intended Audience :: Information Technology",
"License :: OSI Approved :: MIT License",
"Operating System :: MacOS :: MacOS X",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11"
]
include = [
"insolver/report/*.html",
"insolver/report/*.css",
"insolver/report/*.js",
"insolver/report/*.css.map",
"insolver/report/*.js.map"
]

[tool.setuptools_scm]
[tool.poetry.urls]
"Bug Tracker" = "https://github.com/MindSetLib/Insolver/issues"
"Documentation" = "https://insolver.readthedocs.io/en/stable/"
"Source Code" = "https://github.com/MindSetLib/Insolver"


[tool.poetry.dependencies]
python = ">=3.8,<3.12"
numpy = ">=1.22.0"
pandas = ">=1.2.0"
scipy = ">=1.10.0"
scikit-learn = ">=1.3.2"
xgboost = ">=1.6.1"
lightgbm = ">=3.2.0"
catboost = ">=1.0.0"
hyperopt = ">=0.2.5"
matplotlib = ">=3.4.3"
plotly = ">=5.3.1"
seaborn = ">=0.12.2"
shap = ">=0.39.0"
h2o = ">=3.46.0.1"
statsmodels = ">=0.13.1"
lime = ">=0.2.0.1"
dill = ">=0.3.4"
numba = ">=0.58.0"
Jinja2 = ">=3.1.3"
ydata-profiling = ">=4.7.0"
Flask = ">=2.3.2"
fastapi = ">=0.109.1"
uvicorn = {extras = ["standard"], version = ">=0.27"}
pydantic = ">=2"
gunicorn = ">=20.0.4"
Django = ">=4.2.11"
djangorestframework = ">=3.13.1"
psycopg2-binary = ">=2.9.3"
sympy = "1.9"
dice-ml = {version = "*", optional = true}
alibi = { version = "*", optional = true}

[tool.poetry.group.dev]
optional = true

[tool.poetry.group.dev.dependencies]
black = {extras = ["jupyter"], version = ">=24.4.2"}
mypy = ">=0.971"
pre-commit = ">=2.19.0"
pytest = ">=6.2.5"
pytest-cov = ">=2.12.1"
ruff = ">=v0.4.4"
tox = ">=3.24.3"
locust = ">=2.9.0"

[tool.poetry.group.docs]
optional = true

[tool.poetry.group.docs.dependencies]
myst-parser = "*"
Sphinx = "*"
sphinx-rtd-theme = "*"
sphinxcontrib-applehelp = "*"
sphinxcontrib-devhelp = "*"
sphinxcontrib-htmlhelp = "*"
sphinxcontrib-jsmath = "*"
sphinxcontrib-qthelp = "*"
sphinxcontrib-serializinghtml = "*"

[tool.poetry.extras]
full = ["dice-ml", "alibi"]

[tool.poetry.scripts]
insolver_serving_cli = 'insolver.serving.run_service:run'

[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"


[tool.black]
line-length = 120
Expand All @@ -19,9 +123,11 @@ exclude = '''
| dist
| venv
| env
| .venv
)/
'''


[tool.pytest.ini_options]
minversion = "6.0"
addopts = "-ra -q"
Expand All @@ -32,6 +138,7 @@ filterwarnings = [
"ignore:the imp module is deprecated in favour of importlib;"
]


[tool.mypy]
python_version = "3.9"
disallow_untyped_defs = true
Expand All @@ -42,6 +149,7 @@ exclude = [
'env'
]


[tool.tox]
legacy_tox_ini = """
[tox]
Expand All @@ -62,6 +170,7 @@ commands =
pytest --junitxml=test_report.xml
"""


[tool.ruff]
exclude = [
".bzr",
Expand Down
8 changes: 0 additions & 8 deletions requirements-dev.txt

This file was deleted.

2 changes: 0 additions & 2 deletions requirements-extra.txt

This file was deleted.

32 changes: 0 additions & 32 deletions requirements.txt

This file was deleted.

30 changes: 0 additions & 30 deletions setup.cfg

This file was deleted.

26 changes: 0 additions & 26 deletions setup.py

This file was deleted.

0 comments on commit d6dd778

Please sign in to comment.