Skip to content

Drop unsupported pytest-dotenv package#44

Open
RedLeader962 wants to merge 1 commit intodevfrom
fix-pytest-env-conflict
Open

Drop unsupported pytest-dotenv package#44
RedLeader962 wants to merge 1 commit intodevfrom
fix-pytest-env-conflict

Conversation

@RedLeader962
Copy link
Copy Markdown
Contributor

Description

Summary:

Package pytest-dotenv is not maintained and pytest-env version 1.6.0 (which is maintained) introduce a flag that conflict with pytest-dotenv

Issue NMO-834


Checklist:

Code related

  • I have made corresponding changes to the documentation (i.e.: function/class, script header, README.md)
  • I have commented hard-to-understand code
  • I have added tests that prove my fix is effective or that my feature works
  • All tests pass locally with my changes
  • My commit messages follow the conventional commits specification. See commit_msg_reference.md in the repository root for details

PR creation related

  • My pull request base ref branch is set to the dev branch (the build-system won't be triggered otherwise)
  • My pull request branch is up-to-date with the dev branch (the build-system will reject it otherwise)

PR description related

  • I have included a quick summary of the changes
  • I have indicated the related issue's id with # <issue-id> if changes are of type fix

Note for repository admins

Release PR related

  • Only repository admins have the privilege to push/merge on the default branch (ie: main) and the release branch.
  • Keep PR in draft mode until all the release reviewers are ready to push the release.
  • Once a PR from release -> main branch is created (not in draft mode), it triggers the build-system test
  • On merge to the main branch, it triggers the semantic-release automation

- Added guards to handle missing DNA template sources gracefully, ensuring
  that patches skip such scenarios with warnings instead of failing.
- Refactored logic in patch handling to support multi-line and delimiter-
  containing patterns using a Python-based replacement approach.
- Removed unsupported `pytest-dotenv` package, which conflicts with `pytest-env`,
  improving dependency compatibility.
- Enhanced backward compatibility for bash 3.2 in macOS by replacing associative
  arrays in patches with indexed arrays.
- Updated regression tests to validate fixes for bugs in previous patch versions.
- Minor cleanup and developer tools improvements to streamline patch application.

Issue NMO-834
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.

1 participant