python_setup
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| python_setup [2019/12/28 19:16] – [setup.py example] jrseti | python_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: | ||
| ) | ) | ||
| </ | </ | ||
| + | |||
| + | ====Sample tox.ini file==== | ||
| + | |||
| + | # tox (https:// | ||
| + | # 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] | ||
| + | envlist = py37 | ||
| + | | ||
| + | [testenv] | ||
| + | deps = pytest | ||
| + | commands = pytest | ||
python_setup.1577560562.txt.gz · Last modified: 2019/12/28 19:16 by jrseti