diff --git a/.claude/settings.local.json b/.claude/settings.local.json new file mode 100644 index 000000000..f9ebdc015 --- /dev/null +++ b/.claude/settings.local.json @@ -0,0 +1,8 @@ +{ + "permissions": { + "allow": [ + "Bash(python3 -c ' *)", + "Bash(git log *)" + ] + } +} diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index de9ff9108..e71073ab7 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -4,9 +4,8 @@ name: Upload Python Package on: - push: - branches: - - main + release: + types: [published] jobs: deploy: @@ -22,9 +21,9 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install setuptools wheel twine + pip install build - name: Build package run: | - python setup.py sdist bdist_wheel + python -m build - name: Publish package distributions to PyPI uses: pypa/gh-action-pypi-publish@release/v1 diff --git a/README.md b/README.md index 47b3a080d..cc18bfd74 100644 --- a/README.md +++ b/README.md @@ -31,9 +31,10 @@ Please follow the [installation procedure](#installation--usage) and then run th ```python +import os import time import cfbd -from cfbd.rest import ApiException +from cfbd.exceptions import ApiException from pprint import pprint # Defining the host is optional and defaults to https://api.collegefootballdata.com