Skip to content

Commit

Permalink
Merge pull request #56 from dcstats/2.1.0
Browse files Browse the repository at this point in the history
2.1.0
  • Loading branch information
dcstats authored Dec 5, 2024
2 parents daa2be9 + 229e064 commit fd5afd9
Show file tree
Hide file tree
Showing 36 changed files with 1,090,287 additions and 406 deletions.
30 changes: 24 additions & 6 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,36 @@ on:
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 30
strategy:
matrix:
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
fail-fast: true

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: '3.7'
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: pip install -r requirements.txt
- name: Install package in editable mode
run: |
pip install --upgrade pip
pip install -e .
- name: Install testing and linting tools
run: pip install pytest flake8 mypy

- name: Cache pip dependencies
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/pyproject.toml') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Run pytest
run: pytest
run: pytest tests/
102 changes: 83 additions & 19 deletions README.md

Large diffs are not rendered by default.

13 changes: 8 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "CBBpy"
version = "2.0.2"
dynamic = ["version"]
description = 'A Python-based web scraper for NCAA basketball.'
readme = "README.md"
authors = [{ name = "Daniel Cowan", email = "[email protected]" }]
Expand All @@ -33,16 +33,19 @@ keywords = [
"ncaaw",
]
dependencies = [
'pandas>=1.4.2',
'numpy>=1.22.3',
'python-dateutil>=2.8.2',
'pandas>=2.0.0',
'numpy>=2.0.0',
'python-dateutil>=2.4.0',
'pytz>=2022.1',
'tqdm>=4.63.0',
'lxml>=4.9.0',
'joblib>=1.2.0',
'joblib>=1.0.0',
'beautifulsoup4>=4.11.0',
'requests>=2.27.0',
'rapidfuzz>=3.9.0',
'platformdirs>=4.0.0',
]

requires-python = ">=3.9"

[tool.setuptools.dynamic]
Expand Down
1 change: 1 addition & 0 deletions src/cbbpy/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__version__ = "2.1.0"
Loading

0 comments on commit fd5afd9

Please sign in to comment.