Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add dependency checker #1885

Merged
merged 3 commits into from
Apr 4, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions .github/workflows/dependency_checker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Dependency Checker
on:
schedule:
- cron: '0 0 * * 1-5'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
frances-h marked this conversation as resolved.
Show resolved Hide resolved
- name: Set up Python 3.9
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Install dependencies
run: |
python -m pip install .[dev]
make check-deps OUTPUT_FILEPATH=latest_requirements.txt
- name: Create pull request
id: cpr
uses: peter-evans/create-pull-request@v4
with:
token: ${{ secrets.GH_ACCESS_TOKEN }}
commit-message: Update latest dependencies
title: Automated Latest Dependency Updates
body: "This is an auto-generated PR with **latest** dependency updates."
branch: latest-dependency-update
branch-suffix: short-commit-hash
base: main
7 changes: 7 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -260,3 +260,10 @@ release-minor: check-release bumpversion-minor release

.PHONY: release-major
release-major: check-release bumpversion-major release

# Dependency targets

.PHONY: check-deps
check-deps:
$(eval allow_list='boto3=|botocore=|cloudpickle=|graphviz=|numpy=|pandas=|tqdm=|copulas=|ctgan=|deepecho=|rdt=|sdmetrics=')
pip freeze | grep -v "SDV.git" | grep -E $(allow_list) > $(OUTPUT_FILEPATH)
frances-h marked this conversation as resolved.
Show resolved Hide resolved
12 changes: 12 additions & 0 deletions latest_requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
boto3==1.34.76
botocore==1.34.76
cloudpickle==2.2.1
copulas==0.9.2
ctgan==0.9.1
deepecho==0.5.0
graphviz==0.20.3
numpy==1.26.4
pandas==2.2.1
rdt==1.10.1
sdmetrics==0.13.0
tqdm==4.66.2
24 changes: 12 additions & 12 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,21 +20,21 @@ license = { text = 'BSL-1.1' }
requires-python = '>=3.8,<3.12'
readme = 'README.md'
dependencies = [
'boto3>=1.15.0,<2',
'botocore>=1.18,<2',
'cloudpickle>=2.1.0,<3.0',
'graphviz>=0.13.2,<1',
"numpy>=1.20.0,<2;python_version<'3.10'",
"numpy>=1.23.3,<2;python_version>='3.10'",
'boto3>=1.15.0',
'botocore>=1.18',
'cloudpickle>=2.1.0,
'graphviz>=0.13.2',
"numpy>=1.20.0;python_version<'3.10'",
"numpy>=1.23.3;python_version>='3.10'",
"pandas>=1.1.3;python_version<'3.10'",
"pandas>=1.3.4;python_version>='3.10' and python_version<'3.11'",
"pandas>=1.5.0;python_version>='3.11'",
'tqdm>=4.15,<5',
'copulas>=0.9.0,<0.10',
'ctgan>=0.9.0,<0.10',
'deepecho>=0.5,<0.6',
'rdt>=1.10.0,<2',
'sdmetrics>=0.13.0,<0.14',
'tqdm>=4.15',
'copulas>=0.9.0',
'ctgan>=0.9.0',
'deepecho>=0.5',
'rdt>=1.10.0',
'sdmetrics>=0.13.0',
]

[project.urls]
Expand Down
Loading