Skip to content

Commit 318cae4

Browse files
making version bumping and releasing fun
1 parent d8c7728 commit 318cae4

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

.releash.py

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
'''
2+
Before use, install releash:
3+
* $ python -m pip install releash
4+
* Install hub (to do a PR from the command line) https://hub.github.com/
5+
Workflow:
6+
* releash status
7+
* releash bump -i -v
8+
* releash release -i -v
9+
Lose the -i (interactive) and -v (verbose) when comfortable
10+
'''
11+
12+
from releash import *
13+
gitpush = ReleaseTargetGitPush()
14+
15+
xfftw = add_package(path=".", name="xtensor-fftw")
16+
version_xfftw = VersionSourceAndTargetHpp(xfftw, '{path}/include/xtensor-fftw/xtensor-fftw_config.hpp', prefix='XTENSOR_FFTW_VERSION_')
17+
gittag_xfftw = ReleaseTargetGitTagVersion(version_source=version_xfftw, prefix='', annotate=True)
18+
19+
xfftw.version_source = version_xfftw
20+
21+
xfftw.version_targets.append(version_xfftw)
22+
xfftw.release_targets.append(gittag_xfftw)
23+
xfftw.release_targets.append(gitpush)
24+
25+
source_tarball_filename = 'https://github.com/egpbos/xtensor-fftw/archive/{version}.tar.gz'.format(version=version_xfftw)
26+
# uncomment when you have a feedstock
27+
#xfftw.release_targets.append(ReleaseTargetCondaForge(xfftw, '../xtensor-fftw-feedstock', source_tarball_filename=source_tarball_filename))
28+

0 commit comments

Comments
 (0)