Skip to content

Commit ee7b3d7

Browse files
committed
update
1 parent 96798e3 commit ee7b3d7

File tree

3 files changed

+55
-3
lines changed

3 files changed

+55
-3
lines changed

Makefile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,7 @@ publish:
3232
poetry version patch
3333
poetry publish --build
3434
python3 update.py
35-
git add .
36-
git commit -m 'overall update'
37-
git push
35+
python3 release.py
3836
.PHONY: readme
3937
readme:
4038
python3 update.py

RELEASE.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
2+
<h1 align="center">
3+
<br>
4+
<a href="https://github.com/SilkePilon/youdotcom/"><img src="https://github.com/SilkePilon/youdotcom/blob/main/youdotcom.png?raw=true" alt="Markdownify" width="200"></a>
5+
<br>
6+
<br>
7+
YouDotCom for python v1.0.23
8+
<br>
9+
</h1>
10+
11+
<h4 align="center">An python library for <a href="http://you.com/" target="_blank">you.com</a> and all of its apps.</h4>
12+
13+
14+
15+
<!-- ![screenshot](https://raw.githubusercontent.com/SilkePilon/youdotcom/main/assets/images/YouDotCom.jpg) -->
16+
17+
## Release notes
18+
changed the way the webdriver works.
19+
Now fully support headless mode and will not open a window anymoreNow fully support headless mode and will not open a window anymore

release.py

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
import os
2+
import subprocess
3+
import sys
4+
from importlib import metadata as importlib_metadata
5+
6+
from github_release import gh_release_create
7+
8+
version = subprocess.run(["poetry", "version", "-s"], capture_output=True, text=True).stdout.rstrip()
9+
10+
title = input("title: ")
11+
12+
13+
notes = input(r"changes (use \ for a enter): ")
14+
15+
16+
with open("RELEASE.md") as file:
17+
# read a list of lines into data
18+
data = file.readlines()
19+
20+
21+
notes = str(notes).replace("\\", "\n")
22+
print(len(data))
23+
data[17] = f"{notes}"
24+
25+
26+
with open("RELEASE.md", "w") as file:
27+
file.writelines(data)
28+
29+
30+
with open("RELEASE.md") as file2:
31+
# read a list of lines into data
32+
text = file2.read()
33+
34+
35+
gh_release_create("You-OpenSource/You-Python", f"{version}", publish=True, name=f"{title} - {version}", body=f"{text}")

0 commit comments

Comments
 (0)