1 | Installation instructions
|
---|
2 | =========================
|
---|
3 |
|
---|
4 | .. contents::
|
---|
5 |
|
---|
6 | .. _install_dependencies:
|
---|
7 |
|
---|
8 | First, install dependencies
|
---|
9 | ---------------------------
|
---|
10 |
|
---|
11 | So far, the only dependency you will need in order to run postman is Python_
|
---|
12 |
|
---|
13 | Postman has been tested with python *2.7.x*, but it should work with versions
|
---|
14 | *2.6.x* too.
|
---|
15 |
|
---|
16 | Please, refer to your operating system package system documentation to learn
|
---|
17 | more about how to install python.
|
---|
18 |
|
---|
19 | .. _install_postman:
|
---|
20 |
|
---|
21 | Second, install Postman
|
---|
22 | -----------------------
|
---|
23 |
|
---|
24 | .. _install_with_pip:
|
---|
25 |
|
---|
26 | Installing using pip
|
---|
27 | ++++++++++++++++++++
|
---|
28 |
|
---|
29 | You can install Postman using pip_::
|
---|
30 |
|
---|
31 | pip install -e https://bitbucket.org/codigo23/postman#egg=postman
|
---|
32 |
|
---|
33 | .. note::
|
---|
34 |
|
---|
35 | Postman has not been recorded/uploaded to pypi_ yet, so, in order to install
|
---|
36 | it using pip you will have to provide the URL for the public Postman repo.
|
---|
37 |
|
---|
38 | .. _install_with_easy_install:
|
---|
39 |
|
---|
40 | Installing using easy_install
|
---|
41 | +++++++++++++++++++++++++++++
|
---|
42 |
|
---|
43 | You can not install Postman using easy_install_ yet (until we do record/upload
|
---|
44 | it to pypi)
|
---|
45 |
|
---|
46 | .. _install_inside_virtualenv:
|
---|
47 |
|
---|
48 | Installing inside a virtualenv
|
---|
49 | ++++++++++++++++++++++++++++++
|
---|
50 |
|
---|
51 | You can install Postman inside a virtualenv_. Just create a virtualenv::
|
---|
52 |
|
---|
53 | virtualenv /path/to/your/env
|
---|
54 |
|
---|
55 | Then activate it::
|
---|
56 |
|
---|
57 | source /path/to/your/env/bin/activate
|
---|
58 |
|
---|
59 | .. note::
|
---|
60 |
|
---|
61 | If your shell is **csh**/**tcsh** remember you have to activate the
|
---|
62 | environment this way::
|
---|
63 |
|
---|
64 | source /path/to/your/env/bin/activate.csh
|
---|
65 |
|
---|
66 | And, once the environment has been activated, use pip to install Postman::
|
---|
67 |
|
---|
68 | env$ pip install -e https://bitbucket.org/codigo23/postman#egg=postman
|
---|
69 |
|
---|
70 | .. _install_from_sources:
|
---|
71 |
|
---|
72 | Installing from sources
|
---|
73 | +++++++++++++++++++++++
|
---|
74 |
|
---|
75 | When installing from sources, you can download one of the official releases
|
---|
76 | or you can go with the *bleeding edge* and get a copy of the official source
|
---|
77 | code repository.
|
---|
78 |
|
---|
79 | .. _install_from_release:
|
---|
80 |
|
---|
81 | Releases
|
---|
82 | ********
|
---|
83 |
|
---|
84 | **There are no releases yet**. You will have to install it from the repository.
|
---|
85 |
|
---|
86 | .. _install_from_repository:
|
---|
87 |
|
---|
88 | From repository
|
---|
89 | ***************
|
---|
90 |
|
---|
91 | The source code of Postman is hosted in bitbucket_ [1]_. In order to grab
|
---|
92 | the latest sources you need Mercurial_.
|
---|
93 |
|
---|
94 | To get a copy of the sources, just *clone* the repository::
|
---|
95 |
|
---|
96 | hg clone https://bitbucket.org/codigo23/postman postman-repo
|
---|
97 |
|
---|
98 | Then, go inside the *postman-repo* directory and run::
|
---|
99 |
|
---|
100 | python setup.py install
|
---|
101 |
|
---|
102 | .. warning::
|
---|
103 |
|
---|
104 | If you want to install it *system-wide*, probably you will need *root*
|
---|
105 | privileges (check your OS documentation to learn more about how to get
|
---|
106 | *root* privileges - for example using sudo_)
|
---|
107 |
|
---|
108 | .. note::
|
---|
109 |
|
---|
110 | This process will work inside a virtualenv_ too.
|
---|
111 |
|
---|
112 | .. _install_setting_up_postman:
|
---|
113 |
|
---|
114 | Setting up Postman
|
---|
115 | ------------------
|
---|
116 |
|
---|
117 | TBW
|
---|
118 |
|
---|
119 | .. _install_running_postman:
|
---|
120 |
|
---|
121 | Running Postman
|
---|
122 | ---------------
|
---|
123 |
|
---|
124 | TBW
|
---|
125 |
|
---|
126 | .. _install_running_tests:
|
---|
127 |
|
---|
128 | Running tests (developers only)
|
---|
129 | -------------------------------
|
---|
130 |
|
---|
131 | TBW
|
---|
132 |
|
---|
133 | .. _Python: http://python.org
|
---|
134 | .. _pip: http://www.pip-installer.org/en/latest/index.html
|
---|
135 | .. _pypi: http://pypi.python.org/pypi
|
---|
136 | .. _easy_install: http://peak.telecommunity.com/DevCenter/EasyInstall
|
---|
137 | .. _virtualenv: http://www.virtualenv.org/en/latest/index.html
|
---|
138 | .. _bitbucket: https://bitbucket.org
|
---|
139 | .. _Mercurial: http://mercurial.selenic.com
|
---|
140 | .. _sudo: http://sudo.ws
|
---|
141 |
|
---|
142 | .. [1] https://bitbucket.org/codigo23/postman
|
---|