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 all: unshare/constants.py
...@@ -10,8 +10,4 @@ unshare/constants.py: ...@@ -10,8 +10,4 @@ unshare/constants.py:
awk '/#define MS_|#define CLONE_/ {print $$2, "=", $$3}' > unshare/constants.py awk '/#define MS_|#define CLONE_/ {print $$2, "=", $$3}' > unshare/constants.py
clean: clean:
rm -rf unshare/constants.py *.pyc __pycache__ unshare/*.pyc unshare/__pycache__ rm -rf unshare/constants.py
test: clean all
python test.py
python3 test.py
...@@ -13,8 +13,8 @@ setup( ...@@ -13,8 +13,8 @@ setup(
classifiers=[ classifiers=[
'Development status :: 3 - Alpha', 'Development status :: 3 - Alpha',
'Intended Audience :: Developers', 'Intended Audience :: Developers',
'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3',
'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 2',
'Intended Audience :: System Administrators', 'Intended Audience :: System Administrators',
'Topic :: Utilities', 'Topic :: Utilities',
], ],
...@@ -22,6 +22,5 @@ setup( ...@@ -22,6 +22,5 @@ setup(
packages=find_packages(exclude=['tests']), packages=find_packages(exclude=['tests']),
install_requires=[], install_requires=[],
extras_require={ extras_require={
'dev': ['tox'], 'dev': ['tox']},
'test': ['flake8', 'check-manifest', 'coverage', 'pytest']},
) )
File moved
...@@ -3,19 +3,19 @@ ignore=F403 ...@@ -3,19 +3,19 @@ ignore=F403
exclude = .tox,*.egg,build,data,unshare/constants.py exclude = .tox,*.egg,build,data,unshare/constants.py
[tox] [tox]
envlist = py{27,35} envlist = py{2,3}
[testenv] [testenv]
basepython = basepython =
py27: python2.7 py2: python2
py35: python3.5 py3: python3
deps = deps =
check-manifest check-manifest
{py27,py35}: readme_renderer readme_renderer
flake8 flake8
pytest
commands = commands =
check-manifest --ignore tox.ini,tests* check-manifest --ignore tox.ini,tests*
# py26 doesn't have "setup.py check" python setup.py check -m -r -s
{py27,py35}: python setup.py check -m -r -s
flake8 . flake8 .
py.test tests py.test
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment