User Tools

Site Tools


python_setup

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
python_setup [2019/12/28 19:16] – [setup.py example] jrsetipython_setup [2019/12/28 19:19] (current) – [Sample tox.ini file] jrseti
Line 8: Line 8:
  
 **DONT USE python setup.py install**, use **"pip install ."**. Otherwise console scripts do not work. **DONT USE python setup.py install**, use **"pip install ."**. Otherwise console scripts do not work.
 +
 +====You need a MANIFEST.in file!!====
 +
 +Manifest.in needs to include requirements.txt for it to get added into the distribution. Add this line:
 +
 +  include requirements.txt
 +
 +
 +
  
 ====setup.py example===== ====setup.py example=====
Line 52: Line 61:
 ) )
 </code> </code>
 +
 +====Sample tox.ini file====
 +
 +  # tox (https://tox.readthedocs.io/) is a tool for running tests
 +  # in multiple virtualenvs. This configuration file will run the
 +  # test suite on all supported python versions. To use it, "pip install tox"
 +  # and then run "tox" from this directory.
 +  
 +  [tox]
 +  envlist = py37
 +  
 +  [testenv]
 +  deps = pytest
 +  commands = pytest
python_setup.1577560562.txt.gz · Last modified: 2019/12/28 19:16 by jrseti