| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
build: Add support for python 3.14 and drop for python 3.11
# Conflicts: # src/diffpy/utils/_deprecator.py
Codecov Report✅ All modified and coverable lines are covered by tests. @@ Coverage Diff @@
## main #377 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 9 10 +1
Lines 516 567 +51
=========================================
+ Hits 516 567 +51
|
Sorry, something went wrong.
|
@sbillinge ready for review/merge. I also added a light tests for the deprecator just to be thorough |
Sorry, something went wrong.
There was a problem hiding this comment.
please see comments
Sorry, something went wrong.
| ) | ||
|
|
||
|
|
||
| def generate_deprecation_docstring(new_name, removal_version, new_base=None): |
There was a problem hiding this comment.
why did you remove this?
Sorry, something went wrong.
There was a problem hiding this comment.
It isnt used anywhere. my idea with it was to have it as a helper that could easily print the docstring then the user could copy/paste the docstring where it needs to go. I removed it because I felt like this was overkill but if you think its helpful we can add it back
Sorry, something went wrong.
There was a problem hiding this comment.
I wrote it because I was hoping for more uniformity. You could just print the docstring template and use it.
Sorry, something went wrong.
There was a problem hiding this comment.
@sbillinge oh whoops thought i wrote it 😂 . I'll add it back and make it more clear that this is for printing your docstring message.
Sorry, something went wrong.
|
|
||
|
|
||
| def build_deprecation_message( | ||
| def deprecation_message( |
There was a problem hiding this comment.
don't we want our function names to be verbs not nouns? I think I prefer build_deprecation_message?
Sorry, something went wrong.
There was a problem hiding this comment.
@sbillinge Okay we can change this
Sorry, something went wrong.
|
@sbillinge ready for review again |
Sorry, something went wrong.
|
@cadenmyers13 ok, I left a comment. Everything else looks fine. Thanks for getting the verb-name function going. |
Sorry, something went wrong.
|
@sbillinge because printing the docstring manually will be quite annoying i added a little cli tool that helps print it. Once approve, please merge this PR in scikit-package instructions: scikit-package/scikit-package#655 |
Sorry, something went wrong.
Added command line interface for generating template docstring for deprecated functions and updated references for loadData.
|
I updated the news to better reflect what is in here and will merge. Please could you make an issue on scikit-package to move the cli for the deprecation message to there (and remove it from here), which is a better place for it. We could also add instructions to the deprecation part of the docs and have it running is skpkg rather than here. We could leave the code here or move it over, I don't mind, but the cli makes more sense over there |
Sorry, something went wrong.
|
@sbillinge I created the issue. Lets leave the generator code here so deprecation stuff is in one place. I made an edit to one of the docstrings while you edited the news so i got a merge conflict (hints the merge commit). Anyways, this should be good now |
Sorry, something went wrong.
| @@ -1,6 +1,5 @@ | |||
| **Added:** | |||
|
|
|||
| * added a function in _deprecator to generate a deprecation message for copy pasting | |||
There was a problem hiding this comment.
moved to different news dep-msg-helper.rst with more description
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
closes #376