A library that computes the ephemerides.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

43 lines
1.1 KiB

  1. black:
  2. pipenv run black kosmorrolib setup.py
  3. .PHONY: tests
  4. tests: doctests
  5. coverage-doctests:
  6. pipenv run python3 -m coverage run tests.py
  7. coverage-report:
  8. pipenv run python3 -m coverage report
  9. doctests:
  10. pipenv run python3 tests.py
  11. .PHONY: build
  12. build:
  13. python3 setup.py sdist bdist_wheel
  14. env:
  15. @if [[ "$$RELEASE_NUMBER" == "" ]]; \
  16. then echo "Missing environment variable: RELEASE_NUMBER."; \
  17. echo 'Example: export RELEASE_NUMBER="1.0.0" (without the leading "v")'; \
  18. exit 1; \
  19. fi
  20. changelog:
  21. conventional-changelog -p angular -i CHANGELOG.md -s
  22. @echo -e "\e[32m✔\e[33m Changelog generated. Don't forget to update the version number before committing.\e[0m"
  23. @echo -e " When everything is good, finish the release with 'make tag'."
  24. tag: env
  25. git add CHANGELOG.md kosmorrolib/__version__.py
  26. git commit -m "build: bump version $$RELEASE_NUMBER"
  27. git tag "v$$RELEASE_NUMBER"
  28. git checkout features
  29. git merge main
  30. git checkout main
  31. @echo
  32. @echo -e "\e[1mVersion \e[36m$$RELEASE_NUMBER\e[39m successfully tagged!"
  33. @echo -e "Invoke \e[33mgit push origin master features v$$RELEASE_NUMBER\e[39m to finish."