Skip to content

Commit dc44e61

Browse files
committed
Add Python Libraries
1 parent 2e23678 commit dc44e61

File tree

3 files changed

+105
-0
lines changed

3 files changed

+105
-0
lines changed

docs/.vuepress/config-client/sidebar.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ export default {
4545
"/els-for-languages/angular/",
4646
"/els-for-languages/angularjs/",
4747
"/els-for-languages/apache-tomcat/",
48+
"/els-for-languages/python-libraries/",
4849
]
4950
},
5051
],

docs/els-for-languages/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@
99
* [.NET](./dotnet)
1010
* [Angular](./angular)
1111
* [AngularJS](./angularjs)
12+
* [Python Libraries](./python-libraries)
Lines changed: 103 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,103 @@
1+
# Python Libraries
2+
3+
Endless Lifecycle Support (ELS) for Runtimes & Libraries from TuxCare provides security fixes for a variety of Python Libraries. This allows you to continue running your Python applications without vulnerability concerns, even after official support has ended.
4+
5+
## Supported Python Libraries
6+
7+
* **certifi:** 2021.10.8, 2022.12.7, 2023.7.22
8+
9+
*Other libraries upon request.
10+
11+
## Connection to ELS for Python Libraries Repository
12+
13+
This guide outlines the steps needed to integrate the TuxCare ELS for Python Libraries repository.
14+
15+
### Step 1: Get user credentials
16+
17+
You need a username and password in order to use TuxCare ELS for Python Libraries repository. Anonymous access is disabled. To receive the credentials please contact [[email protected]](mailto:[email protected]).
18+
19+
### Step 2: Set Up ELS for Python Libraries
20+
21+
To use TuxCare's ELS for Python libraries, follow one of the options below:
22+
23+
#### Option 1: Install a Package with ELS Repository via Command Line
24+
25+
You can install or upgrade a package directly using the ELS repository with your credentials:
26+
27+
<CodeWithCopy>
28+
29+
```text
30+
pip install --upgrade \
31+
-i https://<username>:<password>@nexus-repo.corp.cloudlinux.com/repository/els-python/simple \
32+
<package>
33+
```
34+
35+
</CodeWithCopy>
36+
37+
**Replace:**
38+
* `<username>` and `<password>` - with the credentials provided by sales.
39+
* `<package>` - with the Python package name (e.g., `certifi`).
40+
41+
#### Option 2: Configure `pip` to Use the ELS Repository (Full Replacement)
42+
43+
This method is recommended if you want to use only ELS-patched Python packages from TuxCare and replace the default PyPI source with the TuxCare ELS repository.
44+
45+
1. Create or update the `pip` configuration file and add the following:
46+
47+
<CodeTabs :tabs="[
48+
{ title: 'Linux/macOS (~/.pip/pip.conf)', content:
49+
`[global]
50+
index-url = https://username:[email protected]/repository/els-python/simple` },
51+
{ title: 'Windows (%APPDATA%\pip\pip.ini)', content:
52+
`[global]
53+
index-url = https://username:[email protected]/repository/els-python/simple` }
54+
]" />
55+
56+
2. Run the command to install the latest package version:
57+
58+
<CodeWithCopy>
59+
60+
```text
61+
pip install --upgrade <package>
62+
```
63+
64+
</CodeWithCopy>
65+
66+
**Replace `<package>` with the python package name, for example, certifi.**
67+
68+
Or install a specific patched TuxCare version, for example:
69+
70+
<CodeWithCopy>
71+
72+
```text
73+
pip install certifi==2021.10.8.post2+tuxcare
74+
```
75+
76+
</CodeWithCopy>
77+
78+
#### Option 3: Add the TuxCare ELS Repository as Additional (recommended )
79+
80+
If you want to keep using public PyPI and fetch only specific patched packages from TuxCare, use *extra-index-url* instead. In this configuration, make sure to specify the exact patched version (step 2 below), otherwise `pip` may install the version from public PyPI.
81+
82+
1. Create or update the `pip` configuration file and add the following:
83+
84+
<CodeTabs :tabs="[
85+
{ title: 'Linux/macOS (~/.pip/pip.conf)', content:
86+
`[global]
87+
extra-index-url = https://username:[email protected]/repository/els-python/simple` },
88+
{ title: 'Windows (%APPDATA%\pip\pip.ini)', content:
89+
`[global]
90+
extra-index-url = https://username:[email protected]/repository/els-python/simple` }
91+
]" />
92+
93+
2. Run the command to install a specific patched TuxCare version, for example:
94+
95+
<CodeWithCopy>
96+
97+
```text
98+
pip install certifi==2021.10.8.post2+tuxcare
99+
```
100+
101+
</CodeWithCopy>
102+
103+

0 commit comments

Comments
 (0)