forked from ktbyers/netmiko
-
Notifications
You must be signed in to change notification settings - Fork 0
/
release_process.txt
55 lines (39 loc) · 1.15 KB
/
release_process.txt
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# Use pynetcio machine
# pylama code (from ./netmiko)
pylama
# From base of project run
python setup.py sdist
# Now you should see the new .tar.gz file and .egg file in ./dist
# Create a blank virtualenv to test
cd ~/VENV
virtualenv -p /usr/bin/python2.7 --no-site-packages netmiko_0_3_0_packaging
deactivate
source ~/VENV/netmiko_0_3_0_packaging/bin/activate
# Test install
cd ~/netmiko
pip install dist/netmiko-0.3.0.tar.gz
# Back to your normal virtualenv
deactivate
source ~/VENV/py27_netmiko/bin/activate
# Register to pypitest
python setup.py register -r pypitest
# Use Twine to upload to pypittest
twine upload -r pypitest dist/netmiko-0.3.0.tar.gz
# Register to pypi
python setup.py register
# Use Twine to upload to pypi
twine upload dist/netmiko-0.3.0.tar.gz
# Test clean install from pypi
cd ~/VENV
rm -r netmiko_0_3_0_packaging
virtualenv -p /usr/bin/python2.7 --no-site-packages netmiko_0_3_0_packaging
deactivate
source ~/VENV/netmiko_0_3_0_packaging/bin/activate
pip install netmiko
# Verify version
>>> import netmiko
>>> netmiko.__version__
'0.5.1'
# Create a tag for the version
$ git tag -a v0.5.1 -m "Version 0.5.1 Release"
$ git push --tags