-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from cooperdff/features
Features
- Loading branch information
Showing
9 changed files
with
197 additions
and
20 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
action: GLOB, msg: packaging | ||
cwd: C:\Users\JCoop\Documents\GitHub\nflfastPy | ||
cmd: 'c:\users\jcoop\anaconda3\envs\myenv\python.exe' setup.py sdist --formats=zip --dist-dir '.tox\dist' | ||
running sdist | ||
running egg_info | ||
writing nfl_data_py.egg-info\PKG-INFO | ||
writing dependency_links to nfl_data_py.egg-info\dependency_links.txt | ||
writing requirements to nfl_data_py.egg-info\requires.txt | ||
writing top-level names to nfl_data_py.egg-info\top_level.txt | ||
reading manifest file 'nfl_data_py.egg-info\SOURCES.txt' | ||
writing manifest file 'nfl_data_py.egg-info\SOURCES.txt' | ||
running check | ||
creating nfl_data_py-0.1.5 | ||
creating nfl_data_py-0.1.5\nfl_data_py | ||
creating nfl_data_py-0.1.5\nfl_data_py.egg-info | ||
copying files to nfl_data_py-0.1.5... | ||
copying README.md -> nfl_data_py-0.1.5 | ||
copying setup.py -> nfl_data_py-0.1.5 | ||
copying nfl_data_py\__init__.py -> nfl_data_py-0.1.5\nfl_data_py | ||
copying nfl_data_py.egg-info\PKG-INFO -> nfl_data_py-0.1.5\nfl_data_py.egg-info | ||
copying nfl_data_py.egg-info\SOURCES.txt -> nfl_data_py-0.1.5\nfl_data_py.egg-info | ||
copying nfl_data_py.egg-info\dependency_links.txt -> nfl_data_py-0.1.5\nfl_data_py.egg-info | ||
copying nfl_data_py.egg-info\requires.txt -> nfl_data_py-0.1.5\nfl_data_py.egg-info | ||
copying nfl_data_py.egg-info\top_level.txt -> nfl_data_py-0.1.5\nfl_data_py.egg-info | ||
Writing nfl_data_py-0.1.5\setup.cfg | ||
creating '.tox\dist\nfl_data_py-0.1.5.zip' and adding 'nfl_data_py-0.1.5' to it | ||
adding 'nfl_data_py-0.1.5' | ||
adding 'nfl_data_py-0.1.5\nfl_data_py' | ||
adding 'nfl_data_py-0.1.5\nfl_data_py.egg-info' | ||
adding 'nfl_data_py-0.1.5\PKG-INFO' | ||
adding 'nfl_data_py-0.1.5\README.md' | ||
adding 'nfl_data_py-0.1.5\setup.cfg' | ||
adding 'nfl_data_py-0.1.5\setup.py' | ||
adding 'nfl_data_py-0.1.5\nfl_data_py\__init__.py' | ||
adding 'nfl_data_py-0.1.5\nfl_data_py.egg-info\dependency_links.txt' | ||
adding 'nfl_data_py-0.1.5\nfl_data_py.egg-info\PKG-INFO' | ||
adding 'nfl_data_py-0.1.5\nfl_data_py.egg-info\requires.txt' | ||
adding 'nfl_data_py-0.1.5\nfl_data_py.egg-info\SOURCES.txt' | ||
adding 'nfl_data_py-0.1.5\nfl_data_py.egg-info\top_level.txt' | ||
removing 'nfl_data_py-0.1.5' (and everything under it) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
from unittest import TestCase | ||
import pandas as pd | ||
|
||
import nfl_data_py as nfl | ||
|
||
class test_pbp(TestCase): | ||
def test_is_df(self): | ||
s = nfl.import_pbp_data([2020]) | ||
self.assertEqual(True, isinstance(s, pd.DataFrame)) | ||
|
||
class test_weekly(TestCase): | ||
def test_is_df(self): | ||
s = nfl.import_weekly_data([2020]) | ||
self.assertEqual(True, isinstance(s, pd.DataFrame)) | ||
|
||
class test_seasonal(TestCase): | ||
def test_is_df(self): | ||
s = nfl.import_seasonal_data([2020]) | ||
self.assertEqual(True, isinstance(s, pd.DataFrame)) | ||
|
||
class test_pbp_cols(TestCase): | ||
def test_is_list(self): | ||
s = nfl.see_pbp_cols() | ||
self.assertEqual(True, isinstance(set(nfl.see_pbp_cols()), set)) | ||
|
||
class test_weekly_cols(TestCase): | ||
def test_is_list(self): | ||
s = nfl.see_weekly_cols() | ||
self.assertEqual(True, isinstance(set(nfl.see_pbp_cols()), set)) | ||
|
||
class test_rosters(TestCase): | ||
def test_is_df(self): | ||
s = nfl.import_rosters([2020]) | ||
self.assertEqual(True, isinstance(s, pd.DataFrame)) | ||
|
||
class test_team_desc(TestCase): | ||
def test_is_df(self): | ||
s = nfl.import_team_desc() | ||
self.assertEqual(True, isinstance(s, pd.DataFrame)) | ||
|
||
class test_schedules(TestCase): | ||
def test_is_df(self): | ||
s = nfl.import_schedules([2020]) | ||
self.assertEqual(True, isinstance(s, pd.DataFrame)) | ||
|
||
class test_wins(TestCase): | ||
def test_is_df(self): | ||
s = nfl.import_win_totals([2020]) | ||
self.assertEqual(True, isinstance(s, pd.DataFrame)) | ||
|
||
class test_officials(TestCase): | ||
def test_is_df(self): | ||
s = nfl.import_officials([2020]) | ||
self.assertEqual(True, isinstance(s, pd.DataFrame)) | ||
|
||
class test_draft_picks(TestCase): | ||
def test_is_df(self): | ||
s = nfl.import_draft_picks([2020]) | ||
self.assertEqual(True, isinstance(s, pd.DataFrame)) | ||
|
||
class test_draft_values(TestCase): | ||
def test_is_df(self): | ||
s = nfl.import_draft_values() | ||
self.assertEqual(True, isinstance(s, pd.DataFrame)) | ||
|
||
class test_combine(TestCase): | ||
def test_is_df(self): | ||
s = nfl.import_combine_data([2020]) | ||
self.assertEqual(True, isinstance(s, pd.DataFrame)) | ||
|
||
class test_ids(TestCase): | ||
def test_is_df(self): | ||
s = nfl.import_ids() | ||
self.assertEqual(True, isinstance(s, pd.DataFrame)) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,8 @@ | |
EMAIL = '[email protected]' | ||
AUTHOR = 'cooperdff' | ||
REQUIRES_PYTHON = '>=3.6.0' | ||
VERSION = '0.1.5' | ||
VERSION = '0.1.6' | ||
|
||
|
||
# What packages are required for this module to be executed? | ||
REQUIRED = [ | ||
|
@@ -107,12 +108,9 @@ def run(self): | |
python_requires=REQUIRES_PYTHON, | ||
url=URL, | ||
packages=find_packages(exclude=["tests", "*.tests", "*.tests.*", "tests.*"]), | ||
# If your package is a single module, use this instead of 'packages': | ||
# py_modules=['mypackage'], | ||
test_suite='nose.collector', | ||
tests_require=['nose'], | ||
|
||
# entry_points={ | ||
# 'console_scripts': ['mycli=mymodule:cli'], | ||
# }, | ||
install_requires=REQUIRED, | ||
extras_require=EXTRAS, | ||
include_package_data=True, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# content of: tox.ini , put in same dir as setup.py | ||
[tox] | ||
envlist = python2.7,python3.5,python3.6,python3.7,python3.8,python3.9 | ||
[testenv] | ||
deps = pytest | ||
# run the tests | ||
# ... or run any other command line tool you need to run here | ||
commands = pytest |