forked from xtensor-stack/xtensor-fftw
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.releash.py
27 lines (22 loc) · 1.07 KB
/
.releash.py
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
'''
Before use, install releash:
* $ python -m pip install releash
* Install hub (to do a PR from the command line) https://hub.github.com/
Workflow:
* releash status
* releash bump -i -v
* releash release -i -v
Lose the -i (interactive) and -v (verbose) when comfortable
'''
from releash import *
gitpush = ReleaseTargetGitPush()
xfftw = add_package(path=".", name="xtensor-fftw")
version_xfftw = VersionSourceAndTargetHpp(xfftw, '{path}/include/xtensor-fftw/xtensor-fftw_config.hpp', prefix='XTENSOR_FFTW_VERSION_')
gittag_xfftw = ReleaseTargetGitTagVersion(version_source=version_xfftw, prefix='', annotate=True, msg=None)
xfftw.version_source = version_xfftw
xfftw.version_targets.append(version_xfftw)
xfftw.release_targets.append(gittag_xfftw)
xfftw.release_targets.append(gitpush)
source_tarball_filename = 'https://github.com/egpbos/xtensor-fftw/archive/{version}.tar.gz'.format(version=version_xfftw)
conda_forge_xfftw = ReleaseTargetCondaForge(xfftw, '../xtensor-fftw-feedstock', source_tarball_filename=source_tarball_filename)
xfftw.release_targets.append(conda_forge_xfftw)