generated from Lightning-AI/deep-learning-project-template
-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate legacy setup.py to pyproject.toml (#108)
* Migrate legacy setup.py to pyproject.toml * Prune setup.cfg Moves the pytest config from setup.cfg to pyproject.toml Removes some sections that didn't seem necessary or duplicate metadata in pyproject.toml (resolves "Usage of dash-separated 'description-file' will not be supported in future" build warning) Keeps only the flake8 config that doesn't support pyproject.toml: PyCQA/flake8#234 * Add just the detoxify package to the build * Move sentencepiece to main deps
- Loading branch information
Showing
6 changed files
with
62 additions
and
81 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,7 +1,38 @@ | ||
[build-system] | ||
requires = [ | ||
"setuptools", | ||
"wheel", | ||
[project] | ||
name = "detoxify" | ||
version = "0.5.2" | ||
description = "A python library for detecting toxic comments" | ||
readme = "README.md" | ||
authors = [ | ||
{name = "Unitary", email = "[email protected]"}, | ||
] | ||
classifiers = [ | ||
"License :: OSI Approved :: Apache Software License", | ||
"Operating System :: OS Independent", | ||
"Programming Language :: Python :: 3", | ||
] | ||
requires-python = ">=3.9,<3.12" | ||
dependencies = [ | ||
"sentencepiece >= 0.1.94", | ||
"torch < 2.2", | ||
"transformers >= 3", | ||
] | ||
|
||
[tool.setuptools] | ||
packages = ["detoxify"] | ||
|
||
[project.urls] | ||
Homepage = "https://github.com/unitaryai/detoxify" | ||
|
||
[project.optional-dependencies] | ||
dev = [ | ||
"datasets >= 1.0.2", | ||
"pandas >= 1.1.2", | ||
"pytest", | ||
"pytorch-lightning<2.0.0,>1.5.0", | ||
"scikit-learn >= 0.23.2", | ||
"tqdm", | ||
"pre-commit", | ||
] | ||
|
||
[tool.black] | ||
|
@@ -16,3 +47,25 @@ known_first_party = [ | |
skip_glob = [] | ||
profile = "black" | ||
line_length = 120 | ||
|
||
[tool.pytest.ini_options] | ||
norecursedirs = [ | ||
".git", | ||
"dist", | ||
"build", | ||
] | ||
addopts = [ | ||
"--strict-markers", | ||
"--doctest-modules", | ||
"--durations=0", | ||
"--color=yes", | ||
] | ||
filterwarnings = [ | ||
"ignore:.*deprecated alias.*:DeprecationWarning:tensorboard.*tensorflow_stub*:", | ||
"ignore:.*deprecated alias.*:DeprecationWarning:tensorboard.*tensor_util*:", | ||
"ignore:.*deprecated alias.*:DeprecationWarning:pyarrow.*pandas_compat*:", | ||
] | ||
|
||
[build-system] | ||
requires = ["setuptools"] | ||
build-backend = "setuptools.build_meta" |
This file was deleted.
Oops, something went wrong.
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