-
Notifications
You must be signed in to change notification settings - Fork 6
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
replace HalfspaceIntersection
import and pin scipy >= 1.8.0
, sort imports
#6
Conversation
@tschaume Perhaps you could review this as well? Thanks! |
@DanielYang59, should a minimum version of scipy be specified in the setup.py for this change? |
Sorry it seems I pinged the wrong person 😅
Yes that's a solid point, scipy 1.8.0 is the version that deprecated access to these private APIs so I believe it would be safe to pin Meanwhile I noticed many external packages (networkx, numpy, pandas, plotly, monty, scipy) are not listed for some reason? I sorted the imports to make these more visible. pymatgen-analysis-alloys/setup.py Line 21 in 75a88e7
|
No worries about the ping, I was just added recently to help spread the maintenance workload around for the MP team That said, this PR has spread quite a bit beyond the initial scope of the original deprecated scipy import into packaging, workflow management, and also code style? A cursory check looks like these changes are okay, but in the future please raise these sorts of "housekeeping" changes as either issues or more targeted PRs. I do appreciate the enthusiasm though. And in the spirit of housekeeping and maintenance, since this repo is not under active development, and unless that changes, we will likely only be considering contributions that help to maintain the stability of the package. |
Forgot to ask, would you mind changing the title + description to better match the current scope of your PR? |
Sorry for the mess. I would migrate these unrelated changes to another PR :) |
No need to apologize, and it’s fine to keep everything as is in this PR.
Just asking to keep it in mind for future contributions to this repo to
keep the overhead low for maintenance.
…On Tue, Oct 8, 2024 at 6:51 PM Haoyu (Daniel) YANG ***@***.***> wrote:
That said, this PR has spread quite a bit beyond the initial scope of the
original deprecated scipy import into packaging, workflow management, and
also code style? A cursory check looks like these changes are okay, but in
the future please raise these sorts of "housekeeping" changes as either
issues or more targeted PRs. I do appreciate the enthusiasm though.
Sorry for the mess. I would migrate these unrelated changes to another PR
:)
—
Reply to this email directly, view it on GitHub
<#6 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AIPH7ACGCEHDQIXS2PXA5QLZ2SDYJAVCNFSM6AAAAABPG2HSKKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMBRGEYTEOBYGQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
403e83c
to
c783cd1
Compare
Of course! I would keep the sorting of imports in this PR (otherwise it's hard to see what external packages are required) and addition of |
HalfspaceIntersection
importHalfspaceIntersection
import and pin scipy >= 1.8.0
, sort imports
That is fine by me.
And since I see you are choosing to revert some of your commits, when you
are satisfied with the state of your changes please rebase your changes to
keep the git history clean.
When you are happy with the changes just leave a message that you are done
making changes.
If you do finish today, I will go ahead with merging this tomorrow and try
getting a new release up on pypi.
…On Tue, Oct 8, 2024 at 7:25 PM Haoyu (Daniel) YANG ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In setup.py
<#6 (comment)>
:
> extras_require={},
+ setup_requires=["setuptools>=64"],
I might keep this line of change in this PR, as setuptools < 58.3.0 is
known to have buggy behaviour with package data handling
<https://github.com/abravalheri/experiment-setuptools-package-data>
—
Reply to this email directly, view it on GitHub
<#6 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AIPH7AF3LZ7FU7YKTRR4ZBLZ2SHZNAVCNFSM6AAAAABPG2HSKKVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZDGNJVHAZDOOJXHA>
.
You are receiving this because you commented.Message ID:
***@***.***
.com>
|
I don't think I would make further commit to the PR. Can you perhaps squash all commits? Thanks for your time. |
The reason why some external packages are not specified is because this is a add-on package to pymatgen. Pymatgen is a requirement and already sets a lot of the package requirements (e.g., numpy, scipy, etc.). Specifying these versions would create a maintenance headache because there can be conflict between the pymatgen version and the addon specification. So unless there is a good reason to peg to a different version from pymatgen, we just specify the pymatgen version. |
Thanks for weighing in @shyuep, definitely makes a lot of sense. @DanielYang59, in light of that, I am going to close this PR due to the git history and I will fix the deprecated scipy import that you first reported as a follow up |
closing in favor of #8 |
Hi thanks for the comment @shyuep I appreciate that.
This PR doesn't pin specific versions of those newly added external packages so I don't think there would be version conflicts.
Good to know, admittedly this is a good way to include dependency without duplicate as it's intended as an add-on package (thought it's just a standalone namespace package). As the |
HalfspaceIntersection
import and pinscipy >= 1.8.0
, getting: