Skip to content

Conversation

@jakeymac
Copy link
Contributor

@jakeymac jakeymac commented Nov 21, 2025

Description

This merge request addresses a lack of errors when installing a Tethys App that has a setup.py file. Previously, the installation process would simply fail with no error message. This merge requests adds a deprecation warning to let users know to migrate to a pyproject.toml file.

Changes Made to Code

  • Added deprecation warning if a setup.py file is present in the installation command
  • Added test for coverage.

Quality Checks

  • At least one new test has been written for new code
  • New code has 100% test coverage
  • Code has been formatted with Black
  • Code has been linted with flake8
  • Docstrings for new methods have been added
  • The documentation has been updated appropriately

* Updated error checking in install command

* Addd test for coverage
@coveralls
Copy link

coveralls commented Nov 24, 2025

Coverage Status

coverage: 100.0%. remained the same
when pulling c060f62 on app-install-fix
into 582989c on main.

…etup.py regardlessof the install failing or not

* Added error handling and error messages to setup.py parser helper function

* Moved logic that handles user input to delete the old setup.py file or not to a post process function

* Removed new tethys_app-directory argument and reverted uses of it to already existing "directory" argument
@swainn swainn merged commit d78a02f into main Dec 12, 2025
29 checks passed
@swainn swainn deleted the app-install-fix branch December 12, 2025 20:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE] Create migration path for existing apps to use pyproject.toml

5 participants