File tree Expand file tree Collapse file tree 4 files changed +31
-0
lines changed Expand file tree Collapse file tree 4 files changed +31
-0
lines changed Original file line number Diff line number Diff line change @@ -25,3 +25,5 @@ values =
25
25
26
26
[bumpversion:file:src/dsf/__init__.py]
27
27
replace = {new_version}
28
+
29
+ [bumpversion:file:setup.cfg]
Original file line number Diff line number Diff line change @@ -212,3 +212,5 @@ pyrightconfig.json
212
212
213
213
# Custom rules (everything added below won't be overriden by 'Generate .gitignore File' if you use 'Update' option)
214
214
215
+ deb_dist
216
+ * .tar.gz
Original file line number Diff line number Diff line change
1
+ SHELL := /bin/bash
2
+ verbosity =1
3
+
4
+ # ########################################
5
+ # bumpversion Usage
6
+ # ########################################
7
+ # `bumpversion [major|minor|patch|build|post]`
8
+ # `bumpversion --tag release
9
+
10
+ update_dist :
11
+ python -m pytest
12
+ rm dist/* -f
13
+ python setup.py sdist bdist_wheel
14
+
15
+ check_dist : update_dist
16
+ python -m twine check dist/*
17
+
18
+ build_deb :
19
+ rm -rf deb_dist/
20
+ sed -i -E ' /forced-upstream-version/ s/([0-9]+)\.([0-9]+)\.([0-9]+)-([a-z]+)([0-9]+)/\1.\2.\3~\4\5/' setup.cfg
21
+ python setup.py --command-packages=stdeb.command sdist_dsc bdist_deb
22
+ sed -i -E ' /forced-upstream-version/ s/([0-9]+)\.([0-9]+)\.([0-9]+)~([a-z]+)([0-9]+)/\1.\2.\3-\4\5/' setup.cfg
23
+ dpkg-deb -I deb_dist/* .deb
Original file line number Diff line number Diff line change @@ -5,3 +5,7 @@ license_files = LICENSE
5
5
6
6
[flake8]
7
7
max-line-length = 120
8
+
9
+ [sdist_dsc]
10
+ # Force the version to use `~` before any prerelease identifiers
11
+ forced-upstream-version = 3.6.0-b2.post2
You can’t perform that action at this time.
0 commit comments