From e6bc0a03fade323569c322871c21983bace445a1 Mon Sep 17 00:00:00 2001 From: jg <57115019+joeyagreco@users.noreply.github.com> Date: Sat, 17 Sep 2022 14:00:11 -0500 Subject: [PATCH 1/2] added python badge to readme --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 89fb3445..bbfb6a13 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,6 @@ ![](https://github.com/cwendt94/espn-api/workflows/Espn%20API/badge.svg) -![](https://github.com/cwendt94/espn-api/workflows/Espn%20API%20Integration%20Test/badge.svg) [![codecov](https://codecov.io/gh/cwendt94/espn-api/branch/master/graphs/badge.svg)](https://codecov.io/gh/cwendt94/espn-api) [![Join the chat at https://gitter.im/ff-espn-api/community](https://badges.gitter.im/ff-espn-api/community.svg)](https://gitter.im/ff-espn-api/community?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) [![PyPI version](https://badge.fury.io/py/espn-api.svg)](https://badge.fury.io/py/espn-api) +![](https://github.com/cwendt94/espn-api/workflows/Espn%20API%20Integration%20Test/badge.svg) [![codecov](https://codecov.io/gh/cwendt94/espn-api/branch/master/graphs/badge.svg)](https://codecov.io/gh/cwendt94/espn-api) [![Join the chat at https://gitter.im/ff-espn-api/community](https://badges.gitter.im/ff-espn-api/community.svg)](https://gitter.im/ff-espn-api/community?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) [![PyPI version](https://badge.fury.io/py/espn-api.svg)](https://badge.fury.io/py/espn-api) + ## ESPN API This package uses ESPN's Fantasy API to extract data from any public or private league for **Fantasy Football and Basketball (NHL, MLB, and WNBA are in development)**. From 172613c1f89e03dbc82058eeb491bdffa9f58192 Mon Sep 17 00:00:00 2001 From: jg <57115019+joeyagreco@users.noreply.github.com> Date: Sat, 17 Sep 2022 14:00:40 -0500 Subject: [PATCH 2/2] added versioning flow and long description to setup file --- espn_api/__init__.py | 1 + espn_api/_version.py | 1 + setup.py | 11 ++++++++++- 3 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 espn_api/_version.py diff --git a/espn_api/__init__.py b/espn_api/__init__.py index e69de29b..ad5cc752 100644 --- a/espn_api/__init__.py +++ b/espn_api/__init__.py @@ -0,0 +1 @@ +from ._version import __version__ # noqa diff --git a/espn_api/_version.py b/espn_api/_version.py new file mode 100644 index 00000000..81edede8 --- /dev/null +++ b/espn_api/_version.py @@ -0,0 +1 @@ +__version__ = '0.22.0' diff --git a/setup.py b/setup.py index 8e950cde..ad5f9f90 100644 --- a/setup.py +++ b/setup.py @@ -1,11 +1,20 @@ from setuptools import setup, find_packages +pkg_vars = dict() +with open('espn_api/_version.py') as f: + exec(f.read(), pkg_vars) + +with open("README.md") as f: + readme = f.read() + setup( name='espn_api', packages=find_packages(), - version='0.22.0', + version=pkg_vars["__version__"], author='Christian Wendt', description='ESPN API', + long_description=readme, + long_description_content_type="text/markdown", install_requires=['requests>=2.0.0,<3.0.0'], setup_requires=['nose>=1.0'], test_suite='nose.collector',