Skip to content

Commit a614fe8

Browse files
committed
fix: pyproject.toml and setup.py conflicts
1 parent cbe4897 commit a614fe8

2 files changed

Lines changed: 16 additions & 85 deletions

File tree

pyproject.toml

Lines changed: 16 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,18 @@
11
[build-system]
2-
requires = ["flit_core >= 3.4"]
3-
build-backend = "flit_core.buildapi"
2+
requires = ["setuptools>=61.0", "wheel"]
3+
build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "i2rt"
77
version = "0.0.1"
8+
description = "I2RT YAM Repo"
89
readme = "README.md"
910
requires-python = ">=3.10"
10-
dynamic = ["description"]
11+
license = {text = "MIT"}
12+
classifiers = [
13+
"Programming Language :: Python :: 3",
14+
"License :: OSI Approved :: MIT License"
15+
]
1116
dependencies = [
1217
"click<8.2.0",
1318
"dm-env==1.6",
@@ -24,72 +29,14 @@ dependencies = [
2429
]
2530

2631
[project.optional-dependencies]
27-
dev = [
28-
"pytest==8.4.0",
29-
]
32+
dev = ["pytest==8.4.0"]
3033

31-
[tool.flit.module]
32-
name = "i2rt"
34+
[tool.setuptools]
35+
# This replaces the need for find_packages() in setup.py
36+
packages = {find = {}}
3337

34-
[tool.ruff]
35-
line-length = 119 # Set the max line length to 119 characters.
36-
lint.select = [
37-
"ANN", # Annotations.
38-
"B", # bugbear rules
39-
# "D", # docstring rules.
40-
"E", # pycodestyle errors.
41-
"F", # Pyflakes rules.
42-
"I", # Import sorting.
43-
"PLC", # Pylint convention warnings.
44-
"PLE", # Pylint errors.
45-
"PLR", # Pylint refactor recommendations.
46-
"PLW", # Pylint warnings.
47-
"RUF" # Ruff rules.
48-
]
49-
lint.ignore = [
50-
"ANN101",
51-
"ANN102",
52-
"ANN204",
53-
"ANN401",
54-
"E741", # Ambiguous variable name. (l, O, or I)
55-
"F841",
56-
"E402",
57-
"E501",
58-
"PLR1722",
59-
"PLR2004", # Magic value used in comparison.
60-
"PLR0915", # Too many statements.
61-
"PLR0913", # Too many arguments.
62-
"PLC0414", # Import alias does not rename variable. (this is used for exporting names)
63-
"PLC1901", # Use falsey strings.
64-
"PLR0911", # Too many return statements.
65-
"PLR0912", # Too many branches.
66-
"PLW0603", # Global statement updates are discouraged.
67-
"PLW2901", # For loop variable overwritten.
68-
"RUF005",
69-
"RUF009",
70-
"RUF012"
71-
]
72-
lint.extend-select = ["E501"]
73-
lint.exclude = ["*.ipynb"]
38+
# Keep your [tool.ruff], [tool.mypy], etc., exactly as they were!
7439

75-
[tool.ruff.format]
76-
docstring-code-format = true
77-
skip-magic-trailing-comma = false
78-
79-
[tool.mypy]
80-
python_version = "3.12"
81-
ignore_missing_imports = true
82-
warn_unused_configs = true
83-
exclude = ["scripts/"]
84-
85-
[tool.coverage.report]
86-
exclude_also = [
87-
"raise NotImplementedError",
88-
"if __name__ == .__main__.:",
89-
"class .*\\bProtocol\\):",
90-
"@(abc\\.)?abstractmethod",
91-
"def __repr__",
92-
]
93-
omit = [
94-
"*exceptions.py",
95-
]
40+
[tool.setuptools_scm]
41+
version_scheme = "post-release"
42+
write_to = "i2rt/_version.py"

setup.py

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)