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

Modernize packaging. #599

Closed
wants to merge 4 commits into from

Conversation

hameerabbasi
Copy link
Collaborator

No description provided.

@codecov
Copy link

codecov bot commented Jul 1, 2023

Codecov Report

Merging #599 (dfda838) into master (fb4da47) will decrease coverage by 84.42%.
The diff coverage is 24.61%.

@@            Coverage Diff             @@
##           master    #599       +/-   ##
==========================================
- Coverage   92.16%   7.75%   -84.42%     
==========================================
  Files          20      19        -1     
  Lines        3305    3277       -28     
==========================================
- Hits         3046     254     -2792     
- Misses        259    3023     +2764     

Comment on lines +13 to +15
from ._coo.common import (
asCOO,
)

Check notice

Code scanning / CodeQL

Cyclic import Note

Import of module
sparse._coo.common
begins an import cycle.
sparse/_dok.py Dismissed Show dismissed Hide dismissed
sparse/_sparse_array.py Dismissed Show dismissed Hide dismissed
sparse/_umath.py Dismissed Show dismissed Hide dismissed
sparse/_umath.py Dismissed Show dismissed Hide dismissed
sparse/_coo/common.py Dismissed Show dismissed Hide dismissed
normalize_axis,
equivalent,
check_zero_fill_value,
from sparse._common import dot, matmul

Check notice

Code scanning / CodeQL

Cyclic import Note

Import of module
sparse._common
begins an import cycle.
sparse/_coo/core.py Dismissed Show dismissed Hide dismissed
sparse/tests/test_elemwise.py Dismissed Show dismissed Hide dismissed
Copy link
Contributor

@jamestwebber jamestwebber left a comment

Choose a reason for hiding this comment

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

Minor suggestion: you can drop flake8 entirely as ruff provides those on its own.

I'm having trouble figuring out if the universal bdist_wheel setting can be moved to pyproject.toml -- it feels like that should be supported, and is a bug in setuptools if not. But if it works then setup.cfg can be removed entirely.

It's possible a universal wheel is the default now? Haven't tested this though

@hameerabbasi
Copy link
Collaborator Author

Thanks for the review! Yeah, I was considering that as well.

@jamestwebber
Copy link
Contributor

Thanks for the review! Yeah, I was considering that as well.

I'm not sure I would call it a review in that I barely looked at most of the change 😂 but I will take a more thorough look later and test things out.

@jamestwebber
Copy link
Contributor

jamestwebber commented Jul 1, 2023

It looks like you already removed flake8, actually. Just a few references to it in the contributing docs.

As an experiment I removed setup.cfg, installed build and ran python -m build. It seems to build a universal wheel (it's named sparse-0.14.1.dev10+gdfda838.d20230701-py3-none-any.whl, at least) without any config, as well as an sdist. I'm not sure if that matches up with how you made releases before, though.

edit: I guess this isn't a true "universal" wheel that's compatible with Python 2, but I suspect that this isn't really supported anymore because Python 2 was sunset at the beginning of 2020. I don't think there's much value in building for it, certainly it's not worth supporting officially.

@hameerabbasi
Copy link
Collaborator Author

This was superceded by #616 and #617. Of course, further lints might be added to Ruff.

@hameerabbasi hameerabbasi deleted the modernize-setuptools branch January 5, 2024 06:24
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