A library that computes the ephemerides.
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 

43 lignes
1.2 KiB

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