Skip to content

Commit 6d974bd

Browse files
committed
DOC: Minor update, show package badges, use "python3"
1 parent be69edb commit 6d974bd

File tree

3 files changed

+43
-31
lines changed

3 files changed

+43
-31
lines changed

CONTRIBUTING.rst

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,36 +3,36 @@ Contributing
33

44
If you find bugs, errors, omissions or other things that need improvement,
55
please create an issue or a pull request at
6-
http://github.com/spatialaudio/jackclient-python.
6+
https://github.com/spatialaudio/jackclient-python.
77
Contributions are always welcome!
88

9-
Instead of pip-installing the latest release from PyPI, you should get the newest
10-
development version from Github_::
9+
Instead of pip-installing the latest release from PyPI, you should get the
10+
newest development version from Github_::
1111

1212
git clone https://github.com/spatialaudio/jackclient-python.git
1313
cd jackclient-python
14-
python setup.py develop --user
14+
python3 setup.py develop --user
1515

16-
.. _Github: http://github.com/spatialaudio/jackclient-python/
16+
.. _Github: https://github.com/spatialaudio/jackclient-python/
1717

1818
This way, your installation always stays up-to-date, even if you pull new
1919
changes from the Github repository.
2020

2121
If you prefer, you can also replace the last command with::
2222

23-
pip install --user -e .
23+
python3 -m pip install --user -e .
2424

2525
... where ``-e`` stands for ``--editable``.
2626

27-
If you make changes to the documentation, you can re-create the HTML pages
28-
using Sphinx_.
27+
If you make changes to the documentation, you can locally re-create the HTML
28+
pages using Sphinx_.
2929
You can install it and a few other necessary packages with::
3030

31-
pip install -r doc/requirements.txt --user
31+
python3 -m pip install -r doc/requirements.txt --user
3232

3333
To create the HTML pages, use::
3434

35-
python setup.py build_sphinx
35+
python3 setup.py build_sphinx
3636

3737
The generated files will be available in the directory ``build/sphinx/html/``.
3838

@@ -41,7 +41,7 @@ The generated files will be available in the directory ``build/sphinx/html/``.
4141
There are no proper tests (yet?), but the code examples from the README file
4242
can be verified by::
4343

44-
python setup.py test
44+
python3 setup.py test
4545

4646
This uses py.test_; if you haven't installed it already, it will be downloaded
4747
and installed for you.

README.rst

Lines changed: 30 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,17 @@ Documentation:
77
http://jackclient-python.rtfd.org/
88

99
Code:
10-
http://github.com/spatialaudio/jackclient-python/
11-
12-
Python Package Index:
13-
http://pypi.python.org/pypi/JACK-Client/
10+
https://github.com/spatialaudio/jackclient-python/
1411

1512
License:
1613
MIT -- see the file ``LICENSE`` for details.
1714

15+
.. image:: https://badge.fury.io/py/JACK-Client.svg
16+
:target: https://pypi.python.org/pypi/JACK-Client/
17+
18+
.. image:: https://repology.org/badge/vertical-allrepos/python:jack-client.svg
19+
:target: https://repology.org/metapackage/python:jack-client
20+
1821
Requirements
1922
------------
2023

@@ -29,19 +32,24 @@ pip/setuptools:
2932
Those are needed for the installation of the Python module and its
3033
dependencies. Most systems will have these installed already, but if not,
3134
you should install it with your package manager or you can download and
32-
install pip and setuptools as described on the `pip installation`_ page.
33-
If you happen to have pip but not setuptools, use this command::
35+
install ``pip`` and ``setuptools`` as described on the `pip installation`_
36+
page.
37+
If you happen to have ``pip`` but not ``setuptools``, use this command::
3438

35-
pip install setuptools --user
39+
python3 -m pip install setuptools --user
40+
41+
To upgrade to a newer version of an already installed package (including
42+
``pip`` itself), use the ``--upgrade`` flag.
3643

3744
CFFI:
3845
The `C Foreign Function Interface for Python`_ is used to access the C-API
3946
of the JACK library from within Python. It supports CPython 2.6, 2.7, 3.x;
40-
and is distributed with PyPy_ 2.0 beta2 or later.
41-
You should install it with your package manager (if it's not installed
42-
already), or you can get it with::
47+
and is distributed with PyPy_.
48+
If it's not installed already, you should install it with your package
49+
manager (the package might be called ``python3-cffi`` or similar), or you can
50+
get it with::
4351

44-
pip install cffi --user
52+
python3 -m pip install cffi --user
4553

4654
JACK library:
4755
The JACK_ library must be installed on your system (and CFFI must be able
@@ -59,33 +67,37 @@ NumPy (optional):
5967
The only place where NumPy is needed is `jack.OwnPort.get_array()`.
6068
If you need NumPy, you should install it with your package manager or use a
6169
Python distribution that already includes NumPy (see above).
62-
Installing NumPy with pip requires a compiler and several additional
63-
libraries and is therefore not recommended for beginners.
70+
You can also install NumPy with ``pip``, but depending on your platform, this
71+
might require a compiler and several additional libraries::
72+
73+
python3 -m pip install NumPy --user
6474

6575
.. _JACK: http://jackaudio.org/
6676
.. _NumPy: http://www.numpy.org/
67-
.. _Python: http://www.python.org/
68-
.. _Anaconda: http://docs.continuum.io/anaconda/
77+
.. _Python: https://www.python.org/
78+
.. _Anaconda: https://www.anaconda.com/download/
6979
.. _WinPython: http://winpython.github.io/
7080
.. _C Foreign Function Interface for Python: http://cffi.readthedocs.org/
7181
.. _PyPy: http://pypy.org/
7282
.. _JACK download page: http://jackaudio.org/downloads/
73-
.. _pip installation: http://www.pip-installer.org/en/latest/installing.html
83+
.. _pip installation: https://pip.pypa.io/en/latest/installing/
7484

7585
Installation
7686
------------
7787

7888
Once you have installed the above-mentioned dependencies, you can use pip
7989
to download and install the latest release with a single command::
8090

81-
pip install JACK-Client --user
91+
python3 -m pip install JACK-Client --user
8292

8393
If you want to install it system-wide for all users (assuming you have the
8494
necessary rights), you can just drop the ``--user`` option.
95+
If you have installed the module already, you can use the ``--upgrade`` flag to
96+
get the newest release.
8597

8698
To un-install, use::
8799

88-
pip uninstall JACK-Client
100+
python3 -m pip uninstall JACK-Client
89101

90102
If you want to avoid installation altogether, you can simply copy ``jack.py``
91103
to your working directory (or to any directory in your Python path).

jack.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -896,8 +896,8 @@ def set_process_callback(self, callback):
896896
If you can live with some random audio drop-outs now and
897897
then, feel free to continue using Python!
898898
899-
__ http://en.wikipedia.org/wiki/Global_Interpreter_Lock
900-
__ http://en.wikipedia.org/wiki/Garbage_collection_(computer_science)
899+
__ https://en.wikipedia.org/wiki/Global_Interpreter_Lock
900+
__ https://en.wikipedia.org/wiki/Garbage_collection_(computer_science)
901901
902902
.. note:: This function cannot be called while the client is
903903
activated (after `activate()` has been called).

0 commit comments

Comments
 (0)