-
-
Notifications
You must be signed in to change notification settings - Fork 781
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #277 Weekly release 0.1.4-beta
[Version] weekly release 0.1.4-beta
- Loading branch information
Showing
31 changed files
with
435 additions
and
153 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
import datetime | ||
import os | ||
|
||
from git import Repo | ||
|
||
from config.cst import ORIGIN_URL, GIT_ORIGIN | ||
|
||
short_version = input("Enter the new short version (R.D.MA_MI) : ") | ||
dev_phase = input("Enter the development phase : ") | ||
full_version = "{0}-{1}".format(short_version, dev_phase) | ||
issues = input("Concerned issues : ") | ||
new_features = input("New features : ") | ||
bug_fix = input("Bug fix : ") | ||
|
||
today = datetime.date.today() | ||
|
||
changelog_new_lines = "\n" \ | ||
"Changelog for {0}-{1}\n" \ | ||
" ====================\n" \ | ||
" *Released date : {2}*\n" \ | ||
" # Concerned issues :\n" \ | ||
" {3}\n" \ | ||
" # New features :\n" \ | ||
" {4}\n" \ | ||
" # Bug fix :\n" \ | ||
" {5} \n".format(short_version, | ||
dev_phase, | ||
today.strftime('%M %d %Y'), | ||
issues, | ||
new_features, | ||
bug_fix) | ||
|
||
with open("docs/CHANGELOG.md", "r") as file: | ||
changelog_lines = file.readlines() | ||
|
||
changelog_lines[1] = changelog_new_lines | ||
|
||
with open("docs/CHANGELOG.md", "w") as file: | ||
for line in changelog_lines: | ||
file.write(line) | ||
|
||
# TODO | ||
# - modify cst.py | ||
# - modify README | ||
|
||
repo = Repo(os.getcwd()) | ||
repo.commit("{0} {1}".format("[Version] New version ", full_version)) | ||
repo.tag(full_version) | ||
origin = repo.create_remote(GIT_ORIGIN, url=ORIGIN_URL) | ||
origin.push() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,7 @@ plotly | |
newspaper3k | ||
praw | ||
python-telegram-bot | ||
|
||
gitpython | ||
dash | ||
dash-table-experiments | ||
flask | ||
|
Oops, something went wrong.