pypi-rename icon indicating copy to clipboard operation
pypi-rename copied to clipboard

setup.cfg instead of setup.py

Open adamchainz opened this issue 3 years ago • 3 comments

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.

adamchainz avatar Mar 24 '21 15:03 adamchainz

And thanks for the template! 👍

adamchainz avatar Mar 24 '21 15:03 adamchainz

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

dipeshah avatar Sep 05 '21 05:09 dipeshah

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.

adamchainz avatar Sep 05 '21 07:09 adamchainz