-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathpypi_deployment
42 lines (32 loc) · 952 Bytes
/
pypi_deployment
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
* create login credentials for pypi.python.org and pypitest.python.org
* install twine
* create ~/.pypirc ::
[distutils]
index-servers=
pypi
pypitest
[pypitest]
repository=https://testpypi.python.org/pypi
username=[USER]
password=[PASSWORD]
[pypi]
repository=https://pypi.python.org/pypi
username=[USER]
password=[PASSWORD]
* python setup.py register -r https://testpypi.python.org/pypi
* python setup.py sdist
* sign with pgp:
gpg --detach-sign -a dist/ccd_
* twine upload -r pypitest dist/ccd_
* install with pip install -i https://testpypi.python.org/simple sip_models dd_interface
TODO
====
* update homepage
* update documentation (ccd_tools, pypi installation)
* test dd_time.py
Links
=====
https://pythonhosted.org/an_example_pypi_project/setuptools.html
http://peterdowns.com/posts/first-time-with-pypi.html
https://github.com/pypa/twine
http://setuptools.readthedocs.io/en/latest/setuptools.html#declaring-dependencies