forked from mpenning/ciscoconfparse
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD.ME
29 lines (29 loc) · 915 Bytes
/
BUILD.ME
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
mkdir local_copy
cd local_copy
hg init
hg pull http://bitbucket.org/mpenning/ciscoconfparse
hg update
hg pull git+ssh://[email protected]:mpenning/ciscoconfparse.git
hg update
### Version updates:
# - Update ciscoconfparse.version_tuple
# - Update .travis.yml
# - Update copyright year in README.rst
# - Update copyright year in sphinx-doc/license_copyright.rst
# - CHANGES
# Commit all changes
hg commit ...
python setup.py sdist; python setup.py register; python setup.py sdist upload
## Clean up repo after build
rm -rf ciscoconfparse/*pyc; rm -rf dist/ ciscoconfparse.egg-info/ setuptools*
rm -rf ciscoconfparse/ciscoconfparse.egg-info/
rm -rf .eggs/
# Push docs
python deploy_docs.py
# Push to bitbucket
cp .hgrc .hg/
hg bookmark -f master
hg push https://[email protected]/mpenning/ciscoconfparse
## On my system, with ~/.pypirc
# Push to github
hg push git+ssh://[email protected]:mpenning/ciscoconfparse.git