Back to home page

EIC code displayed by LXR

 
 

    


Warning, /pyjano/packaging.md is written in an unsupported language. File is not indexed.

0001 # PIP packaging instructions
0002 TL;DR;   
0003 
0004 ```bash
0005 pip install --upgrade pip
0006 python3 -m pip install --user --upgrade setuptools wheel
0007 python3 setup.py sdist bdist_wheel
0008 python2 setup.py bdist_wheel
0009 
0010 python3 -m pip install -r requirements.txt --user
0011 
0012 python3 -m twine upload dist/*
0013 
0014 ```
0015 
0016 Full:
0017 ```bash
0018  python3 setup.py sdist bdist_wheel && python2 setup.py bdist_wheel && python3 -m twine upload dist/*
0019 ```
0020 
0021 in virtual env:
0022 ``` 
0023 pip install --upgrade pip
0024 pip install --upgrade setuptools wheel twine
0025 
0026 #if bug with setuptools
0027 rm 
0028 
0029 python setup.py sdist bdist_wheel
0030 
0031 python -m twine upload dist/*
0032 ```
0033 
0034 PACK AND UPLOAD
0035 
0036 ```bash
0037 python setup.py sdist bdist_wheel && python -m twine upload dist/*
0038 ```
0039 
0040 Jefferson Lab certificates
0041 ```bash
0042 python -m twine upload --cert ~/JLabCA.cer dist/*
0043 
0044 ```
0045 
0046 
0047 A tutorial:
0048 https://packaging.python.org/tutorials/packaging-projects/
0049 
0050 ejpm pip: https://pypi.org/project/ejpm/#history
0051 
0052 SO question for JLab certificate validation
0053 https://stackoverflow.com/questions/10667960/python-requests-throwing-sslerror/10668173
0054 
0055 
0056