mirror of
https://github.com/apache/superset.git
synced 2026-04-19 16:14:52 +00:00
chore: consolidate the Superset python package metadata (#27884)
This commit is contained in:
committed by
GitHub
parent
99c414e4da
commit
c225e17a75
9
setup.py
9
setup.py
@@ -23,12 +23,10 @@ from setuptools import find_packages, setup
|
||||
BASE_DIR = os.path.abspath(os.path.dirname(__file__))
|
||||
PACKAGE_JSON = os.path.join(BASE_DIR, "superset-frontend", "package.json")
|
||||
|
||||
|
||||
with open(PACKAGE_JSON) as package_file:
|
||||
version_string = json.load(package_file)["version"]
|
||||
|
||||
with open("README.md", encoding="utf-8") as f:
|
||||
long_description = f.read()
|
||||
|
||||
|
||||
def get_git_sha() -> str:
|
||||
try:
|
||||
@@ -54,10 +52,6 @@ with open(VERSION_INFO_FILE, "w") as version_file:
|
||||
version_string = version_string.replace("-dev", ".dev0")
|
||||
|
||||
setup(
|
||||
name="apache-superset",
|
||||
description="A modern, enterprise-ready business intelligence web application",
|
||||
long_description=long_description,
|
||||
long_description_content_type="text/markdown",
|
||||
version=version_string,
|
||||
packages=find_packages(),
|
||||
include_package_data=True,
|
||||
@@ -75,6 +69,5 @@ setup(
|
||||
"superset=superset.extensions.metadb:SupersetShillelaghAdapter"
|
||||
],
|
||||
},
|
||||
python_requires="~=3.9",
|
||||
download_url="https://www.apache.org/dist/superset/" + version_string,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user