File: admin_notes.md

package info (click to toggle)
python-dpkt 1.9.8-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,104 kB
  • sloc: python: 14,911; makefile: 23
file content (85 lines) | stat: -rw-r--r-- 1,713 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
# Notes

## PyPI Release How-To

Notes and information on how to do the PyPI release for the dpkt
project. For full details on packaging you can reference this page
[Packaging](https://packaging.python.org/tutorials/packaging-projects/#packaging-your-project)

The following instructions should work, but things change :)

### Package Requirements

``` bash
- pip install tox
- pip install --upgrade setuptools wheel
- pip install twine
```

### Setup pypirc

The easiest thing to do is setup a \~/.pypirc file with the following
contents

``` bash
[distutils]
index-servers =
  pypi
  testpypi

[pypi]
repository=https://upload.pypi.org/legacy/
username=<pypi username>
password=<pypi password>

[testpypi]
repository=https://test.pypi.org/legacy/
username=<pypi username>
password=<pypi password>
```

### Tox Background

Tox will install the dpkt package into a blank virtualenv and then
execute all the tests against the newly installed package. So if
everything goes okay, you know the pypi package installed fine and the
tests (which pull from the installed dpkt package) also ran okay.

### Make sure ALL tests pass

``` bash
$ cd dpkt
$ tox 
```

If ALL the test above pass...

### Create the TEST PyPI Release

``` bash
$ vi dpkt/__init__.py and bump the version
$ python setup.py sdist bdist_wheel
$ twine upload dist/* -r testpypi
```

### Install the TEST PyPI Release

``` bash
$ pip install --index-url https://test.pypi.org/simple dpkt
```

### Create the REAL PyPI Release

``` bash
$ twine upload dist/* -r pypi
```

### Push changes to Github

``` bash
$ git add dpkt/__init__.py
$ get commit -m "dpkt version 1.8.7 (or whatever)"
$ git tag v1.8.7 (or whatever)
$ git push --tags
$ git push
```