Skip to content

Move package metadata into pyproject.toml and all other python code into separate file - #4970

Merged
marthacryan merged 46 commits into
masterfrom
use-pyprojecttoml
Feb 7, 2025
Merged

marthacryan merged 46 commits into
masterfrom
use-pyprojecttoml

Conversation

@marthacryan

@marthacryan marthacryan commented Jan 14, 2025 •

Copy link
Copy Markdown
Contributor

Fixes #4811. Custom commands are deprecated for setup.py files, so this PR moves those out of the setup.py. Using pyproject.toml is "strongly recommended" as well, so this PR also includes moving package metadata into that file.

Also, removes the conda recipe because this broke when we updated to pyproject.toml and through discussing it we decided to stop posting a conda recipe. See #5011

Also, moves the plotly/tests directory to the root and _plotly_utils/tests into tests/test_plotly_utils.

@marthacryan
marthacryan marked this pull request as draft January 14, 2025 23:01
@gvwilson gvwilson added feature something new P2 considered for next cycle labels Jan 15, 2025
Comment thread packages/python/plotly/commands.py Outdated
@marthacryan
marthacryan marked this pull request as ready for review January 30, 2025 21:39
Comment thread .circleci/config.yml
Comment thread .circleci/config.yml Outdated
Comment thread packages/python/plotly/pyproject.toml Outdated
version = "6.0.0"
dynamic = ["dependencies"]

# TODO: check that this works

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Check this~!!

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Check the tar file to see what's included

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Comment thread packages/python/plotly/setup.cfg
Comment thread release.md
Comment thread MANIFEST.in Outdated
Comment thread .circleci/config.yml Outdated
@emilykl

emilykl commented Feb 5, 2025

Copy link
Copy Markdown
Contributor

@marthacryan I took another look through and this is looking good to me!

Comment thread pyproject.toml Outdated
@marthacryan
marthacryan merged commit e41dcab into master Feb 7, 2025
@marthacryan
marthacryan deleted the use-pyprojecttoml branch February 7, 2025 20:35

@emilykl emilykl left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature something new P2 considered for next cycle

Projects

None yet

Development

Successfully merging this pull request may close these issues.

simplify the over-complicated logic in setup.py

3 participants