python-stringcase icon indicating copy to clipboard operation
python-stringcase copied to clipboard

Abandonware status of python-stringcase?

Open sodul opened this issue 2 years ago • 13 comments

This has seen no new release to pypi.org since 2017, almost 7 years, and there are an increasing number of syntax and deprecation warnings that will probably break with future versions of python or pip.

If this project is no longer being maintained, marking it as abandoned will allow others to know to avoid depending on it and someone else might fork and take over the project on pypi.org officially.

We do not use this package directly, but we have it as an indirect dependencies which cause a SyntaxWarning.

sodul avatar May 06 '24 20:05 sodul

https://github.com/home-assistant/core/issues/139040

I think at this point; @berislavlopac has the most recent / up to date fork. Would you be interested in publishing a package of it; @berislavlopac?

CloCkWeRX avatar Feb 25 '25 06:02 CloCkWeRX

@CloCkWeRX Sure, but do we have the access to the PyPI account? 🤔

berislavlopac avatar Feb 25 '25 19:02 berislavlopac

As you have already renamed the package, worth publishing under that alias perhaps :)

CloCkWeRX avatar Feb 25 '25 22:02 CloCkWeRX

@berislavlopac there is a procedure to take over abandoned packages in pypi.org, it takes several weeks as a security measure to avoid squatters taking over while the maintainer is on vacation but it works.

See https://stackoverflow.com/questions/45935230/transfer-ownership-of-pypi-packages and https://peps.python.org/pep-0541/.

Being able to re-use the existing name will help ensure that the current folks importing it will more likely get your new versions. Like I said we get syntax warnings due to transient dependencies and these transient dependencies are also lacking proper maintenance sometimes. As long as the do not set, incorrectly, strict limites to their requirements that will allow almost everyone to benefit from the newer fixes.

You can setup a GitHub action to release from GitHub automatically and securely once you get ownership of the project in pypi.org. I helped doing this for github.com/cleancut/green a while back.

sodul avatar Feb 25 '25 22:02 sodul

As of an hour ago, setuptools 78.0.0 was released, which prevents this package from being installed entirely, because it enforces PEP 517.

Environments that use poetry cannot install this package at all, and environments that use pip >=v24.0.0 must specify --no-use-pep517.

I would just like to ask that we prioritize the process mentioned above about a re-release, whether under a new name or taking over the abandoned package. This package is causing issues as an indirect dependency.

SanitizedMemory avatar Mar 24 '25 17:03 SanitizedMemory

The fix already seems to be present in this repo, but it is not in the 2017 release. Below is the error:

setuptools.errors.InvalidConfigError: Invalid dash-separated key 'description-file' in 'metadata' (setup.cfg), please use the underscore name 'description_file' instead.

SanitizedMemory avatar Mar 24 '25 17:03 SanitizedMemory

same issue with uv.

loeschzwerg avatar Mar 24 '25 18:03 loeschzwerg

This appears to be a broader issue caused by setuptools

The fix already seems to be present in this repo, but it is not in the 2017 release. Below is the error:

setuptools.errors.InvalidConfigError: Invalid dash-separated key 'description-file' in 'metadata' (setup.cfg), please use the underscore name 'description_file' instead.

MisterGlass avatar Mar 24 '25 20:03 MisterGlass

They have reverted this change in 78.0.2 but that only postpones this issue by ~9 months. We should still decide what is happening with this project going forward.

SanitizedMemory avatar Mar 24 '25 20:03 SanitizedMemory

As of an hour ago, setuptools 78.0.0 was released, which prevents this package from being installed entirely, because it enforces PEP 517.

This is not to do with PEP 517. That only defines an interface used between Pip and Setuptools. The contents and structure of setup.cfg are defined by Setuptools, not by any PEP; and Setuptools is still happy to build projects that lack a pyproject.toml entirely. (It's Pip that cares.)

What happened, rather, is that Setuptools made the rules stricter for its custom setup.cfg specification. This broke tons of packages that build from source. Ideally, this project would have published a wheel, but wheel format adoption wasn't great back then.

Environments that use poetry cannot install this package at all, and environments that use pip >=v24.0.0 must specify --no-use-pep517.

This option can accidentally fix the apparent problem, because without PEP 517, Pip cannot perform build isolation (creating a temporary virtual environment to build in, downloading and installing Setuptools there, and then building the package) - it can only use the Setuptools already in its own environment (and give an error if there isn't such).

Of course, it's moot now since the Setuptools change was reverted - but the more direct way to accomplish that is with --no-build-isolation. And there are other workarounds that were discussed on the Setuptools issue tracker.

I would just like to ask that we prioritize the process mentioned above about a re-release, whether under a new name or taking over the abandoned package. This package is causing issues as an indirect dependency.

The PEP 541 process can take a very long time. See e.g. my own experience when I didn't even want to own the name but simply ensure it was reserved according to new policy: https://github.com/pypi/support/issues/2771

I have manually forked the project (so that I can move the unreleased changes off to a branch, and audit them separately) and am in the process of preparing it for distribution under a new name.

zahlman avatar Mar 27 '25 03:03 zahlman

@zahlman would you consider taking ownership of the existing package on pypi.org?

There is a procedure for that and I posted about it earlier. It works and would ensure that all the other abandonware transient dependencies will at least have a change to pick your new versions with little disruption ... as long as they don't incorrectly bound the upper versions in their requirements.

https://github.com/okunishinishi/python-stringcase/issues/42#issuecomment-2683476828

You can always transfer ownership to someone else later.

sodul avatar Mar 27 '25 17:03 sodul

I am interested, but the process does take time and I wanted to have a fix available and published on PyPI as quickly as possible.

My fork is live: https://github.com/zahlman/stringcase-new and published: https://pypi.org/project/stringcase-new/

However, users who aren't afraid of a bit more integration work may prefer to switch to Casefy (see #34).

zahlman avatar Mar 27 '25 17:03 zahlman

This project seems abandoned. Switch to https://github.com/chrisdoherty4/python-case-converter

barseghyanartur avatar May 27 '25 08:05 barseghyanartur