Skip to content

Commit caa068c

Browse files
authored
Remove Requirements Files (#48)
This removes the requirements files and puts the dependencies into the `.travis-ci.yml` for development and `setup.py` for code dependencies. Signed-off-by: David Brown <dmlb2000@gmail.com>
1 parent 7e02072 commit caa068c

File tree

5 files changed

+9
-27
lines changed

5 files changed

+9
-27
lines changed

.pre-commit-config.yaml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
exclude: 'jsonpath2/parser/JSONPath.*'
22
repos:
33
- repo: https://github.com/pre-commit/mirrors-autopep8
4-
rev: v1.4.4
4+
rev: v1.5.2
55
hooks:
66
- id: autopep8
7-
- repo: git://github.com/pre-commit/pre-commit-hooks
8-
rev: v2.2.3
7+
- repo: https://github.com/pre-commit/pre-commit-hooks
8+
rev: v2.5.0
99
hooks:
1010
- id: fix-encoding-pragma
1111
- id: trailing-whitespace
@@ -35,7 +35,6 @@ repos:
3535
- id: check-symlinks
3636
- id: check-yaml
3737
- id: detect-private-key
38-
- id: requirements-txt-fixer
3938
- id: trailing-whitespace
4039
- repo: local
4140
hooks:
@@ -49,8 +48,8 @@ repos:
4948
entry: python -m pylint --rcfile=pylintrc
5049
language: system
5150
types: [python]
52-
- repo: git://github.com/Lucas-C/pre-commit-hooks
53-
rev: v1.1.6
51+
- repo: https://github.com/Lucas-C/pre-commit-hooks
52+
rev: v1.1.7
5453
hooks:
5554
- id: remove-tabs
5655
- id: remove-crlf

.travis.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,16 @@ stages:
88
- deploy
99

1010
script:
11-
- pip install .
1211
- cd tests
1312
- coverage run --include='*/site-packages/jsonpath2/*' --omit='*/site-packages/jsonpath2/parser/JSONPath*' -m pytest -xv
1413
- coverage report -m --fail-under 100
1514
- cd ..
1615
- python setup.py bdist_wheel
1716
- python setup.py sdist
1817

19-
install: pip install -r requirements-dev.txt
18+
install:
19+
- pip install coverage pep257 pre-commit pylint pytest readthedocs-sphinx-ext recommonmark setuptools sphinx sphinx-rtd-theme
20+
- pip install .
2021
jobs:
2122
include:
2223
- stage: lint

requirements-dev.txt

Lines changed: 0 additions & 13 deletions
This file was deleted.

requirements.txt

Lines changed: 0 additions & 3 deletions
This file was deleted.

setup.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@
1919
author_email='mark.borkum@pnnl.gov',
2020
packages=find_packages(),
2121
install_requires=[
22-
'antlr4-python3-runtime==4.7.2',
23-
'setuptools',
24-
'six'
22+
'antlr4-python3-runtime==4.7.2'
2523
]
2624
)

0 commit comments

Comments
 (0)