annotate sync_to_github.py @ 21:cb71722bb75c

use pipenv
author drewp@bigasterisk.com
date Tue, 29 Mar 2022 21:13:48 -0700
parents 2c4d383d464c
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
7f479502a8ab wip sync_to_github (from hg)
drewp@bigasterisk.com
parents:
diff changeset
1 #!/usr/bin/python3
7f479502a8ab wip sync_to_github (from hg)
drewp@bigasterisk.com
parents:
diff changeset
2 from pathlib import Path
7f479502a8ab wip sync_to_github (from hg)
drewp@bigasterisk.com
parents:
diff changeset
3
7f479502a8ab wip sync_to_github (from hg)
drewp@bigasterisk.com
parents:
diff changeset
4 from sync import Project, getSshAuthSock
7f479502a8ab wip sync_to_github (from hg)
drewp@bigasterisk.com
parents:
diff changeset
5
9
2c4d383d464c move config stuff into Project
drewp@bigasterisk.com
parents: 8
diff changeset
6 p = Project(Path('.').absolute())
8
cc3321b8adc1 fix silly case
drewp@bigasterisk.com
parents: 7
diff changeset
7 p.makeGithubRepo()
cc3321b8adc1 fix silly case
drewp@bigasterisk.com
parents: 7
diff changeset
8 p.hgToGithub()