3
3
4
4
import pyperclip
5
5
6
+ import version
6
7
from utilities import read_file , check_step , run , pushdir , popdir
7
8
from prepare_release import PrepareRelease
8
9
@@ -39,6 +40,14 @@ def push_main_project(self):
39
40
run (["git" , "push" , "origin" , "master" ])
40
41
popdir ()
41
42
43
+ def test_conan_and_create_pr (self ):
44
+ pushdir (self .details .conan_data_dir )
45
+ new_version_without_v = version .get_version_without_v (self .details .new_version )
46
+ run (F'conan create . { new_version_without_v } @' )
47
+ popdir ()
48
+
49
+ check_step ("that you have created a Pull Request for conan-center-index?" )
50
+
42
51
def publish_main_project (self ):
43
52
self .commit_main_project ()
44
53
self .push_main_project ()
@@ -52,7 +61,7 @@ def publish_main_project(self):
52
61
run (["open" , self .details .release_dir ])
53
62
check_step ("that the release is published" )
54
63
55
- check_step ( "that you have created a Pull Request for conan-center-index?" )
64
+ self . test_conan_and_create_pr ( )
56
65
57
66
# Draft the tweet
58
67
check_step ("that you have created a screenshot of the release notes, for the Tweet" )
@@ -63,7 +72,6 @@ def publish_main_project(self):
63
72
run (["open" , "https://www.reddit.com/r/cpp/" ])
64
73
check_step ("if you want to announce this on Reddit r/cpp" )
65
74
66
-
67
75
def push_everything_live (self ):
68
76
self .publish_main_project ()
69
77
self .publish_starter_project ()
0 commit comments