Skip to content

Commit

Permalink
Remove requirements.txt, update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
blueyed committed Sep 8, 2018
1 parent 4fec221 commit 3a3e491
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 26 deletions.
21 changes: 9 additions & 12 deletions CONTRIBUTING.rst
Expand Up @@ -94,23 +94,20 @@ How to Add New Policy
``NodeType.STRING``. Use ``NodeType.TOPLEVEL`` if you need to lint
only once.

5. Run the test
5. Running the tests

You can test by `tox <https://tox.readthedocs.org/en/latest/>`__ or
`py.test <http://pytest.org/latest/>`__ or the default unittest
module.

There are test command examples;
The recommended way to run the tests is by using tox
`tox <https://tox.readthedocs.org/en/latest/>`__, but you can use pytest
directly also, e.g.

::

$ pyenv local 2.7.8 3.4.1
$ tox
$ tox -e py37

If you want to test by py.test, you should add ``vint/bin`` to
``$PATH`` to make acceptance tests pass.
If you want to test using pytest, you should add ``vint/bin`` to
``$PATH`` to make acceptance tests pass:

::

$ pip install -r requirements.txt -r test-requirements.txt`
$ PATH="./bin:$PATH" py.test test`
$ pip install -e '.[testing]'
$ PATH="./bin:$PATH" pytest
2 changes: 0 additions & 2 deletions MANIFEST.in
Expand Up @@ -2,8 +2,6 @@ include README.markdown
include LICENSE.txt
include VERSION.txt
include MANIFEST.in
include requirements.txt
include test-requirements.txt
recursive-include vint/asset *
recursive-exclude * __pycache__
recursive-exclude * *.py[co]
3 changes: 0 additions & 3 deletions requirements.txt

This file was deleted.

3 changes: 3 additions & 0 deletions setup.cfg
Expand Up @@ -5,3 +5,6 @@ description-file = README.markdown
max-line-length = 100
exclude = vint/_bundles/*
ignore = E303

[tool:pytest]
testpaths = test
14 changes: 5 additions & 9 deletions setup.py
@@ -1,22 +1,18 @@
#!/usr/bin/env python
import sys
import os.path
from setuptools import setup, find_packages


def load_requires_from_file(filepath):
return [pkg_name.rstrip('\r\n') for pkg_name in open(filepath).readlines()]


install_requires = load_requires_from_file('requirements.txt')
install_requires += [
install_requires = [
'PyYAML~=3.11',
'ansicolor~=0.2.4',
'chardet>=2.3.0',
'setuptools>=36.2.2', # for enhanced marker support (used below).
'enum34>=1.0.4;python_version<"3.4"',
'pathlib==1.0.1;python_version<"3.4"',
'typing>=3.6.2;python_version<"3.6"',
]


test_requires = [
'pytest==3.6.3',
'pytest-cov==2.5.1',
Expand All @@ -41,7 +37,7 @@ def get_version():
author='Kuniwak',
author_email='orga.chem.job+vint@gmail.com',
url='https://github.com/Kuniwak/vint',
download_url='https://github.com/Kuniwak/vint/archive/v{version}.tar.gz'.format(version=VERSION),
download_url='https://github.com/Kuniwak/vint/archive/v{version}.tar.gz'.format(version=VERSION), # noqa: E501
install_requires=install_requires,
tests_require=test_requires,
extras_require={
Expand Down

0 comments on commit 3a3e491

Please sign in to comment.