-
Notifications
You must be signed in to change notification settings - Fork 68
/
.releash.py
40 lines (29 loc) · 1.76 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
37
38
39
from releash import *
import glob
# these objects only tag when they are exe
gitpush = ReleaseTargetGitPush()
filenames_python = glob.glob('*')
filenames_python.remove('js')
filenames_python.remove('notebooks')
package_python = add_package(".", "py", distribution_name='ipysheet', filenames=filenames_python)
version_python = VersionSource(package_python, '{path}/ipysheet/_version.py')
gittag = ReleaseTargetGitTagVersion(version_source=version_python)
package_python.version_source = version_python
package_python.version_targets.append(VersionTarget(package_python, '{path}/ipysheet/_version.py'))
package_python.release_targets.append(gittag)
package_python.release_targets.append(ReleaseTargetSourceDist(package_python))
#core.release_targets.append(gitpush)
#package_python.release_targets.append(ReleaseTargetCondaForge(package_python, '../feedstocks/ipysheet-feedstock'))
# js part
package_js = add_package("js", "js", distribution_name='ipysheet')
version_js = VersionSource(package_js, '{path}/../ipysheet/_version.py', tuple_variable_name='__version_tuple_js__')
package_js.version_source = version_js
package_js.version_targets.append(VersionTarget(package_js, '{path}/../ipysheet/_version.py',
tuple_variable_name='__version_tuple_js__',
string_variable_name='__version_js__'))
package_js.version_targets.append(VersionTargetJson(package_js, '{path}/package.json'))
gittag_js = ReleaseTargetGitTagVersion(version_source=version_js, postfix='_js')
package_js.release_targets.append(gittag_js)
package_js.release_targets.append(ReleaseTargetNpm(package_js))
#core.release_targets.append(gitpush)
#package_python.release_targets.append(ReleaseTargetCondaForge(package_python, '../feedstocks/ipyvolume-feedstock'))