File: installation.rst

package info (click to toggle)
python-twitter 3.3-5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 13,044 kB
  • sloc: python: 6,244; makefile: 213
file content (51 lines) | stat: -rw-r--r-- 994 bytes parent folder | download | duplicates (3)
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
Installation & Testing
------------

Installation
============

**From PyPI** ::

    $ pip install python-twitter


**From source**

Install the dependencies:

- `Requests <http://docs.python-requests.org/en/latest/>`_
- `Requests OAuthlib <https://requests-oauthlib.readthedocs.io/en/latest/>`_

Alternatively use `pip`::

    $ pip install -r requirements.txt

Download the latest `python-twitter` library from: https://github.com/bear/python-twitter/

Extract the source distribution and run::

    $ python setup.py build
    $ python setup.py install


Testing
=======

The following requires ``pip install pytest`` and ``pip install pytest-cov``. Run::

    $ make test

If you would like to see coverage information:: 

    $ make coverage


Getting the code
================

The code is hosted at `Github <https://github.com/bear/python-twitter>`_.

Check out the latest development version anonymously with::

$ git clone git://github.com/bear/python-twitter.git
$ cd python-twitter