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

Python build warnings and packaging for nixpkgs #97

Open
seberm opened this issue Dec 31, 2024 · 1 comment
Open

Python build warnings and packaging for nixpkgs #97

seberm opened this issue Dec 31, 2024 · 1 comment

Comments

@seberm
Copy link

seberm commented Dec 31, 2024

Hello @mezz64 ,
I am adding pyhik package into the nixpkgs:

I am getting these warnings when building the pyhik (version v0.3.2) package for Python v3.11 and also for Python v3.12. I think the problem is probably in the https://github.com/mezz64/pyHik/blob/master/setup.cfg file.

Usage of dash-separated 'description-file' will not be supported in future                                     
        versions. Please use the underscore name 'description_file' instead.                                                                                                                                                                  
                                                                                                                                                                                                                                              
        By 2025-Mar-03, you need to update your project and remove deprecated calls                                                                                                                                                           
        or your builds will no longer be supported.                                                                    
                                                                                                                                                                                                                                              
        See https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for details.         

It would also make sense to add support e.g. for pyproject.toml.

These are warnings I am getting:

Executing setuptoolsBuildPhase                                                                                         
/nix/store/8vahjr1pq7n7y7djl7r6s8i1y0a9rbg4-python3.11-setuptools-75.3.0/lib/python3.11/site-packages/setuptools/dist.py:495: SetuptoolsDeprecationWarning: Invalid dash-separated options                                                    
!!                                                         
                                                                                                                                                                                                                                              
        ********************************************************************************                               
        Usage of dash-separated 'description-file' will not be supported in future                                     
        versions. Please use the underscore name 'description_file' instead.                                                                                                                                                                  
                                                                                                                                                                                                                                              
        By 2025-Mar-03, you need to update your project and remove deprecated calls                                                                                                                                                           
        or your builds will no longer be supported.                                                                    
                                                                                                                                                                                                                                              
        See https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for details.                        
        ********************************************************************************                               
                                                                                                                                                                                                                                              
!!                                                                                                                                                                                                                                            
  opt = self.warn_dash_deprecation(opt, section)                                                                       
/nix/store/8vahjr1pq7n7y7djl7r6s8i1y0a9rbg4-python3.11-setuptools-75.3.0/lib/python3.11/site-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated.                                          
!!                               
                                                           
        ********************************************************************************                               
        Please avoid running ``setup.py`` directly.                                                                    
        Instead, use pypa/build, pypa/installer or other                                                               
        standards-based tools.                                                                                         
                                                                                                                       
        See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.                                                                                                                                                    
        ********************************************************************************

!!
@mezz64
Copy link
Owner

mezz64 commented Jan 2, 2025

I have limited time these days to maintain this library, but will happily review/approve a pull request if you'd like to submit changes to correct these items.

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

No branches or pull requests

2 participants