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.
 
 

54 lignes
1.6 KiB

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