Skip to content

Commit 8dad74c

Browse files
authored
Replace setup.py with pyproject.toml configured to use flit for builds (#2940)
* Add pyproject.toml file * Remove setup.py and MANIFEST.in files * Make dev version string follow PEP440
1 parent 9771eae commit 8dad74c

File tree

4 files changed

+44
-106
lines changed

4 files changed

+44
-106
lines changed

MANIFEST.in

Lines changed: 0 additions & 4 deletions
This file was deleted.

pyproject.toml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
[build-system]
2+
requires = ["flit_core >=3.2,<4"]
3+
build-backend = "flit_core.buildapi"
4+
5+
[project]
6+
name = "seaborn"
7+
description = "Statistical data visualization"
8+
authors = [{name = "Michael Waskom", email = "[email protected]"}]
9+
readme = "README.md"
10+
license = {file = "LICENSE.md"}
11+
dynamic = ["version"]
12+
classifiers = [
13+
"Intended Audience :: Science/Research",
14+
"Programming Language :: Python :: 3.7",
15+
"Programming Language :: Python :: 3.8",
16+
"Programming Language :: Python :: 3.9",
17+
"Programming Language :: Python :: 3.10",
18+
"License :: OSI Approved :: BSD License",
19+
"Topic :: Scientific/Engineering :: Visualization",
20+
"Topic :: Multimedia :: Graphics",
21+
"Operating System :: OS Independent",
22+
"Framework :: Matplotlib",
23+
]
24+
requires-python = ">=3.7"
25+
dependencies = [
26+
"numpy>=1.17",
27+
"pandas>=0.25",
28+
"matplotlib>=3.1",
29+
"typing_extensions; python_version < '3.8'",
30+
]
31+
32+
[project.optional-dependencies]
33+
stats = [
34+
"scipy>=1.3",
35+
"statsmodels>=0.10",
36+
]
37+
38+
[project.urls]
39+
Source = "https://github.com/mwaskom/seaborn"
40+
Docs = "http://seaborn.pydata.org"
41+
42+
[tool.flit.sdist]
43+
exclude = ["doc/_static/*.svg"]

seaborn/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@
1818
_orig_rc_params = mpl.rcParams.copy()
1919

2020
# Define the seaborn version
21-
__version__ = "0.12.0dev0"
21+
__version__ = "0.12.0.dev0"

setup.py

Lines changed: 0 additions & 101 deletions
This file was deleted.

0 commit comments

Comments
 (0)