-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
62 lines (46 loc) · 1.62 KB
/
Makefile
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
VERSION ?= 0.6.1
SHELL := /bin/bash
.PHONY: releasehere
releasegit:
# Update Pixi version
pixi project version set $(VERSION)
# Update version in meta.yaml
# sed -i'' 's/^ version: .*/^ version: "$(VERSION)"/' anaconda_build/meta.yaml
perl -i -pe's/^ version: .*/ version: "$(VERSION)"/' anaconda_build/meta.yaml
# Commit changes
git add pyproject.toml anaconda_build/meta.yaml
git commit -m "Bump version to $(VERSION)"
# Create a new tag
git tag -a v$(VERSION) -m "Release version $(VERSION)"
# Push changes and tag
git push origin HEAD
git push origin v$(VERSION)
releasehere:
# Update Poetry version
poetry version $(VERSION)
# Update version in meta.yaml
sed -i 's/^ version: .*/ version: "$(VERSION)"/' anaconda_build/meta.yaml
# Commit changes
git add pyproject.toml anaconda_build/meta.yaml
git commit -m "Bump version to $(VERSION)"
# Create a new tag
git tag -a v$(VERSION) -m "Release version $(VERSION)"
# Push changes and tag
git push origin HEAD
git push origin v$(VERSION)
# pypi
poetry build
poetry publish
#conda
source activate bld && conda build ./anaconda_build
condabld:
micromamba activate openprotein-sdk-build
conda build -c conda-forge --numpy 2.1 ./anaconda_build
proddocs:
cd apidocs && make clean && make html
aws s3 sync apidocs/build/html s3://openprotein-docs-prod/api-python/
aws cloudfront create-invalidation --distribution-id E1CUT1CP31D5NK --paths "/*"
devdocs:
cd apidocs && make clean && make html
aws s3 sync apidocs/build/html s3://openprotein-docs-dev/api-python/
aws cloudfront create-invalidation --distribution-id E3SMW2DYY71HHW --paths "/*"