项目作者: python-packaging-tutorial

项目描述 :
Tutorial on python packaging
高级语言: Python
项目地址: git://github.com/python-packaging-tutorial/python-packaging-tutorial.git


python-packaging-tutorial

Tutorial on python packaging at SciPy 2018

Rendered notes here:

https://python-packaging-tutorial.readthedocs.io

Installation instructions

Windows

MacOS

Linux

Docker Image caching

  • run docker pull dockcross/manylinux-x64

Testing installation

  • Clone this repository
  • cd into the test_recipes folder
  • run conda build bitarray. Success is indicated by output like:
  1. ===== bitarray-0.8.1-py36h1de35cc_1 OK =====
  2. import: 'bitarray'
  3. Resource usage statistics from testing bitarray:
  4. Process count: 1
  5. CPU time: Sys=0:00:00.0, User=0:00:00.0
  6. Memory: 1.1M
  7. Disk usage: 16B
  8. Time elapsed: 0:00:02.0
  9. TEST END: /Users/msarahan/miniconda3/conda-bld/osx-64/bitarray-0.8.1-py36h1de35cc_1.tar.bz2
  10. Renaming work directory, /Users/msarahan/miniconda3/conda-bld/bitarray_1529267981928/work to /Users/msarahan/miniconda3/conda-bld/bitarray_1529267981928/work_moved_bitarray-0.8.1-py36h1de35cc_1_osx-64_main_build_loop
  11. # Automatic uploading is disabled
  12. # If you want to upload package(s) to anaconda.org later, type:
  13. anaconda upload /Users/msarahan/miniconda3/conda-bld/osx-64/bitarray-0.8.1-py36h1de35cc_1.tar.bz2
  14. # To have conda build upload to anaconda.org automatically, use
  15. # $ conda config --set anaconda_upload yes
  16. anaconda_upload is not set. Not uploading wheels: []
  17. ####################################################################################
  18. Resource usage summary:
  19. Total time: 0:00:36.9
  20. CPU usage: sys=0:00:00.2, user=0:00:00.2
  21. Maximum memory usage observed: 50.6M
  22. Total disk usage observed (not including envs): 1016B
  23. ####################################################################################
  1. creating 'dist/hello_cython-1.2.3-py3.5-macosx-10.9-x86_64.egg' and adding '_skbuild/setuptools/bdist.macosx-10.9-x86_64/egg' to it
  2. removing '_skbuild/setuptools/bdist.macosx-10.9-x86_64/egg' (and everything under it)
  3. Processing hello_cython-1.2.3-py3.5-macosx-10.9-x86_64.egg
  4. Copying hello_cython-1.2.3-py3.5-macosx-10.9-x86_64.egg to /Users/msarahan/miniconda3/envs/skbuild/lib/python3.5/site-packages
  5. Adding hello-cython 1.2.3 to easy-install.pth file
  6. Installed /Users/msarahan/miniconda3/envs/skbuild/lib/python3.5/site-packages/hello_cython-1.2.3-py3.5-macosx-10.9-x86_64.egg
  7. Processing dependencies for hello-cython==1.2.3
  8. Finished processing dependencies for hello-cython==1.2.3
  • You’re all set!

Troubleshooting

Package hosting service accounts

Pprior to attending the tutorial, participants should set up an account on