pypi-rename
pypi-rename copied to clipboard
setup.cfg instead of setup.py
I just used this to build a rename package: https://github.com/adamchainz/django-feature-policy-shim/ . I converted from setup.py to setup.cfg since it's simpler/smaller/more robust. So this is an FYI, if you want to convert to setup.cfg, there's an example there. There's also the tool setup-py-upgrade to automatically convert projects.
And thanks for the template! 👍
@adamchainz I would like to rename my package but ensure that import old-package works just as it does today? Would know any way around.
You can make importing the old package replace itself in sys.modules with the new one. But it's likely not worth the effort since it makes debugging harder.