-
Notifications
You must be signed in to change notification settings - Fork 152
/
makefile
46 lines (38 loc) · 1.15 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
integration-tests:
python3 -m unittest discover -s tests/integration -f -v
unit-tests:
python3 -m unittest discover -s tests/unit -f -v
test:
python3 -m unittest discover -s tests -f
tests: unit-tests integration-tests
pypi:
rm -rf dist/*
#python3 -m build
./make_version.sh
poetry build
poetry version patch
./make_version_dev.sh
ls -l dist/
cat mppsolar/version.py
pypi-upload:
twine upload dist/*
docker-up:
docker-compose up --build
git-tag-release:
@./make_version.sh
@echo Creating a tag for version: `awk '/^version/ {print $$3}' pyproject.toml`
@echo Pushing version changes to git
git add mppsolar/version.py
git commit -m "remove -dev from version"
git push
@git tag `awk '/^version/ {print substr($$3, 2, length($$3)-2)}' pyproject.toml`
@git push origin --tags
@echo "Now go to github and create a release for the latest tag" `awk '/^version/ {print substr($$3, 2, length($$3)-2)}' pyproject.toml`
@echo Bumping version..
@poetry version patch
@echo Adding '-dev' to version in git
@./make_version_dev.sh
@echo Pushing version changes to git
git add mppsolar/version.py pyproject.toml
git commit -m "Update versions"
git push