浏览代码

add doc about packaging

Bastien Sevajol 5 年前
父节点
当前提交
1ea2bc5d85
共有 1 个文件被更改,包括 34 次插入0 次删除
  1. 34 0
      PACKAGING.md

+ 34 - 0
PACKAGING.md 查看文件

@@ -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/*