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.
 
 

56 lignes
1.7 KiB

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