Skip to content

Conversation

@christian-oudard
Copy link
Contributor

Summary

  • Convert the project to use Poetry for dependency management
  • Configure pytest properly with pytproject.toml and pytest.ini
  • Fix timezone-dependent tests with freezegun for reliable testing in any environment
  • Update deprecated datetime method usages (utcnow, utcfromtimestamp)

Test plan

  • All 130 tests now pass with pytest
  • Tests are timezone-independent and run reliably in any environment
  • Backward compatible with older Python versions

- Add pyproject.toml for Poetry configuration
- Add pytest.ini and conftest.py for pytest support
- Update gitignore for Poetry and pytest artifacts
- Remove legacy setuptools files (setup.py, MANIFEST.in, requirements/)
- Use freezegun library to fix timezone issues in tests
- Fix UTC vs local time handling in tests
- Properly handle compatibility functions for older Python versions
- All unit tests now pass with pytest
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