dependence 1.0.2__tar.gz → 1.0.4__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,8 +1,9 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: dependence
3
- Version: 1.0.2
3
+ Version: 1.0.4
4
4
  Summary: A dependency management tool for python projects
5
- Project-URL: Homepage, https://dependence.enorganic.org
5
+ Project-URL: Documentation, https://dependence.enorganic.org
6
+ Project-URL: Repository, https://github.com/enorganic/dependence
6
7
  Author-email: david@belais.me
7
8
  License: MIT
8
9
  Keywords: dependencies,requirements
@@ -47,8 +48,8 @@ requirements.txt, pyproject.toml, setup.cfg, or tox.ini files. The output
47
48
  format matches that of `pip freeze`, but only lists dependencies of indicated
48
49
  packages and/or editable project locations.
49
50
 
50
- You may refer to the [`dependence freeze` CLI reference](https://dependence.enorganic.org/cli.md#dependence-freeze)
51
- and/or [`dependence.freeze` API reference](https://dependence.enorganic.org/api/freeze.md) for details
51
+ You may refer to the [`dependence freeze` CLI reference](https://dependence.enorganic.org/cli/#dependence-freeze)
52
+ and/or [`dependence.freeze` API reference](https://dependence.enorganic.org/api/freeze/) for details
52
53
  concerning this command/module, related options, and more complex use case
53
54
  examples.
54
55
 
@@ -173,7 +174,7 @@ updated? By design. Here are the rules `dependence update` adheres to:
173
174
  - If your requirement is unversioned, we don't touch it, of course. This is
174
175
  why you didn't see any change for "pip".
175
176
 
176
- You may refer to the [`dependence update` CLI reference](https://dependence.enorganic.org/cli.md#dependence-update)
177
- and/or [`dependence.update` API reference](https://dependence.enorganic.org/api/update.md) for details
177
+ You may refer to the [`dependence update` CLI reference](https://dependence.enorganic.org/cli/#dependence-update)
178
+ and/or [`dependence.update` API reference](https://dependence.enorganic.org/api/update/) for details
178
179
  concerning this command/module, related options, and more complex use
179
180
  cases/examples.
@@ -30,8 +30,8 @@ requirements.txt, pyproject.toml, setup.cfg, or tox.ini files. The output
30
30
  format matches that of `pip freeze`, but only lists dependencies of indicated
31
31
  packages and/or editable project locations.
32
32
 
33
- You may refer to the [`dependence freeze` CLI reference](https://dependence.enorganic.org/cli.md#dependence-freeze)
34
- and/or [`dependence.freeze` API reference](https://dependence.enorganic.org/api/freeze.md) for details
33
+ You may refer to the [`dependence freeze` CLI reference](https://dependence.enorganic.org/cli/#dependence-freeze)
34
+ and/or [`dependence.freeze` API reference](https://dependence.enorganic.org/api/freeze/) for details
35
35
  concerning this command/module, related options, and more complex use case
36
36
  examples.
37
37
 
@@ -156,7 +156,7 @@ updated? By design. Here are the rules `dependence update` adheres to:
156
156
  - If your requirement is unversioned, we don't touch it, of course. This is
157
157
  why you didn't see any change for "pip".
158
158
 
159
- You may refer to the [`dependence update` CLI reference](https://dependence.enorganic.org/cli.md#dependence-update)
160
- and/or [`dependence.update` API reference](https://dependence.enorganic.org/api/update.md) for details
159
+ You may refer to the [`dependence update` CLI reference](https://dependence.enorganic.org/cli/#dependence-update)
160
+ and/or [`dependence.update` API reference](https://dependence.enorganic.org/api/update/) for details
161
161
  concerning this command/module, related options, and more complex use
162
162
  cases/examples.
@@ -6,7 +6,7 @@ build-backend = "hatchling.build"
6
6
 
7
7
  [project]
8
8
  name = "dependence"
9
- version = "1.0.2"
9
+ version = "1.0.4"
10
10
  description = "A dependency management tool for python projects"
11
11
  readme = "README.md"
12
12
  license = "MIT"
@@ -31,17 +31,20 @@ dependencies = [
31
31
  dependence = "dependence.__main__:main"
32
32
 
33
33
  [project.urls]
34
- Homepage = "https://dependence.enorganic.org"
34
+ Documentation = "https://dependence.enorganic.org"
35
+ Repository = "https://github.com/enorganic/dependence"
35
36
 
36
37
  [tool.hatch.build.targets.sdist]
37
38
  packages = [
38
39
  "src/dependence",
39
40
  ]
41
+ sources = ["src"]
40
42
 
41
43
  [tool.hatch.build.targets.wheel]
42
44
  packages = [
43
45
  "src/dependence",
44
46
  ]
47
+ sources = ["src"]
45
48
 
46
49
  [tool.hatch.envs.default]
47
50
  python = "3.8"
@@ -50,6 +53,12 @@ dependencies = [
50
53
  "pytest",
51
54
  "ruff",
52
55
  ]
56
+ pre-install-commands = [
57
+ "pip install --upgrade pip setuptools",
58
+ ]
59
+ post-install-commands = [
60
+ "hatch run mypy --install-types --non-interactive || echo",
61
+ ]
53
62
 
54
63
  [tool.hatch.envs.default.scripts]
55
64
  lint = "ruff check . && ruff format --check . && mypy"
@@ -58,25 +67,27 @@ lint = "ruff check . && ruff format --check . && mypy"
58
67
  PIP_CONSTRAINT = "default_requirements.txt"
59
68
 
60
69
  [tool.hatch.envs.docs]
70
+ template = "docs"
61
71
  python = "3.13"
62
72
  dependencies = [
63
73
  "mkdocs-material",
64
74
  "mkdocstrings[python]",
75
+ "black",
65
76
  ]
66
77
 
67
78
  [tool.hatch.envs.docs.env-vars]
68
79
  PIP_CONSTRAINT = "docs_requirements.txt"
69
80
 
70
- [tool.hatch.envs.test]
71
- dependencies = [
72
- "pytest",
73
- ]
81
+ [tool.hatch.envs.hatch-test]
82
+ template = "hatch-test"
83
+ extra-dependencies = []
74
84
 
75
- [tool.hatch.envs.test.env-vars]
76
- PIP_CONSTRAINT = "test_requirements.txt"
77
85
 
78
- [tool.hatch.envs.test.scripts]
79
- test = "py.test"
86
+ [[tool.hatch.envs.hatch-test.matrix]]
87
+ python = ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
88
+
89
+ [tool.hatch.envs.hatch-test.env-vars]
90
+ PIP_CONSTRAINT = "test_requirements.txt"
80
91
 
81
92
  [tool.ruff]
82
93
  line-length = 79
@@ -102,3 +113,35 @@ max-complexity = 10
102
113
  [tool.ruff.format]
103
114
  docstring-code-format = true
104
115
  docstring-code-line-length = 20
116
+
117
+ [tool.black]
118
+ line-length = 79
119
+ target-version = [
120
+ "py38",
121
+ "py39",
122
+ "py310",
123
+ "py311",
124
+ "py312",
125
+ "py313",
126
+ ]
127
+
128
+ [tool.mypy]
129
+ python_version = "3.8"
130
+ files = [
131
+ "src",
132
+ "tests",
133
+ ]
134
+ exclude = [
135
+ "tests/test_projects",
136
+ ]
137
+ disallow_untyped_defs = true
138
+ disallow_incomplete_defs = true
139
+
140
+ [tool.coverage.run]
141
+ omit = ["tests/test_projects"]
142
+
143
+ [tool.coverage.paths]
144
+ source = ["src/"]
145
+
146
+ [tool.coverage.report]
147
+ fail_under = 80
File without changes