Skip to content

Conversation

@s-t-e-v-e-n-k
Copy link
Contributor

Since Python 3.13 has removed the crypt module, add legacycrypt to the requirements if we're using that version of Python, importing it if the crypt module isn't found.

Fixes #594

@itdependsnetworks
Copy link
Contributor

Thanks for this!!

just a few things

  1. we have to make this optional. Can you add to [tool.poetry.extras] and make it optional =true
  2. Change the import to only happen within the function and raise an error if not installed.

Since Python 3.13 has removed the crypt module, add legacycrypt to the
optional requirements, attempting to import it if the crypt module
isn't found.

Fixes networktocode#594
@s-t-e-v-e-n-k s-t-e-v-e-n-k force-pushed the use-legacycrypt-if-required branch from 3517bfc to 95569f6 Compare December 6, 2024 01:33
@s-t-e-v-e-n-k
Copy link
Contributor Author

Thanks for this!!

just a few things

  1. we have to make this optional. Can you add to [tool.poetry.extras] and make it optional =true
  2. Change the import to only happen within the function and raise an error if not installed.

Thanks for the super fast review, I've pushed up those changes.

@itdependsnetworks
Copy link
Contributor

itdependsnetworks commented Dec 23, 2024

Merged in #603

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Py 3.13 support?

2 participants