festival/specx/README.md
2019-12-17 10:23:04 +08:00

80 lines
1.6 KiB
Markdown

# gitee_new.py
## Prerequisites
### Configure you git
```
git config -l user.name "Your Gitee account name"
git config -l user.email "Gitee registration email"
```
### Upload your sshkey to Gitee
In order to simplify the process, you should upload your sshkey to Gitee.
Otherwise, you have to type your name and password each time you run `git push`.
```
ssh-keygen -t rsa -C "your gitee email" # Press enter several times until the command finished
cat ~/.ssh/id_rsa.pub
# paste to Gitee
```
## Tutorial
This program is intended to create repository on Gitee.
The local Git repository is self-managed by this tool, so there is no need to
intervene manually.
### Usage
```
# To add a package: gcc
python3 gitee_new.py gcc
```
Then open your own Git repository page and click `Pull Request` button. You are done.
You can also add many packages at once.
```
python3 gitee_new.py package1 package2 package3
```
### NOTE
If you configure you `user.email` to a nickname instead of you Gitee account name,
you must use `-u` to specify you Gitee name explicitly.
```
python3 gitee_new.py gcc -u qiegewala
```
### Advanced
`-v` to turn on verbose.
`-r` to use `reset` mode instead of `merge` mode which is the default.
`-c` to clean old git repository. You should use this option only when the repository
has been corrupted.
`--without-push` to stop before pushing to your remote repository.
# download.py
## Prerequisites
```
yum install libxml2-dev libxslt-devel python3-devel
pip3 install beautifulsoup4 requests lxml
```
## Usage
The only argument is package name.
```
python3 download.py gcc
```