forked from widgetti/ipyvolume
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.releash.py
37 lines (26 loc) · 1.65 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
28
29
30
31
32
33
34
35
36
from releash import *
import glob
# these objects only tag when they are exe
gitpush = ReleaseTargetGitPush()
filenames_python = ['ipyvolume']
package_python = add_package(".", "py", distribution_name='ipyvolume', filenames=filenames_python)
version_python = VersionSource(package_python, '{path}/ipyvolume/_version.py')
gittag = ReleaseTargetGitTagVersion(version_source=version_python)
package_python.version_source = version_python
package_python.version_targets.append(VersionTarget(package_python, '{path}/ipyvolume/_version.py'))
package_python.release_targets.append(gittag)
package_python.release_targets.append(ReleaseTargetSourceDist(package_python, universal_wheel=True))
#core.release_targets.append(gitpush)
package_python.release_targets.append(ReleaseTargetCondaForge(package_python, '../feedstocks/ipyvolume-feedstock'))
# js part
package_js = add_package("js", "js", distribution_name='ipyvolume')
version_python = VersionSource(package_js, '{path}/../ipyvolume/_version.py', tuple_variable_name='__version_tuple_js__')
package_js.version_source = version_python
package_js.version_targets.append(VersionTarget(package_js, '{path}/../ipyvolume/_version.py',
tuple_variable_name='__version_tuple_js__',
string_variable_name='__version_js__'))
package_js.version_targets.append(VersionTargetJson(package_js, '{path}/package.json'))
package_js.release_targets.append(gittag)
package_js.release_targets.append(ReleaseTargetNpm(package_js))
#core.release_targets.append(gitpush)
#package_python.release_targets.append(ReleaseTargetCondaForge(package_python, '../feedstocks/ipyvolume-feedstock'))