Skip to content
This repository was archived by the owner on Jan 26, 2023. It is now read-only.

Commit 339ecfc

Browse files
committed
Adjust reqs
1 parent 2005e12 commit 339ecfc

File tree

4 files changed

+11
-7
lines changed

4 files changed

+11
-7
lines changed

.travis.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,7 @@ matrix:
1515
- python: 3.5
1616
- python: 3.6
1717

18-
install: pip install .[test]
19-
20-
script:
21-
- pytest
18+
install: pip install .
2219

2320
notifications:
2421
email: false

Makefile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,11 @@ deploy: install ## Deploy package and wheel to PyPi.
1212
deploy-test: install ## Deploy package and wheel to PyPi test environment.
1313
@twine upload --repository-url https://test.pypi.org/legacy/ dist/*
1414

15-
install: ## Install all requirements.
16-
@pip install -e .[test]
15+
install: ## Install local, editable version of the gitcoin client.
16+
@pip install -e .
17+
18+
test: ## Run pytest.
19+
@python setup.py test
1720

1821
help:
1922
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'

setup.cfg

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,3 +83,6 @@ ALLOW_MULTILINE_LAMBDAS = true
8383
BLANK_LINE_BEFORE_NESTED_CLASS_OR_DEF = true
8484
INDENT_DICTIONARY_VALUE = true
8585
SPLIT_BEFORE_EXPRESSION_AFTER_OPENING_PAREN = true
86+
87+
[aliases]
88+
test=pytest

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,9 @@
3737
keywords='gitcoin api client bounties bounty rest',
3838
packages=find_packages(exclude=['docs', 'tests']),
3939
install_requires=['requests'],
40+
setup_requires=['pytest-runner'],
41+
tests_require=['pytest', 'pytest-isort', 'pytest-cov', 'coverage', 'isort'],
4042
extras_require={
41-
'test': ['coverage', 'pytest', 'isort', 'pytest-isort', 'pytest-cov'],
4243
'deploy': ['twine', 'wheel'],
4344
},
4445
project_urls={

0 commit comments

Comments
 (0)