forked from jblance/mpp-solar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile
58 lines (47 loc) · 1.58 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
mppsolar-integration-tests:
python3 -m unittest discover -s tests/mpp/integration -f -v
mppsolar-unit-tests:
python3 -m unittest discover -s tests/mpp/unit -f -v
powermon-unit-tests:
python3 -m unittest discover -s tests/pmon/unit -f -v
powermon-integration-tests:
python3 -m unittest discover -s tests/pmon/integration -f -v
test:
python3 -m unittest discover -s tests -f
tests: powermon-unit-tests powermon-integration-tests mppsolar-unit-tests mppsolar-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
cat powermon/version.py
pypi-upload:
twine upload dist/*
docker-up:
docker-compose up --build
docker-powermon-dev-up:
docker compose -f docker-compose.development.yaml up --build
poetry-dev:
poetry install --no-root --with=dev --extras=powermon
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