Skip to content

Comments

pyproject: fully migrate to pyproject.toml from setup.py (bug 1917431)#1813

Merged
zzzeid merged 3 commits intomozilla:mainfrom
saschanaz:bug1917431
Sep 20, 2024
Merged

pyproject: fully migrate to pyproject.toml from setup.py (bug 1917431)#1813
zzzeid merged 3 commits intomozilla:mainfrom
saschanaz:bug1917431

Conversation

@saschanaz
Copy link
Contributor

Did not remove setup.py as black requires one. (Followng the compatibility block in https://setuptools.pypa.io/en/latest/userguide/pyproject_config.html)

Restricting to setuptools>=61 as it's the first version supporting pyproject.

Restricting to requires-python = ">= 3.8.1" as flake8 complained about mismatching python requirement.

@saschanaz saschanaz changed the title Bug 1917431 - Migrate to pyproject.toml from setup.py pyproject: fully igrate to pyproject.toml from setup.py (bug 1917431) Sep 7, 2024
@saschanaz saschanaz changed the title pyproject: fully igrate to pyproject.toml from setup.py (bug 1917431) pyproject: fully igrate to pyproject.toml from setup.py (bug 1917431) Sep 7, 2024
@zzzeid zzzeid changed the title pyproject: fully igrate to pyproject.toml from setup.py (bug 1917431) pyproject: fully migrate to pyproject.toml from setup.py (bug 1917431) Sep 9, 2024
pyproject.toml Outdated
Comment on lines 71 to 92
[project.optional-dependencies]
dev = [
"coverage==7.6.1",
"coveralls==4.0.1",
"mock==5.1.0",
"pytest==8.3.2",
"pytest-mock==3.14.0",
]
gui = [
"PySide6==6.6.*",
]
gui-dev = [
"pytest-qt==4.4.0",
]
linters = [
"flake8>=6.0.0",
"flake8-black",
"glean-parser",
"isort",
"mccabe",
"pyflakes",
]
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think for the most part, this section of the code will not actually be used and adding it might make it harder to maintain these lists. E.g., the "gui" is built via pyinstaller, and distributed via GitHub in CI (based on the requirements files), and the dev/linters is also installed the same way. What do you think?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That depends on what package manager is used, but given the recommended installation is to use the requirements.txt, I think we can skip this here.

Comment on lines -27 to -29
long_desc = """Regression range finder for Mozilla nightly builds.
For more information see the mozregression website:
http://mozilla.github.io/mozregression/"""
Copy link
Collaborator

Choose a reason for hiding this comment

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

Looks like this was dropped? It could result in more blankness on the main PyPI page.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

pyproject somehow does not support this anymore and accepts readme instead 👀 (line 28)

Comment on lines -27 to -29
long_desc = """Regression range finder for Mozilla nightly builds.
For more information see the mozregression website:
http://mozilla.github.io/mozregression/"""
Copy link
Contributor Author

Choose a reason for hiding this comment

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

pyproject somehow does not support this anymore and accepts readme instead 👀 (line 28)

pyproject.toml Outdated
Comment on lines 71 to 92
[project.optional-dependencies]
dev = [
"coverage==7.6.1",
"coveralls==4.0.1",
"mock==5.1.0",
"pytest==8.3.2",
"pytest-mock==3.14.0",
]
gui = [
"PySide6==6.6.*",
]
gui-dev = [
"pytest-qt==4.4.0",
]
linters = [
"flake8>=6.0.0",
"flake8-black",
"glean-parser",
"isort",
"mccabe",
"pyflakes",
]
Copy link
Contributor Author

Choose a reason for hiding this comment

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

That depends on what package manager is used, but given the recommended installation is to use the requirements.txt, I think we can skip this here.

@saschanaz saschanaz closed this Sep 19, 2024
@saschanaz saschanaz reopened this Sep 19, 2024
@zzzeid zzzeid merged commit 1b62e6d into mozilla:main Sep 20, 2024
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.

2 participants