Debian Codegraph @

docs/installation.rst

raw
1 Installation
2 ============
3
4
5 Python version support
6 ######################
7
8 We recommend using the latest version of Python.
9 Schedule is tested on Python 3.7, 3.8, 3.9, 3.10, 3.11 and 3.12
10
11 Want to use Schedule on earlier Python versions? See the History.
12
13
14 Dependencies
15 ############
16
17 Schedule has 1 optional dependency:
18
19 Only when you use ``.at()`` with a timezone, you must have `pytz <https://pypi.org/project/pytz/>`_ installed.
20
21 Installation instructions
22 #########################
23
24 Problems? Check out :doc:`faq`.
25
26 PIP (preferred)
27 ***************
28 The recommended way to install this package is to use pip.
29 Use the following command to install it:
30
31 .. code-block:: bash
32
33 $ pip install schedule
34
35 Schedule is now installed.
36 Check out the :doc:`examples </examples>` or go to the :doc:`the documentation overview </index>`.
37
38
39 Using another package manager
40 *****************************
41 Schedule is available through some linux package managers.
42 These packages are not maintained by the maintainers of this project.
43 It cannot be guarantee that these packages are up-to-date (and will stay up-to-date) with the latest released version.
44 If you don't mind having an old version, you can use it.
45
46 Ubuntu
47 -------
48
49 **OUTDATED!** At the time of writing, the packages for 20.04LTS and below use version 0.3.2 (2015).
50
51 .. code-block:: bash
52
53 $ apt-get install python3-schedule
54
55 See `package page <https://packages.ubuntu.com/search?keywords=python3-schedule>`__.
56
57 Debian
58 ------
59
60 **OUTDATED!** At the time of writing, the packages for buster and below use version 0.3.2 (2015).
61
62 .. code-block:: bash
63
64 $ apt-get install python3 schedule
65
66 See `package page <https://packages.debian.org/search?searchon=names&keywords=+python3-schedule>`__.
67
68 Arch
69 ----
70
71 On the Arch Linux User repository (AUR) the package is available using the name `python-schedule`.
72 See the package page `here <https://aur.archlinux.org/packages/python-schedule/>`__.
73 For yay users, run:
74
75 .. code-block:: bash
76
77 $ yay -S python-schedule
78
79 Conda (Anaconda)
80 ----------------
81
82 Schedule is `published <https://anaconda.org/conda-forge/schedule>`__ in conda (the Anaconda package manager).
83
84 For installation instructions, visit `the conda-forge Schedule repo <https://github.com/conda-forge/schedule-feedstock#installing-schedule>`__.
85 The release of Schedule on conda is maintained by the `conda-forge project <https://conda-forge.org/>`__.
86
87 Install manually
88 **************************
89 If you don't have access to a package manager or need more control, you can manually copy the library into your project.
90 This is easy as the schedule library consists of a single sourcefile MIT licenced.
91 However, this method is highly discouraged as you won't receive automatic updates.
92
93 1. Go to the `Github repo <https://github.com/dbader/schedule>`_.
94 2. Open file `schedule/__init__.py` and copy the code.
95 3. In your project, create a packaged named `schedule` and paste the code in a file named `__init__.py`.