-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #61 from artefactory/poetry
ADD: Poetry dependancies management
- Loading branch information
Showing
5 changed files
with
97 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,3 @@ | ||
[build-system] | ||
requires = ["setuptools"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "choice-learn-private" | ||
authors = [ | ||
{ name = "VincentAuriau", email = "[email protected]" } | ||
] | ||
description = "choice-learn is a Python package designed to help you build with ease a discrete choice model." | ||
version = "0.0.1" | ||
readme = "README.md" | ||
requires-python = ">=3.8" | ||
|
||
[project.urls] | ||
"Homepage" = "https://github.com/artefactory/choice-learn-private" | ||
"Documentation" = "https://artefactory.github.io/choice-learn-private" | ||
|
||
[tool.setuptools] | ||
packages = ["choice_learn", "config", "tests"] | ||
|
||
[tool.ruff] | ||
select = [ | ||
"E", | ||
|
@@ -68,3 +47,80 @@ known-first-party = ["choice_learn", "config", "tests"] | |
|
||
[tool.bandit.assert_used] | ||
exclude_dirs = ["tests/"] | ||
|
||
[tool.poetry] | ||
name = "choice-learn" | ||
version = "0.1.0" | ||
description = "Choice-Learn is a Python package to help you specify, estimate and use discrete choice models with ease." | ||
authors = [ | ||
"artefactory <[email protected]>", | ||
"VincentAuriau <[email protected]>" | ||
] | ||
homepage = "https://github.com/artefactory/choice-learn-private" | ||
documentation = "https://artefactory.github.io/choice-learn-private" | ||
license = "MIT" | ||
readme = "README.md" | ||
keywords = ["discrete", "choice", "model", "machine", "learning", "assortment", "pricing", "retail", "supermarket"] | ||
packages = [{include = "choice_learn"}] | ||
|
||
[tool.poetry.dependencies] | ||
python = "^3.8" | ||
numpy = "^1.24.3" | ||
pandas = "^1.5.3" | ||
tensorflow = "^2.11.0" | ||
tensorflow-probability = "^0.20.1" | ||
tqdm = "^4.0.0" | ||
|
||
[tool.poetry.group.dev.dependencies] | ||
pytest = "^7.3.2" | ||
pre-commit = "^3.3" | ||
ipykernel = "^6.9" | ||
nbstripout = "^0.7" | ||
ruff = "^0.1.2" | ||
pytest-cov = "^4.1" | ||
codespell = "^2.2" | ||
python-markdown-math = "^0.8" | ||
|
||
[tool.poetry.group.docs.dependencies] | ||
mkdocs = "^1.5" | ||
mkdocs-material = {extras = ["pygments"], version = "^9.5.3"} | ||
mkdocs-nbconvert = "^0.2.1" | ||
mkdocstrings-python = "^1.7.5" | ||
python-markdown-math = "^0.8" | ||
bandit = "^1.7.5" | ||
nbstripout = "^0.6.1" | ||
|
||
[build-system] | ||
requires = ["poetry-core"] | ||
build-backend = "poetry.core.masonry.api" | ||
|
||
[tool.semantic_release] | ||
version_variables = ["choice_learn/__init__.py:__version__"] | ||
version_toml = ["pyproject.toml:tool.poetry.version"] | ||
branch = "main" | ||
upload_to_pypi = false | ||
upload_to_release = true | ||
build_command = "pip install poetry && poetry build" | ||
commit_message = "chore(release): {version}\n\n[skip ci]\nAutomatically generated by semantic-release" | ||
tag_format = "{version}" | ||
|
||
[tool.semantic_release.changelog] | ||
exclude_commit_patterns = ['''^chore\(release\).*'''] | ||
|
||
[tool.semantic_release.commit_parser_options] | ||
allowed_tags = [ | ||
"ADD", | ||
"BUILD", | ||
"CHORE", | ||
"CI", | ||
"DOC", | ||
"ENH", | ||
"FEAT", | ||
"FIX", | ||
"PERF", | ||
"STYLE", | ||
"REFAC", | ||
"TEST", | ||
] | ||
minor_tags = ["FEAT"] | ||
patch_tags = ["ADD", "BUILD", "ENH", "FIX", "PERF"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.