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.
 
 

51 lignes
1.6 KiB

  1. .PHONY: test
  2. tests: legacy-tests
  3. python3 tests.py
  4. legacy-tests:
  5. unset KOSMORRO_LATITUDE; \
  6. unset KOSMORRO_LONGITUDE; \
  7. unset KOSMORRO_TIMEZONE; \
  8. LANG=C pipenv run python3 -m coverage run -m unittest tests
  9. .PHONY: build
  10. build:
  11. python3 setup.py sdist bdist_wheel
  12. env:
  13. @if [[ "$$RELEASE_NUMBER" == "" ]]; \
  14. then echo "Missing environment variable: RELEASE_NUMBER."; \
  15. echo 'Example: export RELEASE_NUMBER="1.0.0" (without the leading "v")'; \
  16. exit 1; \
  17. fi
  18. release: env
  19. @echo -e "\e[1mCreating release with version number \e[36m$$RELEASE_NUMBER\e[0m"
  20. @echo
  21. sed "s/^VERSION =.*/VERSION = '$$RELEASE_NUMBER'/g" kosmorrolib/version.py > version.py
  22. mv version.py kosmorrolib/version.py
  23. pipenv run python setup.py extract_messages --output-file=kosmorrolib/locales/messages.pot > /dev/null
  24. conventional-changelog -p angular -i CHANGELOG.md -s
  25. sed "0,/\\[\\]/s/\\[\\]/[v$$RELEASE_NUMBER]/g" CHANGELOG.md > /tmp/CHANGELOG.md
  26. sed -e "s/...v)/...v$$RELEASE_NUMBER)/" /tmp/CHANGELOG.md > CHANGELOG.md
  27. rm /tmp/CHANGELOG.md
  28. @echo
  29. @echo -e "\e[1mRelease \e[36m$$RELEASE_NUMBER\e[39m is ready to commit."
  30. @echo -e "Please review the changes, then invoke \e[33mmake finish-release\e[39m."
  31. finish-release: env
  32. git add CHANGELOG.md kosmorrolib/version.py kosmorrolib/locales/messages.pot
  33. git commit -m "build: bump version $$RELEASE_NUMBER"
  34. git tag "v$$RELEASE_NUMBER"
  35. git checkout features
  36. git merge master
  37. git checkout master
  38. @echo
  39. @echo -e "\e[1mVersion \e[36m$$RELEASE_NUMBER\e[39m successfully tagged!"
  40. @echo -e "Invoke \e[33mgit push origin master features v$$RELEASE_NUMBER\e[39m to finish."