* par is kept at -Np0 ```sh git grep -l '^patch_args=-Np0' "srcpkgs/$1*/template" | while read template; do for p in ${template%/template}/patches/*; do sed -i ' \,^[+-][+-][+-] /dev/null,b /^[*-]\+ [0-9]\+\(,[0-9]\+\)\? [*-]\+$/b s,^[*][*][*] ,&a/, /^--- /{ s,\(^--- \)\(./\)*,\1a/, s,[.-][Oo][Rr][Ii][Gg]\([ /]\),\1, s/[.-][Oo][Rr][Ii][Gg]$// s/[.]patched[.]\([^.]\)/.\1/ h } /^+++ -/{ g s/^--- a/+++ b/ b } s,\(^+++ \)\(./\)*,\1b/, ' "$p" done sed -i '/^patch_args=/d' $template done ```
25 lines
518 B
Diff
25 lines
518 B
Diff
Make sure that setuptools_scm actually installs the module and entrypoint.
|
|
|
|
--- a/setup.cfg 2021-01-28 10:10:54.291152917 -0500
|
|
+++ b/setup.cfg 2021-01-28 10:13:12.191007896 -0500
|
|
@@ -61,3 +61,20 @@
|
|
tag_date = 0
|
|
tag_svn_revision = 0
|
|
|
|
+[options]
|
|
+packages =
|
|
+ gitchangelog
|
|
+package_dir =
|
|
+ =src
|
|
+setup_requires =
|
|
+ setuptools
|
|
+ setuptools-scm
|
|
+
|
|
+[options.entry_points]
|
|
+console_scripts =
|
|
+ gitchangelog = gitchangelog.gitchangelog:main
|
|
+
|
|
+[options.package_data]
|
|
+gitchangelog =
|
|
+ gitchangelog.rc.*
|
|
+ templates/**/*
|