python setup.py build --executable '/usr/bin/env python' &&
python setup.py sdist &&
-for py in 2.6 2.7 3.4 3.5 3.6; do
+for py in 2.7 3.4 3.5 3.6; do
find build -name '*.py[co]' -delete &&
python$py setup.py build_py &&
python$py setup.py build --executable '/usr/bin/env python' &&
--install-option=-O2
-
-argparse; python_version == '2.6'
pip install --find-links=http://phdru.name/Software/Python/ --no-index --install-option='-O2' --user ppu
-For Python 2.6 the command is easy_install.
-
Installation from sources
=========================
try:
from setuptools import setup
- is_setuptools = True
except ImportError:
from distutils.core import setup
- is_setuptools = False
-
-kw = {}
-if is_setuptools:
- if (sys.version_info[:2] == (2, 6)):
- kw['install_requires'].append('argparse')
setup(name='ppu',
version='0.3.2',
'License :: OSI Approved :: GNU General Public License (GPL)',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2',
- 'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
scripts=[
'scripts/cmp.py', 'scripts/remove-old-files.py', 'scripts/rm.py',
],
- **kw
)
[tox]
minversion = 1.8
-envlist = {py26,py27,py33,py34,py35,py36},{py27,py34}-flake8
+envlist = {py27,py33,py34,py35,py36},{py27,py34}-flake8
# Base test environment settings
[testenv]
basepython =
- py26: {env:TOXPYTHON:python2.6}
py27: {env:TOXPYTHON:python2.7}
py33: {env:TOXPYTHON:python3.3}
py34: {env:TOXPYTHON:python3.4}
commands =
{envpython} -m pytest
-[testenv:py26]
-commands =
- {[testenv]commands}
- {[general]commands}
-
[testenv:py27]
commands =
{[testenv]commands}