Commit 7e78fe5
chore: use static versions instead of setuptools-scm (#15245)
## Description
APMLP-587
Remove `setuptools-scm` and rely on statically defined versions in
`pyproject.toml` and `ddtrace/version.py`.
A lot of the changes are moving components away from using
`ddtrace.version.get_version()` to compute the version vs using the
statically defined `ddtrace.__version__`/`ddtrace.version.__version__`
## Testing
<!-- Describe your testing strategy or note what tests are included -->
## Risks
<!-- Note any risks associated with this change, or "None" if no risks
-->
## Additional Notes
We are dropping the version specific public s3 folders. This is because
the static versions mean we are likely to easily overwrite the contents
of a bucket on PRs/feature branches/new runs on main or release
branches/etc. Removing them and only relying on the pipeline id is the
safest way to not have any conflicts between versions and files
uploaded.
This PR also adds a helper script `scripts/verify-package-version`:
```
Verify and update static versions in pyproject.toml and ddtrace/version.py.
Performs the following validations:
- Ensures version in pyproject.toml is PEP 440 compliant (e.g., "4.1.0.dev0" not "4.1.0.dev")
- Verifies __version__ in ddtrace/version.py matches __version_tuple__ when parsed
- Checks that versions in both files are consistent
Usage:
scripts/verify-package-version # Check versions match (exit 0 if OK, 1 if mismatch)
scripts/verify-package-version --fix # Update version.py from pyproject.toml
```
---------
Co-authored-by: Christophe Papazian <114495376+christophe-papazian@users.noreply.github.com>1 parent a82e9b1 commit 7e78fe5
File tree
42 files changed
+605
-183
lines changed- .gitlab
- .sg
- rules
- tests
- __snapshots__
- benchmarks
- appsec_iast_aspects_ospath
- appsec_iast_aspects_re_module
- appsec_iast_aspects_split
- appsec_iast_aspects
- ddtrace
- _trace
- appsec/ai_guard
- commands
- internal
- ci_visibility
- core
- datastreams
- processor
- runtime
- settings
- telemetry
- utils
- writer
- llmobs
- docs
- scripts
- tests
- appsec
- architectures
- contrib_appsec
- contrib
- debugging
- lib_injection
- tracer
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
42 files changed
+605
-183
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | 155 | | |
159 | 156 | | |
160 | 157 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
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 | 1 | | |
32 | 2 | | |
33 | 3 | | |
| |||
90 | 60 | | |
91 | 61 | | |
92 | 62 | | |
93 | | - | |
94 | | - | |
95 | 63 | | |
96 | 64 | | |
97 | 65 | | |
| |||
107 | 75 | | |
108 | 76 | | |
109 | 77 | | |
110 | | - | |
111 | | - | |
112 | | - | |
| 78 | + | |
113 | 79 | | |
114 | 80 | | |
115 | | - | |
| 81 | + | |
116 | 82 | | |
117 | 83 | | |
118 | 84 | | |
119 | 85 | | |
120 | 86 | | |
121 | | - | |
122 | | - | |
| 87 | + | |
123 | 88 | | |
124 | 89 | | |
125 | 90 | | |
126 | 91 | | |
127 | | - | |
128 | 92 | | |
129 | 93 | | |
130 | 94 | | |
| |||
141 | 105 | | |
142 | 106 | | |
143 | 107 | | |
144 | | - | |
145 | 108 | | |
146 | 109 | | |
147 | 110 | | |
148 | | - | |
149 | 111 | | |
150 | 112 | | |
151 | 113 | | |
152 | | - | |
153 | 114 | | |
154 | | - | |
155 | 115 | | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 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 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 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 | + | |
0 commit comments