dependence 0.3.6__py3-none-any.whl → 1.0.0__py3-none-any.whl
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.
- dependence/_utilities.py +966 -39
- dependence/freeze.py +86 -45
- dependence/update.py +194 -86
- dependence-1.0.0.dist-info/METADATA +179 -0
- dependence-1.0.0.dist-info/RECORD +10 -0
- {dependence-0.3.6.dist-info → dependence-1.0.0.dist-info}/WHEEL +1 -2
- dependence/utilities.py +0 -1034
- dependence-0.3.6.dist-info/METADATA +0 -136
- dependence-0.3.6.dist-info/RECORD +0 -12
- dependence-0.3.6.dist-info/top_level.txt +0 -1
- {dependence-0.3.6.dist-info → dependence-1.0.0.dist-info}/entry_points.txt +0 -0
|
@@ -1,136 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.1
|
|
2
|
-
Name: dependence
|
|
3
|
-
Version: 0.3.6
|
|
4
|
-
Summary: Requirement (dependency) management for python projects
|
|
5
|
-
Home-page: https://github.com/enorganic/dependence
|
|
6
|
-
Author-email: david@belais.me
|
|
7
|
-
License: MIT
|
|
8
|
-
Keywords: requirements,dependencies
|
|
9
|
-
Requires-Python: ~=3.8
|
|
10
|
-
Description-Content-Type: text/markdown
|
|
11
|
-
Requires-Dist: packaging
|
|
12
|
-
Requires-Dist: pip
|
|
13
|
-
Requires-Dist: tomli~=2.0
|
|
14
|
-
Requires-Dist: tomli-w~=1.0
|
|
15
|
-
Requires-Dist: setuptools>63
|
|
16
|
-
|
|
17
|
-
# dependence
|
|
18
|
-
|
|
19
|
-
[](https://github.com/enorganic/dependence/actions/workflows/test.yml)
|
|
20
|
-
[](https://github.com/enorganic/dependence/actions/workflows/distribute.yml)
|
|
21
|
-
|
|
22
|
-
This project provides a Command Line Interface and library for inspecting
|
|
23
|
-
and updating python project dependency versions in setup.cfg, pyproject.toml,
|
|
24
|
-
and requirements.txt files.
|
|
25
|
-
|
|
26
|
-
## Installation
|
|
27
|
-
|
|
28
|
-
You can install `dependence` with pip:
|
|
29
|
-
|
|
30
|
-
```shell
|
|
31
|
-
pip3 install dependence
|
|
32
|
-
```
|
|
33
|
-
|
|
34
|
-
## Usage
|
|
35
|
-
|
|
36
|
-
### Command Line Interface
|
|
37
|
-
|
|
38
|
-
```console
|
|
39
|
-
$ dependence -h
|
|
40
|
-
Usage:
|
|
41
|
-
dependence <command> [options]
|
|
42
|
-
|
|
43
|
-
Commands:
|
|
44
|
-
update Update requirement versions in the specified
|
|
45
|
-
files to align with currently installed versions
|
|
46
|
-
of each distribution
|
|
47
|
-
freeze Print dependencies inferred from an installed
|
|
48
|
-
distribution or project, in a similar format
|
|
49
|
-
to the output of `pip freeze`.
|
|
50
|
-
```
|
|
51
|
-
|
|
52
|
-
#### dependence update
|
|
53
|
-
|
|
54
|
-
This command will update version specifiers for
|
|
55
|
-
all package requirements in your setup.cfg, pyproject.toml, tox.ini,
|
|
56
|
-
or requirements.txt files to match currently installed versions of each
|
|
57
|
-
distribution (matching the existing granularity, and only for *inclusive*
|
|
58
|
-
specifiers—so where the comparator is "~=", "==", ">=", or "<=", but not where
|
|
59
|
-
the comparator is ">", "<", or "!=").
|
|
60
|
-
|
|
61
|
-
```console
|
|
62
|
-
$ dependence update -h
|
|
63
|
-
usage: dependence update [-h] [-i IGNORE] [-aen ALL_EXTRA_NAME]
|
|
64
|
-
path [path ...]
|
|
65
|
-
|
|
66
|
-
Update requirement versions in the specified files to align with currently
|
|
67
|
-
installed versions of each distribution.
|
|
68
|
-
|
|
69
|
-
positional arguments:
|
|
70
|
-
path One or more local paths to a setup.cfg,
|
|
71
|
-
setup.cfg, and/or requirements.txt file
|
|
72
|
-
|
|
73
|
-
optional arguments:
|
|
74
|
-
-h, --help show this help message and exit
|
|
75
|
-
-i IGNORE, --ignore IGNORE
|
|
76
|
-
A comma-separated list of distributions to ignore
|
|
77
|
-
(leave any requirements pertaining to the package
|
|
78
|
-
as-is)
|
|
79
|
-
-aen ALL_EXTRA_NAME, --all-extra-name ALL_EXTRA_NAME
|
|
80
|
-
If provided, an extra which consolidates the
|
|
81
|
-
requirements for all other extras will be
|
|
82
|
-
added/updated to setup.cfg or setup.cfg
|
|
83
|
-
(this argument is ignored for requirements.txt
|
|
84
|
-
files)
|
|
85
|
-
```
|
|
86
|
-
|
|
87
|
-
Example:
|
|
88
|
-
|
|
89
|
-
```shell script
|
|
90
|
-
dependence update -aen all setup.cfg pyproject.toml tox.ini
|
|
91
|
-
```
|
|
92
|
-
|
|
93
|
-
#### dependence freeze
|
|
94
|
-
|
|
95
|
-
```console
|
|
96
|
-
$ dependence freeze -h
|
|
97
|
-
usage: dependence freeze [-h] [-e EXCLUDE] [-er EXCLUDE_RECURSIVE] [-nv NO_VERSION]
|
|
98
|
-
[-do] [--reverse] [-d DEPTH]
|
|
99
|
-
requirement [requirement ...]
|
|
100
|
-
|
|
101
|
-
This command prints dependencies inferred from an installed distribution or project, in
|
|
102
|
-
a similar format to the output of `pip freeze`, except that all generated requirements
|
|
103
|
-
are specified in the format "distribution-name==0.0.0" (including for editable
|
|
104
|
-
installations). Using this command instead of `pip freeze` to generate requirement
|
|
105
|
-
files ensures that you don't bloat your requirements files with superfluous
|
|
106
|
-
distributions.
|
|
107
|
-
|
|
108
|
-
positional arguments:
|
|
109
|
-
requirement One or more requirement specifiers (for example: "requirement-
|
|
110
|
-
name", "requirement-name[extra-a,extra-b]", ".[extra-a,
|
|
111
|
-
extra-b]" or "../other-editable-package-directory[extra-a,
|
|
112
|
-
extra-b]) and/or paths to a setup.py, setup.cfg,
|
|
113
|
-
pyproject.toml, tox.ini or requirements.txt file
|
|
114
|
-
|
|
115
|
-
optional arguments:
|
|
116
|
-
-h, --help show this help message and exit
|
|
117
|
-
-e EXCLUDE, --exclude EXCLUDE
|
|
118
|
-
A distribution (or comma-separated list of distributions) to
|
|
119
|
-
exclude from the output
|
|
120
|
-
-er EXCLUDE_RECURSIVE, --exclude-recursive EXCLUDE_RECURSIVE
|
|
121
|
-
A distribution (or comma-separated list of distributions) to
|
|
122
|
-
exclude from the output. Unlike -e / --exclude, this argument
|
|
123
|
-
also precludes recursive requirement discovery for the
|
|
124
|
-
specified packages, thereby excluding all of the excluded
|
|
125
|
-
package's requirements which are not required by another (non-
|
|
126
|
-
excluded) distribution.
|
|
127
|
-
-nv NO_VERSION, --no-version NO_VERSION
|
|
128
|
-
Don't include versions (only output distribution names) for
|
|
129
|
-
packages matching this/these glob pattern(s) (note: the value
|
|
130
|
-
must be single-quoted if it contains wildcards)
|
|
131
|
-
-do, --dependency-order
|
|
132
|
-
Sort requirements so that dependents precede dependencies
|
|
133
|
-
--reverse Print requirements in reverse order
|
|
134
|
-
-d DEPTH, --depth DEPTH
|
|
135
|
-
Depth of recursive requirement discovery
|
|
136
|
-
```
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
dependence/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
-
dependence/__main__.py,sha256=myBIBZdez2jC3_dkVSE-mOLo39yKi2cF_0NuVXcXF1E,1528
|
|
3
|
-
dependence/_utilities.py,sha256=t4crBNYlw2kGiHNjoY1Zx1H_LrY7OjrXT4RLDeOYs2o,4876
|
|
4
|
-
dependence/freeze.py,sha256=6sP-z-BIwOzF7JgnUD134gu4711-LY-zaQ26yPdq5JE,13298
|
|
5
|
-
dependence/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
6
|
-
dependence/update.py,sha256=FRl0FsdAIfjWacw1cVS8Fh024ZN7hK3ZHJiQpsRinfQ,16571
|
|
7
|
-
dependence/utilities.py,sha256=f41catUGTKuvU_MkQF_Hbk4IkVgMKNQr-DWhpaSktjQ,33756
|
|
8
|
-
dependence-0.3.6.dist-info/METADATA,sha256=zUD0xUnLS_N6RCihR9-7ui-1_Ay2VStAKKPzE6QJbtM,5594
|
|
9
|
-
dependence-0.3.6.dist-info/WHEEL,sha256=OVMc5UfuAQiSplgO0_WdW7vXVGAt9Hdd6qtN4HotdyA,91
|
|
10
|
-
dependence-0.3.6.dist-info/entry_points.txt,sha256=NStO_B0D81ObVYr9zDs6LCy0whm0a8KCiiFHMmTwOVE,56
|
|
11
|
-
dependence-0.3.6.dist-info/top_level.txt,sha256=5rooMYWKlAUelE8hjGegbf4uuAIqNuRlhlpA7oc7Qro,11
|
|
12
|
-
dependence-0.3.6.dist-info/RECORD,,
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
dependence
|
|
File without changes
|