File tree 3 files changed +12
-4
lines changed
3 files changed +12
-4
lines changed Original file line number Diff line number Diff line change 1
1
node: $Format:%H$
2
2
node-date: $Format:%cI$
3
3
describe-name: $Format:%(describe:tags=true,match=*[0-9]*)$
4
- ref-names: $Format:%D$
Original file line number Diff line number Diff line change @@ -235,9 +235,19 @@ Ensure the content of the following files:
235
235
node: $Format:%H$
236
236
node-date: $Format:%cI$
237
237
describe-name: $Format:%(describe:tags=true,match=*[0-9]*)$
238
- ref-names: $Format:%D$
239
238
```
240
239
240
+ Feel free to alter the ` match ` field in ` describe-name ` to match your project's
241
+ tagging style.
242
+
243
+ !!! note
244
+
245
+ If your git host provider does not properly expand `describe-name`, you may
246
+ need to include `ref-names: $Format:%D$`. But **beware**, this can often
247
+ lead to the git archive's checksum changing after a commit is added
248
+ post-release. See [this issue][git-archive-issue] for more details.
249
+
250
+
241
251
``` {.text file=".gitattributes"}
242
252
.git_archival.txt export-subst
243
253
```
@@ -251,7 +261,7 @@ $ git add .git_archival.txt .gitattributes && git commit -m "add export config"
251
261
Note that if you are creating a ` _version.py ` file, note that it should not
252
262
be kept in version control. It's strongly recommended to be put into gitignore.
253
263
254
-
264
+ [ git-archive-issue ] : https://github.com/pypa/setuptools_scm/issues/806
255
265
256
266
### File finders hook makes most of ` MANIFEST.in ` unnecessary
257
267
Original file line number Diff line number Diff line change 1
1
node: $Format:%H$
2
2
node-date: $Format:%cI$
3
3
describe-name: $Format:%(describe:tags=true,match=*[0-9]*)$
4
- ref-names: $Format:%D$
You can’t perform that action at this time.
0 commit comments