METADATA 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  1. Metadata-Version: 2.4
  2. Name: joblib
  3. Version: 1.5.3
  4. Summary: Lightweight pipelining with Python functions
  5. Author-email: Gael Varoquaux <gael.varoquaux@normalesup.org>
  6. License-Expression: BSD-3-Clause
  7. Project-URL: Homepage, https://joblib.readthedocs.io
  8. Project-URL: Source, https://github.com/joblib/joblib
  9. Platform: any
  10. Classifier: Development Status :: 5 - Production/Stable
  11. Classifier: Environment :: Console
  12. Classifier: Intended Audience :: Developers
  13. Classifier: Intended Audience :: Science/Research
  14. Classifier: Intended Audience :: Education
  15. Classifier: Operating System :: OS Independent
  16. Classifier: Programming Language :: Python :: 3
  17. Classifier: Programming Language :: Python :: 3.9
  18. Classifier: Programming Language :: Python :: 3.10
  19. Classifier: Programming Language :: Python :: 3.11
  20. Classifier: Programming Language :: Python :: 3.12
  21. Classifier: Programming Language :: Python :: 3.13
  22. Classifier: Topic :: Scientific/Engineering
  23. Classifier: Topic :: Utilities
  24. Classifier: Topic :: Software Development :: Libraries
  25. Requires-Python: >=3.9
  26. Description-Content-Type: text/x-rst
  27. License-File: LICENSE.txt
  28. Dynamic: license-file
  29. |PyPi| |CIStatus| |ReadTheDocs| |Codecov|
  30. .. |PyPi| image:: https://badge.fury.io/py/joblib.svg
  31. :target: https://badge.fury.io/py/joblib
  32. :alt: Joblib version
  33. .. |CIStatus| image:: https://github.com/joblib/joblib/actions/workflows/test.yml/badge.svg
  34. :target: https://github.com/joblib/joblib/actions/workflows/test.yml?query=branch%3Amain
  35. :alt: CI status
  36. .. |ReadTheDocs| image:: https://readthedocs.org/projects/joblib/badge/?version=latest
  37. :target: https://joblib.readthedocs.io/en/latest/?badge=latest
  38. :alt: Documentation Status
  39. .. |Codecov| image:: https://codecov.io/gh/joblib/joblib/branch/main/graph/badge.svg
  40. :target: https://codecov.io/gh/joblib/joblib
  41. :alt: Codecov coverage
  42. The homepage of joblib with user documentation is located on:
  43. https://joblib.readthedocs.io
  44. Getting the latest code
  45. =======================
  46. To get the latest code using git, simply type::
  47. git clone https://github.com/joblib/joblib.git
  48. If you don't have git installed, you can download a zip
  49. of the latest code: https://github.com/joblib/joblib/archive/refs/heads/main.zip
  50. Installing
  51. ==========
  52. You can use `pip` to install joblib from any directory::
  53. pip install joblib
  54. or install it in editable mode from the source directory::
  55. pip install -e .
  56. Dependencies
  57. ============
  58. - Joblib has no mandatory dependencies besides Python (supported versions are
  59. 3.9+).
  60. - Joblib has an optional dependency on Numpy (at least version 1.6.1) for array
  61. manipulation.
  62. - Joblib includes its own vendored copy of
  63. `loky <https://github.com/tomMoral/loky>`_ for process management.
  64. - Joblib can efficiently dump and load numpy arrays but does not require numpy
  65. to be installed.
  66. - Joblib has an optional dependency on
  67. `python-lz4 <https://pypi.python.org/pypi/lz4>`_ as a faster alternative to
  68. zlib and gzip for compressed serialization.
  69. - Joblib has an optional dependency on psutil to mitigate memory leaks in
  70. parallel worker processes.
  71. - Some examples require external dependencies such as pandas. See the
  72. instructions in the `Building the docs`_ section for details.
  73. Workflow to contribute
  74. ======================
  75. To contribute to joblib, first create an account on `github
  76. <https://github.com/>`_. Once this is done, fork the `joblib repository
  77. <https://github.com/joblib/joblib>`_ to have your own repository,
  78. clone it using ``git clone``. Make your changes in a branch of your clone, push
  79. them to your github account, test them locally, and when you are happy with
  80. them, send a pull request to the main repository.
  81. You can use `pre-commit <https://pre-commit.com/#install>`_ to run code style checks
  82. before each commit::
  83. pip install pre-commit
  84. pre-commit install
  85. pre-commit checks can be disabled for a single commit with::
  86. git commit -n
  87. Running the test suite
  88. ======================
  89. To run the test suite, you need the pytest (version >= 3) and coverage modules.
  90. Run the test suite using::
  91. pytest joblib
  92. from the root of the project.
  93. Building the docs
  94. =================
  95. To build the docs you need to have sphinx (>=1.4) and some dependencies
  96. installed::
  97. pip install -U -r .readthedocs-requirements.txt
  98. The docs can then be built with the following command::
  99. make doc
  100. The html docs are located in the ``doc/_build/html`` directory.
  101. Making a source tarball
  102. =======================
  103. To create a source tarball, eg for packaging or distributing, run the
  104. following command::
  105. pip install build
  106. python -m build --sdist
  107. The tarball will be created in the `dist` directory. This command will create
  108. the resulting tarball that can be installed with no extra dependencies than the
  109. Python standard library.
  110. Making a release and uploading it to PyPI
  111. =========================================
  112. This command is only run by project manager, to make a release, and
  113. upload in to PyPI::
  114. pip install build
  115. python -m build --sdist --wheel
  116. twine upload dist/*
  117. Note that the documentation should automatically get updated at each git
  118. push. If that is not the case, try building th doc locally and resolve
  119. any doc build error (in particular when running the examples).
  120. Updating the changelog
  121. ======================
  122. Changes are listed in the CHANGES.rst file. They must be manually updated
  123. but, the following git command may be used to generate the lines::
  124. git log --abbrev-commit --date=short --no-merges --sparse