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

Transition from using setup.py to pyproject.toml to specify project metadata #338

Merged
merged 11 commits into from
Mar 5, 2024

Conversation

R-Palazzo
Copy link
Contributor

CU-86azg1hg1
Resolve #333

@R-Palazzo R-Palazzo requested a review from a team as a code owner March 1, 2024 09:54
@sdv-team
Copy link
Contributor

sdv-team commented Mar 1, 2024

@R-Palazzo R-Palazzo removed the request for review from a team March 1, 2024 09:54
pyproject.toml Outdated Show resolved Hide resolved
@R-Palazzo R-Palazzo changed the base branch from main to issue-332-ctgan-float March 1, 2024 15:34
@R-Palazzo R-Palazzo changed the base branch from issue-332-ctgan-float to main March 1, 2024 15:34
pyproject.toml Outdated
"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'",
"scikit-learn>=1.1.3,<2;python_version>='3.10'",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

here we should add appropriate bounds for all the python versions we support

Suggested change
"scikit-learn>=1.1.3,<2;python_version>='3.10'",
"scikit-learn>=0.24,<2;python_version<'3.10'",
"scikit-learn>=1.1.0,<2;python_version>='3.10' and python_version<'3.11'",
"scikit-learn>=1.1.3,<2;python_version>='3.11'",

pyproject.toml Outdated Show resolved Hide resolved
pyproject.toml Show resolved Hide resolved
@R-Palazzo R-Palazzo force-pushed the issue-333-pyproject branch from 20a11de to 5aac2e1 Compare March 5, 2024 10:28
Copy link
Contributor

@amontanez24 amontanez24 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!


[tool.setuptools]
include-package-data = true

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One thing I forgot, you'll need this:

Suggested change
[tool.setuptools.dynamic]
version = {attr = 'ctgan.__version__'}

@R-Palazzo R-Palazzo merged commit 2e5ba4b into main Mar 5, 2024
45 checks passed
@R-Palazzo R-Palazzo deleted the issue-333-pyproject branch March 5, 2024 16:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Transition from using setup.py to pyproject.toml to specify project metadata
5 participants