Skip to content
Snippets Groups Projects
Commit 4b6ae68f authored by nimrod's avatar nimrod
Browse files

- Renamed basic assertions test for readability, clarity.

- Didn't specify minor Python versions (just 2 and 3).
- Removed test make target, instead use tox.
- The make clean target removes just unshare/constants.py now.
- Removed testing packages from dev dependencies and the test dependency list,
  dev depends just on tox (the other packages are install in the virtualenv).
- Cleaned tox.ini a bit.
parent aae7668a
No related branches found
No related tags found
No related merge requests found
.PHONY: clean test all
.PHONY: clean all
all: unshare/constants.py
......@@ -10,8 +10,4 @@ unshare/constants.py:
awk '/#define MS_|#define CLONE_/ {print $$2, "=", $$3}' > unshare/constants.py
clean:
rm -rf unshare/constants.py *.pyc __pycache__ unshare/*.pyc unshare/__pycache__
test: clean all
python test.py
python3 test.py
rm -rf unshare/constants.py
......@@ -13,8 +13,8 @@ setup(
classifiers=[
'Development status :: 3 - Alpha',
'Intended Audience :: Developers',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 2',
'Intended Audience :: System Administrators',
'Topic :: Utilities',
],
......@@ -22,6 +22,5 @@ setup(
packages=find_packages(exclude=['tests']),
install_requires=[],
extras_require={
'dev': ['tox'],
'test': ['flake8', 'check-manifest', 'coverage', 'pytest']},
'dev': ['tox']},
)
File moved
......@@ -3,19 +3,19 @@ ignore=F403
exclude = .tox,*.egg,build,data,unshare/constants.py
[tox]
envlist = py{27,35}
envlist = py{2,3}
[testenv]
basepython =
py27: python2.7
py35: python3.5
py2: python2
py3: python3
deps =
check-manifest
{py27,py35}: readme_renderer
readme_renderer
flake8
pytest
commands =
check-manifest --ignore tox.ini,tests*
# py26 doesn't have "setup.py check"
{py27,py35}: python setup.py check -m -r -s
python setup.py check -m -r -s
flake8 .
py.test tests
py.test
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment