-
Notifications
You must be signed in to change notification settings - Fork 13.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: consolidate the Superset python package metadata
Following up on #27859, where I introduced a new file `pyproject.toml` to set up the python project metadata, here I'd like to consolidate and modernize further by pushing as much as possible into pyproject.toml, except where things need to be dynamic, for which we'll keep using setup.py: - get rid of setup.cfg, everything there should be able to move to pyproject.toml - remove duplicate keys from setup.py and pyproject.toml - minimize/simplify setup.py
- Loading branch information
1 parent
870e948
commit 32458d8
Showing
3 changed files
with
31 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,7 +23,9 @@ build-backend = "setuptools.build_meta" | |
name = "apache-superset" | ||
description = "A modern, enterprise-ready business intelligence web application" | ||
readme = "README.md" | ||
dynamic = ["version", "scripts", "entry-points", "license", "requires-python"] | ||
dynamic = ["version", "scripts", "entry-points"] | ||
requires-python = "~=3.9" | ||
license = { file="LICENSE.txt" } | ||
authors = [ | ||
{ name = "Apache Software Foundation", email = "[email protected]" }, | ||
] | ||
|
@@ -197,3 +199,30 @@ development = [ | |
[project.urls] | ||
homepage = "https://superset.apache.org/" | ||
documentation = "https://superset.apache.org/docs/intro" | ||
|
||
|
||
[tool.isort] | ||
combine_as_imports = true | ||
include_trailing_comma = true | ||
line_length = 88 | ||
known_first_party = "superset" | ||
known_third_party = "alembic, apispec, backoff, celery, click, colorama, cron_descriptor, croniter, cryptography, dateutil, deprecation, flask, flask_appbuilder, flask_babel, flask_caching, flask_compress, flask_jwt_extended, flask_login, flask_migrate, flask_sqlalchemy, flask_talisman, flask_testing, flask_wtf, freezegun, geohash, geopy, holidays, humanize, isodate, jinja2, jwt, markdown, markupsafe, marshmallow, msgpack, nh3, numpy, pandas, parameterized, parsedatetime, pgsanity, pkg_resources, polyline, prison, progress, pyarrow, sqlalchemy_bigquery, pyhive, pyparsing, pytest, pytest_mock, pytz, redis, requests, selenium, setuptools, shillelagh, simplejson, slack, sqlalchemy, sqlalchemy_utils, sqlparse, typing_extensions, urllib3, werkzeug, wtforms, wtforms_json, yaml" | ||
multi_line_output = 3 | ||
order_by_type = false | ||
|
||
[tool.mypy] | ||
check_untyped_defs = true | ||
disallow_any_generics = true | ||
disallow_untyped_calls = true | ||
disallow_untyped_defs = true | ||
ignore_missing_imports = true | ||
no_implicit_optional = true | ||
warn_unused_ignores = true | ||
|
||
[tool.mypy."superset.migrations.versions.*"] | ||
ignore_errors = true | ||
|
||
[tool.mypy."tests.*"] | ||
check_untyped_defs = false | ||
disallow_untyped_calls = false | ||
disallow_untyped_defs = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters