Skip to content
This repository has been archived by the owner on Jun 9, 2023. It is now read-only.

Commit

Permalink
Reconfigure requirements and test using pytest
Browse files Browse the repository at this point in the history
  • Loading branch information
bboe committed Jan 4, 2020
1 parent d5f56be commit 1f57f91
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 10 deletions.
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
cache: pip
install: pip install coveralls
install: pip install .[ci,test]
jobs:
include:
- install: pip install black flake8 pydocstyle
- install: pip install .[lint]
python: 3.8
script:
- black --check --verbose *.py prawtools tests
Expand All @@ -18,7 +18,7 @@ python:
- 3.7
- 3.8
script:
- coverage run --source=prawtools setup.py test
- coverage run --source=prawtools --module pytest
- coveralls
stages:
- lint
Expand Down
22 changes: 15 additions & 7 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,19 @@
VERSION = re.search('__version__ = "([^"]+)', fp.read()).group(1)


extras = {
"ci": ["coveralls"],
"lint": ["black", "flake8", "pydocstyle"],
"test": [
"betamax >=0.7.1, <0.8",
"betamax-serializers >=0.2.0, <0.3",
"mock ==1.0.1",
"pytest",
],
}
required = ["praw >=4.0.0, <7", "six >=1, <2"]


setup(
name=PACKAGE_NAME,
author="Bryce Boe",
Expand All @@ -39,17 +52,12 @@
"subreddit_stats = prawtools.stats:main",
]
},
install_requires=["praw >=4.0.0, <7", "six >=1, <2"],
extras_require=extras,
install_requires=required,
keywords="reddit mod moderator subreddit statistics tools",
license="Simplified BSD License",
long_description=README,
packages=[PACKAGE_NAME],
test_suite="tests",
tests_require=[
"betamax >=0.7.1, <0.8",
"betamax-serializers >=0.2.0, <0.3",
"mock ==1.0.1",
],
url="https://github.com/praw-dev/prawtools",
version=VERSION,
)
File renamed without changes.
Empty file modified tests/test_stats.py
100755 → 100644
Empty file.

0 comments on commit 1f57f91

Please sign in to comment.