|
@@ -0,0 +1,34 @@
|
|
1
|
+# Packaging of hapic
|
|
2
|
+
|
|
3
|
+## Prerequisite
|
|
4
|
+
|
|
5
|
+Prepare a `~/.pypirc` configuration file, eg:
|
|
6
|
+
|
|
7
|
+ [distutils]
|
|
8
|
+ index-servers = pypi
|
|
9
|
+
|
|
10
|
+ [pypi]
|
|
11
|
+ repository: https://upload.pypi.org/legacy/
|
|
12
|
+ username: algoo
|
|
13
|
+
|
|
14
|
+Upgrade or install packages:
|
|
15
|
+
|
|
16
|
+ pip install --upgrade setuptools wheel twine
|
|
17
|
+
|
|
18
|
+## Package and distribute
|
|
19
|
+
|
|
20
|
+Checkout on branch `master` (or other branch if you know what you are doing):
|
|
21
|
+
|
|
22
|
+ git checkout master
|
|
23
|
+
|
|
24
|
+Build the package:
|
|
25
|
+
|
|
26
|
+ python setup.py sdist
|
|
27
|
+
|
|
28
|
+Upload it:
|
|
29
|
+
|
|
30
|
+ twine upload dist/*
|
|
31
|
+
|
|
32
|
+If you want give a try before, use:
|
|
33
|
+
|
|
34
|
+ twine upload --repository-url https://test.pypi.org/legacy/ dist/*
|