You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
_Creating and deploying a new package version is easy_
4
+
5
+
## Prerequisites
6
+
7
+
1. Ensure you're on the latest master
8
+
9
+
2. Ensure you have a PyPI account created and are added as a Collaborator
10
+
11
+
## Deployment Steps:
12
+
13
+
**Step 0: Critical - Bump Project Version**
14
+
15
+
In `setup.py`, you need to specify a new project version.
16
+
17
+
We use [semantic versioning](https://packaging.python.org/guides/distributing-packages-using-setuptools/#semantic-versioning-preferred). If you are adding a meaningful feature, bump the minor version. If you are fixing a bug, bump the incremental version.
18
+
19
+
**Step 1: Remove Previous Versions**
20
+
21
+
Clear out any previously packaged files in the `dist` folder
22
+
23
+
**Step 2: Create a Source Distribution**
24
+
25
+
```
26
+
python3 setup.py sdist
27
+
```
28
+
29
+
**Step 3: Create `wheel`**
30
+
31
+
You should also create a wheel for your project. A wheel is a built package that can be installed without needing to go through the “build” process. Installing wheels is substantially faster for the end user than installing from a source distribution
32
+
33
+
```
34
+
python3 setup.py bdist_wheel
35
+
```
36
+
37
+
**Step 4: Install Twine**
38
+
39
+
Twine is what is used to manage PyPI pacakges
40
+
41
+
```
42
+
pip install twine
43
+
```
44
+
45
+
**Step 5: Upload distribution to PyPI**
46
+
47
+
```
48
+
python3 -m twine upload dist/*
49
+
```
50
+
51
+
**Step 6: Check out the PyPI page to ensure all looks good**
0 commit comments