forked from conda/conda-libmamba-solver
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
140 lines (132 loc) · 6.34 KB
/
pyproject.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[project]
name = "conda-libmamba-solver"
description = "The fast mamba solver, now in conda"
readme = "README.md"
authors = [
{name = "Anaconda, Inc.", email = "[email protected]"}
]
license = {file = "LICENSE"}
classifiers = [
"License :: OSI Approved :: BSD License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy"
]
requires-python = ">=3.7"
dependencies = [
"conda >=22.11.0",
"libmambapy >=1.0.0",
"importlib-metadata",
"boltons >=23.0.0",
]
dynamic = [
"version"
]
[project.urls]
homepage = "https://github.com/conda/conda-libmamba-solver"
[project.entry-points.conda]
conda-libmamba-solver = "conda_libmamba_solver.plugin"
[tool.hatch.version]
source = "vcs"
[tool.black]
line-length = 99
target-version = ['py37', 'py38', 'py39', 'py310']
exclude = '''
(
^/conda_libmamba_solver/_libmamba\.py
| ^/tests/_reposerver\.py
)
'''
[tool.pytest.ini_options]
minversion = "6.0"
addopts = [
### Original settings from conda/conda
"--ignore=setup.py",
"--ignore=conda/__main__.py",
"--ignore=conda/_vendor",
"--ignore=tests/conda_env/specs/test_binstar.py",
"--ignore=tests/conda_env/support",
"--ignore=tests/conda_env/utils/test_uploader.py",
"--ignore=test_data",
"--tb=native",
"--strict-markers",
"--xdoctest-modules",
"--xdoctest-style=google",
### Deselect tests from conda/conda we cannot pass due to different reasons
### These used to be skipped or xfail'd upstream, but we are trying to
### keep it clean from this project's specifics
# This test checks for plugin errors and assumes none are present, but
# conda-libmamba-solver counts as one so we need to skip it.
"--deselect=tests/plugins/test_manager.py::test_load_entrypoints_importerror",
# Conflict report / analysis is done differently with libmamba.
"--deselect=tests/cli/test_cli_install.py::test_find_conflicts_called_once",
# SolverStateContainer needed
"--deselect=tests/core/test_solve.py::test_solve_2",
"--deselect=tests/core/test_solve.py::test_virtual_package_solver",
"--deselect=tests/core/test_solve.py::test_broken_install",
# Features / nomkl involved
"--deselect=tests/core/test_solve.py::test_features_solve_1",
"--deselect=tests/core/test_solve.py::test_prune_1",
"--deselect=tests/test_create.py::IntegrationTests::test_remove_features",
# Inconsistency analysis not implemented yet
"--deselect=tests/test_create.py::IntegrationTests::test_conda_recovery_of_pip_inconsistent_env",
# Known bug in mamba; see https://github.com/mamba-org/mamba/issues/1197
"--deselect=tests/test_create.py::IntegrationTests::test_offline_with_empty_index_cache",
# The following are known to fail upstream due to too strict expectations
# We provide the same tests with adjusted checks in tests/test_modified_upstream.py
"--deselect=tests/test_create.py::IntegrationTests::test_neutering_of_historic_specs",
"--deselect=tests/test_create.py::IntegrationTests::test_pinned_override_with_explicit_spec",
"--deselect=tests/core/test_solve.py::test_pinned_1",
"--deselect=tests/core/test_solve.py::test_freeze_deps_1",
"--deselect=tests/core/test_solve.py::test_cuda_fail_1",
"--deselect=tests/core/test_solve.py::test_cuda_fail_2",
"--deselect=tests/core/test_solve.py::test_update_all_1",
"--deselect=tests/core/test_solve.py::test_conda_downgrade",
"--deselect=tests/core/test_solve.py::test_python2_update",
"--deselect=tests/core/test_solve.py::test_fast_update_with_update_modifier_not_set",
"--deselect=tests/core/test_solve.py::test_downgrade_python_prevented_with_sane_message",
# These use libmamba-incompatible MatchSpecs (name[build_number=1] syntax)
"--deselect=tests/models/test_prefix_graph.py::test_deep_cyclical_dependency",
# See https://github.com/conda/conda-libmamba-solver/pull/133#issuecomment-1448607110
# These failed after enabling the whole unit test suite for `conda/conda`.
# Errors are not critical but would require some further assessment in case fixes are obvious.
"--deselect=tests/cli/test_main_notices.py::test_notices_appear_once_when_running_decorated_commands",
"--deselect=tests/cli/test_main_notices.py::test_notices_does_not_interrupt_command_on_failure",
"--deselect=tests/conda_env/installers/test_pip.py::PipInstallerTest::test_stops_on_exception",
"--deselect=tests/conda_env/installers/test_pip.py::PipInstallerTest::test_straight_install",
"--deselect=tests/conda_env/specs/test_base.py::DetectTestCase::test_build_msg",
"--deselect=tests/conda_env/specs/test_base.py::DetectTestCase::test_dispatches_to_registered_specs",
"--deselect=tests/conda_env/specs/test_base.py::DetectTestCase::test_has_build_msg_function",
"--deselect=tests/conda_env/specs/test_base.py::DetectTestCase::test_passes_kwargs_to_all_specs",
"--deselect=tests/conda_env/specs/test_base.py::DetectTestCase::test_raises_exception_if_no_detection",
# TODO: Fix upstream; they seem to assume no other solvers will be active via env var
"--deselect=tests/plugins/test_solvers.py::test_get_solver_backend",
"--deselect=tests/plugins/test_solvers.py::test_get_solver_backend_multiple",
# TODO: Investigate these, since they are solver related-ish
"--deselect=tests/conda_env/specs/test_requirements.py::TestRequiremets::test_environment",
"--deselect=tests/models/test_prefix_graph.py::test_windows_sort_orders_1",
# TODO: These ones need further investigation
"--deselect=tests/core/test_solve.py::test_channel_priority_churn_minimized",
"--deselect=tests/core/test_solve.py::test_priority_1",
# TODO: Investigate why this fails on Windows now
"--deselect=tests/test_create.py::IntegrationTests::test_install_update_deps_only_deps_flags",
# TODO: https://github.com/conda/conda-libmamba-solver/issues/141
"--deselect=tests/test_create.py::IntegrationTests::test_conda_pip_interop_conda_editable_package",
]
markers = [
"integration: integration tests that usually require an internet connect",
"slow: slow running tests",
]
[tool.isort]
profile = "black"
filter_files = true
[tool.ruff]
line-lenth = 99