Back to home page

EIC code displayed by LXR

 
 

    


Warning, /edpm/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 twine
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 && python3 -m twine upload dist/*
0019  
0020 ```
0021 
0022 in virtual env:
0023 ```bash
0024 pip install --upgrade pip
0025 pip install --upgrade setuptools wheel twine
0026 
0027 #if bug with setuptools
0028 pip install --upgrade --force-reinstall setuptools
0029 
0030 python setup.py sdist bdist_wheel
0031 python -m twine upload dist/*
0032 
0033 #FULL:
0034 
0035 python setup.py sdist bdist_wheel && python -m twine upload dist/*
0036 
0037 
0038 python -m twine upload --cert ~/JLabCA.cer dist/*
0039 
0040 ```
0041 
0042 JLAB CERTIFICATE ERROR:
0043 
0044 ```bash
0045 python -m twine upload --cert /home/romanov/JLabCA.crt dist/*
0046 ```
0047 
0048 
0049 A tutorial:
0050 https://packaging.python.org/tutorials/packaging-projects/
0051 
0052 edpm pip: https://pypi.org/project/edpm/#history
0053 
0054 SO question for JLab certificate validation
0055 https://stackoverflow.com/questions/10667960/python-requests-throwing-sslerror/10668173
0056 
0057 
0058