abhinavsingh / proxy.py

💫 Ngrok FRP Alternative • ⚡ Fast • 🪶 Lightweight • 0️⃣ Dependency • 🔌 Pluggable • 😈 TLS interception • 🔒 DNS-over-HTTPS • 🔥 Poor Man's VPN • ⏪ Reverse & ⏩ Forward • 👮🏿 "Proxy Server" framework • 🌐 "Web Server" framework • ➵ ➶ ➷ ➠ "PubSub" framework • 👷 "Work" acceptor & executor framework
https://abhinavsingh.com/proxy-py-a-lightweight-single-file-http-proxy-server-in-python/
BSD 3-Clause "New" or "Revised" License
2.91k stars 568 forks source link

Migrate away from setuptools_scm_git_archive #1345

Closed tjni closed 2 months ago

tjni commented 10 months ago

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.

abhinavsingh commented 10 months ago

@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.

webknjaz commented 10 months ago

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.

abhinavsingh commented 2 months ago

@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.