A library that computes the ephemerides.
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 

46 linhas
1.2 KiB

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