proxy.py icon indicating copy to clipboard operation
proxy.py copied to clipboard

Migrate away from setuptools_scm_git_archive

Open tjni opened this issue 1 year ago • 2 comments

I'm packaging this in nixpkgs and would like to avoid a dependency on setuptools_scm_git_archive. I followed the migration instructions and picked >= 7.0.5 because I saw that there was a bug reported in https://github.com/pypa/setuptools_scm/issues/745 that was fixed in that version.

I do not know how to test this so help here is appreciated.

tjni avatar Aug 24 '23 20:08 tjni

@tjni We may need to look a little deeper to remove this dependency. At least, as of now, our code tries to import proxy.common._scm_version and absence of this file will lead to errors. In fact, this integration was a contribution by @webknjaz , adding him for more insights here.

abhinavsingh avatar Aug 26 '23 17:08 abhinavsingh

The change is correct. The archival file should provide more metadata that newer versions of setuptools-scm use. As long as you don't need to support ancient Python versions that setuptools-scm no longer supports, this is good to go.

webknjaz avatar Aug 27 '23 01:08 webknjaz

@webknjaz Thank you for your advice on this :). @tjni Back then workflows were broken and I had little bandwidth to invest into it. Today I have updated the develop branch so that workflows are stable again. Updated your branch, will try and merge once after workflow passes. Thank you folks.

abhinavsingh avatar Apr 11 '24 07:04 abhinavsingh

@tjni jFYI, I had to add back "setuptools-scm[toml]>=6,!=7.0.0,!=7.0.1,!=7.0.2" today because "setuptools-scm[toml]>=7.0.5" doesn't seem to support Python 3.6 https://pypi.org/project/setuptools-scm/7.0.5/

I am not sure why this never triggered an error before till now. But, workflow failures started happening in this PR

  • https://github.com/abhinavsingh/proxy.py/pull/1452

@webknjaz Wondering if you observe any typo/glaring issue in the PR. It simply migrates away from requirements* files to setup.cfg extra_require configuration.

abhinavsingh avatar Aug 12 '24 04:08 abhinavsingh