-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* build: init stab at removing poetry * build: fix typo in toml * build: fix typos in toml * build: remove poetry from build command * chore: prune pre-commit
- Loading branch information
1 parent
5cb2e16
commit eb536f7
Showing
5 changed files
with
59 additions
and
106 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
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,8 +1,13 @@ | ||
[tool.poetry] | ||
[project] | ||
name = "psycopmlutils" | ||
version = "0.3.1" | ||
description = "A collection of machine-learning utilities used across the psycop-projects." | ||
authors = ["Martin Bernstorff <[email protected]>"] | ||
authors = [{name = "Martin Bernstorff", email = "[email protected]"}, | ||
{name = "Lasse Hansen", email = "[email protected]"}, | ||
{name = "Kenneth Enevoldsen"}] | ||
|
||
requires-python = ">=3.8.0" | ||
|
||
classifiers = [ | ||
"Environment :: Console", | ||
"Intended Audience :: Developers", | ||
|
@@ -15,41 +20,39 @@ classifiers = [ | |
"Programming Language :: Python :: 3.9", | ||
] | ||
|
||
[tool.poetry.dependencies] | ||
# Manually specify catalogue dependencies | ||
pydantic = ">=1.9.0" | ||
|
||
# Other dependencies | ||
python = ">=3.9,<3.11" | ||
numpy = ">=1.23.3,<1.25.0" | ||
scipy = ">=1.8.1,<1.10.0" | ||
pandas = ">=1.4.4,<1.6.0" | ||
catalogue = ">=2.0.8, <2.1.0" | ||
wasabi = ">=0.9.0,<1.2.0" | ||
scikit-learn = ">=1.1.2,<1.3.0" | ||
srsly = ">=2.4.4, <2.5.0" | ||
wandb = ">=0.12.7,<0.13.8" | ||
psutil = ">=5.9.1, <6.0.0" | ||
dill = ">=0.3.5,<0.3.7" | ||
SQLAlchemy = ">=1.4.40,<1.4.46" | ||
pyodbc = ">=4.0.34, <=4.1.0" | ||
transformers = ">=4.22.0,<4.26.0" | ||
|
||
[tool.poetry.dev-dependencies] | ||
black = "22.12.*" | ||
pytest = "7.2.*" | ||
pytest-cov = "4.0.*" | ||
Sphinx = "5.3.*" | ||
furo = ">=2022.6.4,<2022.12.8" | ||
sphinx-copybutton = "0.5.*" | ||
sphinxext-opengraph = "0.7.*" | ||
myst-parser = "0.18.*" | ||
flake8 = "6.0.*" | ||
docformatter = ">=1.4.0,<1.5.2" | ||
mypy = ">=0.971,<0.992" | ||
pytest-xdist = "^3.0.2" | ||
pre-commit = ">=2.20.0,<2.22.0" | ||
dependencies = [ | ||
"pydantic>=1.9.0", | ||
"numpy>=1.23.3,<1.25.0", | ||
"scipy>=1.8.1,<1.10.0", | ||
"pandas>=1.4.4,<1.6.0", | ||
"catalogue>=2.0.8, <2.1.0", | ||
"wasabi>=0.9.0,<1.2.0", | ||
"scikit-learn>=1.1.2,<1.3.0", | ||
"srsly>=2.4.4, <2.5.0", | ||
"wandb>=0.12.7,<0.13.8", | ||
"psutil>=5.9.1, <6.0.0", | ||
"dill>=0.3.5,<0.3.7", | ||
"SQLAlchemy>=1.4.40,<1.4.46", | ||
"pyodbc>=4.0.34, <=4.1.0", | ||
"transformers>=4.22.0,<4.26.0", | ||
] | ||
|
||
[project.optional-dependencies] | ||
dev = [ | ||
"black>=22.12.0", | ||
"pytest>=7.2.0", | ||
"pytest-cov>=4.0.0", | ||
"Sphinx>=5.3.0", | ||
"furo>=2022.6.4,<2022.12.8", | ||
"sphinx-copybutton>=0.5.0", | ||
"sphinxext-opengraph>=0.7.0", | ||
"myst-parser>=0.18.0", | ||
"flake8>=6.0.0", | ||
"docformatter>=1.4.0,<1.5.2", | ||
"mypy>=0.971,<0.992", | ||
"pytest-xdist>=3.0.2", | ||
"pre-commit>=2.20.0,<2.22.0", | ||
] | ||
|
||
[tool.coverage.run] | ||
omit = [ | ||
|
@@ -59,8 +62,8 @@ omit = [ | |
] | ||
|
||
[build-system] | ||
requires = ["poetry-core>=1.0.0"] | ||
build-backend = "poetry.core.masonry.api" | ||
requires = ["setuptools>=61.0.0", "wheel", "setuptools_scm"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[tool.isort] | ||
known_third_party = ["wandb"] | ||
|
@@ -72,7 +75,7 @@ version_variable = [ | |
] | ||
upload_to_pypi = true | ||
upload_to_release = true | ||
build_command = "pip install poetry && poetry build" | ||
build_command = "python -m pip install build; python -m build" | ||
|
||
[tool.pylint] | ||
load-plugins = "pylint.extensions.docparams,pylint.extensions.code_style,pylint.extensions.for_any_all,pylint.extensions.typing" | ||
|