Skip to content

Commit

Permalink
add json to package data files in setup. Wasn't being included in wheel
Browse files Browse the repository at this point in the history
  • Loading branch information
HarryShomer committed Jan 26, 2021
1 parent fb14534 commit e0fbdb6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion hockey_scraper/nhl/json_schedule.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

# TODO: Currently rescraping page each time since the status of some games may have changed
# (e.g. Scraped on 2020-01-20 and game on 2020-01-21 was not Final...when use old page again will still think not Final)
# Need to find a more elegant way of doing this
# Need to find a more elegant way of doing this (Metadata???)
def get_schedule(date_from, date_to):
"""
Scrapes games in date range
Expand Down
6 changes: 5 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ def read():

setup(
name='hockey_scraper',
version='1.37.3',
version='1.37.5',
description="""Python Package for scraping NHL Play-by-Play and Shift data.""",
long_description=read(),
classifiers=[
Expand All @@ -24,6 +24,10 @@ def read():
install_requires=['BeautifulSoup4', 'requests', 'lxml', 'html5lib', 'pandas', 'pytest'],
zip_safe=False,

package_data={
"": ["*.json"],
}

# entry_points={
# 'console_scripts': [
# 'hockey-scraper = hockey_scraper.cli:main',
Expand Down

0 comments on commit e0fbdb6

Please sign in to comment.