Skip to content

Conversation

@BryceStevenWilley
Copy link
Contributor

All to make sure that our docassemble packages will work with pip / setuptools into the future.

There are few errors that pop up when installing packages on docassemble:

UserWarning: pkg_resources is deprecated as an API. See [https://setuptools.pypa.io/en/latest/pkg_resources.html.](https://setuptools.pypa.io/en/latest/pkg_resources.html.) The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81.
The namespace_packages parameter is deprecated.

Please replace its usage with implicit namespaces (PEP 420).
Usage of dash-separated 'description-file' will not be supported in future
versions. Please use the underscore name 'description_file' instead.

How this change was made

Selected repos that already had a docassemble/__init__.py file.

Ran:

gh repo list --limit 450 --json nameWithOwner --source SuffolkLITLab | jq -r '.[] .nameWithOwner' > repos.txt

turbolift foreach -- rm docassemble/__init__.py

Then:

  • Manually removed repos where the command failed

Then, using VS Code search-replace:

  • replaced find_packages with find_namespace_packages in setup.py.
  • Removed the namespace_package=['docassemble'], param in the setup.py.
  • description-file to description_file

This PR was generated using turbolift.

@nonprofittechy nonprofittechy merged commit aa33d20 into main Nov 25, 2025
8 checks passed
@nonprofittechy nonprofittechy deleted the turbolift-pip_setuptools_stuff branch November 25, 2025 21:37
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.

3 participants