diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index a51bcd5..0000000 --- a/.travis.yml +++ /dev/null @@ -1,16 +0,0 @@ -# Config file for automatic testing at travis-ci.com - -language: python -python: - - 3.8 - - 3.7 - - 3.6 - - 3.5 - -# Command to install dependencies, e.g. pip install -r requirements.txt --use-mirrors -install: pip install -U tox-travis - -# Command to run tests, e.g. python setup.py test -script: tox - - diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index f5c4cb4..1fbbbf9 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -76,15 +76,13 @@ Ready to contribute? Here's how to set up `bbox_visualizer` for local developmen Now you can make your changes locally. -5. When you're done making changes, check that your changes pass flake8 and the - tests, including testing other Python versions with tox:: +5. When you're done making changes, check that your changes pass flake8:: ```bash - flake8 bbox_visualizer tests - python setup.py test or pytest + flake8 bbox_visualizer ``` - To get flake8 and tox, just pip install them into your virtualenv. + To get flake8, just pip install int into your virtualenv. 6. Commit your changes and push your branch to GitHub:: @@ -101,15 +99,7 @@ Ready to contribute? Here's how to set up `bbox_visualizer` for local developmen Before you submit a pull request, check that it meets these guidelines: -1. The pull request should include tests. -2. If the pull request adds functionality, the docs should be updated. Put +1. If the pull request adds functionality, the docs should be updated. Put your new functionality into a function with a docstring, and add the feature to the list in README.rst. -3. The pull request should work for Python 3.5, 3.6, 3.7 and 3.8, and for PyPy. - -### Tips - - -To run a subset of tests: - - pytest tests.test_bbox_visualizer \ No newline at end of file +2. The pull request should work for Python 3.5, 3.6, 3.7 and 3.8, and for PyPy. \ No newline at end of file diff --git a/MANIFEST.in b/MANIFEST.in index 54e006c..7fe5dd1 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -4,7 +4,6 @@ include HISTORY.md include LICENSE include README.md -recursive-include tests * recursive-exclude * __pycache__ recursive-exclude * *.py[co] diff --git a/Makefile b/Makefile index ae5ccbe..9110155 100644 --- a/Makefile +++ b/Makefile @@ -48,19 +48,8 @@ clean-test: ## remove test and coverage artifacts rm -fr .pytest_cache lint: ## check style with flake8 - flake8 bbox_visualizer tests + flake8 bbox_visualizer -test: ## run tests quickly with the default Python - pytest - -test-all: ## run tests on every Python version with tox - tox - -coverage: ## check code coverage quickly with the default Python - coverage run --source bbox_visualizer -m pytest - coverage report -m - coverage html - $(BROWSER) htmlcov/index.html docs: ## generate Sphinx HTML documentation, including API docs rm -f docs/bbox_visualizer.rst diff --git a/requirements_dev.txt b/requirements_dev.txt index eaf1fa5..9f437e5 100644 --- a/requirements_dev.txt +++ b/requirements_dev.txt @@ -3,10 +3,6 @@ bump2version==0.5.11 wheel==0.33.6 watchdog==0.9.0 flake8==3.7.8 -tox==3.14.0 coverage==4.5.4 Sphinx==1.8.5 -twine==1.14.0 - -pytest==4.6.5 -pytest-runner==5.1 +twine==1.14.0 \ No newline at end of file diff --git a/setup.cfg b/setup.cfg index 43739bd..43beb28 100644 --- a/setup.cfg +++ b/setup.cfg @@ -16,11 +16,4 @@ universal = 1 [flake8] exclude = docs -ignore = E501 - -[aliases] -# Define setup.py command aliases here -test = pytest - -[tool:pytest] -collect_ignore = ['setup.py'] +ignore = E501 \ No newline at end of file diff --git a/setup.py b/setup.py index 8eeb067..ae4842e 100644 --- a/setup.py +++ b/setup.py @@ -12,9 +12,9 @@ requirements = [ ] -setup_requirements = ['pytest-runner', ] +setup_requirements = [] -test_requirements = ['pytest>=3', ] +test_requirements = [] setup( author="Shoumik Sharar Chowdhury", @@ -41,7 +41,6 @@ name='bbox_visualizer', packages=find_packages(include=['bbox_visualizer', 'bbox_visualizer.*']), setup_requires=setup_requirements, - test_suite='tests', tests_require=test_requirements, url='https://github.com/shoumikchow/bbox_visualizer', version='0.1.0', diff --git a/tests/__init__.py b/tests/__init__.py deleted file mode 100644 index 3b37f33..0000000 --- a/tests/__init__.py +++ /dev/null @@ -1 +0,0 @@ -"""Unit test package for bbox_visualizer.""" diff --git a/tests/test_bbox_visualizer.py b/tests/test_bbox_visualizer.py deleted file mode 100644 index 91054e3..0000000 --- a/tests/test_bbox_visualizer.py +++ /dev/null @@ -1,24 +0,0 @@ -#!/usr/bin/env python - -"""Tests for `bbox_visualizer` package.""" - -import pytest - - -from bbox_visualizer import bbox_visualizer - - -@pytest.fixture -def response(): - """Sample pytest fixture. - - See more at: http://doc.pytest.org/en/latest/fixture.html - """ - # import requests - # return requests.get('https://github.com/audreyr/cookiecutter-pypackage') - - -def test_content(response): - """Sample pytest test function with the pytest fixture as an argument.""" - # from bs4 import BeautifulSoup - # assert 'GitHub' in BeautifulSoup(response.content).title.string diff --git a/tox.ini b/tox.ini deleted file mode 100644 index 742f8e1..0000000 --- a/tox.ini +++ /dev/null @@ -1,28 +0,0 @@ -[tox] -envlist = py35, py36, py37, py38, flake8 - -[travis] -python = - 3.8: py38 - 3.7: py37 - 3.6: py36 - 3.5: py35 - -[testenv:flake8] -basepython = python -deps = flake8 -commands = flake8 bbox_visualizer tests - -[testenv] -setenv = - PYTHONPATH = {toxinidir} -deps = - -r{toxinidir}/requirements_dev.txt -; If you want to make tox run the tests with the same versions, create a -; requirements.txt with the pinned versions and uncomment the following line: -; -r{toxinidir}/requirements.txt -commands = - pip install -U pip - pytest --basetemp={envtmpdir} - -