• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

doc/H03-May-2022-9,2396,305

joblib/H07-Oct-2021-23,07615,817

joblib.egg-info/H03-May-2022-164117

MANIFEST.inH A D21-Mar-2015128 76

PKG-INFOH A D07-Oct-20216.1 KiB164117

README.rstH A D07-Oct-20214.1 KiB13791

conftest.pyH A D01-Jul-20212 KiB6642

setup.cfgH A D07-Oct-2021475 3123

setup.pyH A D01-Jul-20211.8 KiB5952

README.rst

1|PyPi| |Azure| |ReadTheDocs| |Codecov|
2
3.. |PyPi| image:: https://badge.fury.io/py/joblib.svg
4   :target: https://badge.fury.io/py/joblib
5   :alt: Joblib version
6
7.. |Azure| image:: https://dev.azure.com/joblib/joblib/_apis/build/status/joblib.joblib?branchName=master
8   :target: https://dev.azure.com/joblib/joblib/_build?definitionId=3&_a=summary&branchFilter=40
9   :alt: Azure CI status
10
11.. |ReadTheDocs| image:: https://readthedocs.org/projects/pip/badge/?version=latest
12   :target: https://joblib.readthedocs.io/en/latest/
13   :alt: Doc status
14
15.. |Codecov| image:: https://codecov.io/gh/joblib/joblib/branch/master/graph/badge.svg
16   :target: https://codecov.io/gh/joblib/joblib
17   :alt: Codecov coverage
18
19
20The homepage of joblib with user documentation is located on:
21
22https://joblib.readthedocs.io
23
24Getting the latest code
25=======================
26
27To get the latest code using git, simply type::
28
29    git clone git://github.com/joblib/joblib.git
30
31If you don't have git installed, you can download a zip or tarball
32of the latest code: http://github.com/joblib/joblib/archives/master
33
34Installing
35==========
36
37You can use `pip` to install joblib::
38
39    pip install joblib
40
41from any directory or::
42
43    python setup.py install
44
45from the source directory.
46
47Dependencies
48============
49
50- Joblib has no mandatory dependencies besides Python (supported versions are
51  3.6+).
52- Joblib has an optional dependency on Numpy (at least version 1.6.1) for array
53  manipulation.
54- Joblib includes its own vendored copy of
55  `loky <https://github.com/tomMoral/loky>`_ for process management.
56- Joblib can efficiently dump and load numpy arrays but does not require numpy
57  to be installed.
58- Joblib has an optional dependency on
59  `python-lz4 <https://pypi.python.org/pypi/lz4>`_ as a faster alternative to
60  zlib and gzip for compressed serialization.
61- Joblib has an optional dependency on psutil to mitigate memory leaks in
62  parallel worker processes.
63- Some examples require external dependencies such as pandas. See the
64  instructions in the `Building the docs`_ section for details.
65
66Workflow to contribute
67======================
68
69To contribute to joblib, first create an account on `github
70<http://github.com/>`_. Once this is done, fork the `joblib repository
71<http://github.com/joblib/joblib>`_ to have your own repository,
72clone it using 'git clone' on the computers where you want to work. Make
73your changes in your clone, push them to your github account, test them
74on several computers, and when you are happy with them, send a pull
75request to the main repository.
76
77Running the test suite
78======================
79
80To run the test suite, you need the pytest (version >= 3) and coverage modules.
81Run the test suite using::
82
83    pytest joblib
84
85from the root of the project.
86
87Building the docs
88=================
89
90To build the docs you need to have sphinx (>=1.4) and some dependencies
91installed::
92
93    pip install -U -r .readthedocs-requirements.txt
94
95The docs can then be built with the following command::
96
97    make doc
98
99The html docs are located in the ``doc/_build/html`` directory.
100
101
102Making a source tarball
103=======================
104
105To create a source tarball, eg for packaging or distributing, run the
106following command::
107
108    python setup.py sdist
109
110The tarball will be created in the `dist` directory. This command will
111compile the docs, and the resulting tarball can be installed with
112no extra dependencies than the Python standard library. You will need
113setuptool and sphinx.
114
115Making a release and uploading it to PyPI
116=========================================
117
118This command is only run by project manager, to make a release, and
119upload in to PyPI::
120
121    python setup.py sdist bdist_wheel
122    twine upload dist/*
123
124
125Note that the documentation should automatically get updated at each git
126push. If that is not the case, try building th doc locally and resolve
127any doc build error (in particular when running the examples).
128
129Updating the changelog
130======================
131
132Changes are listed in the CHANGES.rst file. They must be manually updated
133but, the following git command may be used to generate the lines::
134
135    git log --abbrev-commit --date=short --no-merges --sparse
136
137