All checks were successful
Unit Testing / test (3.11) (pull_request) Successful in 45s
Unit Testing / test (3.10) (pull_request) Successful in 48s
Unit Testing / test (3.8) (pull_request) Successful in 46s
Unit Testing / test (3.12) (pull_request) Successful in 49s
Unit Testing / test (3.9) (pull_request) Successful in 48s
Pull Request Merged / autoupdate_minor (pull_request) Successful in 4s
30 lines
832 B
Python
30 lines
832 B
Python
"""
|
|
Actions performed automatically on pull request merged. Update changed date and minor revision number.
|
|
"""
|
|
|
|
import os
|
|
from eos import __version__
|
|
from datetime import datetime
|
|
|
|
INIT_HEADER = '''"""
|
|
Package to handle data redction at AMOR instrument to be used by __main__.py script.
|
|
"""
|
|
|
|
'''
|
|
|
|
def main():
|
|
print("Running PR_merged.py")
|
|
print(f" Previous version: {__version__}")
|
|
version = __version__.split('.')
|
|
version[2] = str(int(version[2])+1)
|
|
version = '.'.join(version)
|
|
print(f" New version: {version}")
|
|
now=datetime.now()
|
|
with open(os.path.join('eos','__init__.py'), 'w') as f:
|
|
f.write(INIT_HEADER)
|
|
f.write(f"__version__ = '{version}'\n")
|
|
f.write(f"__date__ = '{now.strftime('%Y-%m-%d')}'\n")
|
|
|
|
|
|
if __name__ == '__main__':
|
|
main() |