Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move towards standardized project layout/setup #211

Merged
merged 3 commits into from
May 20, 2024

Conversation

wlach
Copy link
Contributor

@wlach wlach commented May 20, 2024

  • Remove setup.py, replace with pyproject.toml
  • Use flit for building package/wheels
  • Move project logic to src/
  • Move tests to tests/

Layout/ideas borrowed from flask-debugtoolbar

* Remove setup.py, replace with pyproject.toml
* Use flit for building package/wheels
* Move project logic to `src/`
* Move tests to `tests/`

Layout/ideas borrowed from flask-debugtoolbar
@wlach wlach force-pushed the setuppy-to-pyproject-toml branch from a49f47d to 449fc1d Compare May 20, 2024 20:54
@@ -8,11 +8,12 @@
from unittest import mock

from flask import Flask
from speaklater import make_lazy_string

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think moving things to src/ made ruff realize that flask_mail was a 1st party package

@wlach wlach marked this pull request as ready for review May 20, 2024 20:56
description = "Flask extension for sending email"
readme = "README.md"
authors = [{ name = "Dan Jacob", email = "[email protected]" }]
maintainers = [{ name = "Pallets Ecosystem", email = "[email protected]" }]
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seemed to make sense to change this (modelled after flask-debugtoolbar, giving credit to the original author while making it clear who's the active maintainer)

pyproject.toml Outdated Show resolved Hide resolved
pyproject.toml Outdated Show resolved Hide resolved
pyproject.toml Outdated Show resolved Hide resolved
pyproject.toml Outdated Show resolved Hide resolved
@davidism davidism merged commit 517b68f into pallets-eco:main May 20, 2024
7 checks passed
@davidism davidism added this to the 0.10.0 milestone May 23, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 7, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants