Skip to content

Commit 9b94681

Browse files
committed
Setup flit
1 parent b379967 commit 9b94681

File tree

4 files changed

+62
-59
lines changed

4 files changed

+62
-59
lines changed

dash_bootstrap_components/__init__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
1+
"""Bootstrap themed components for use in Plotly Dash"""
12
import os
23
import sys
34

45
from . import themes # noqa
56
from . import _components
67
from ._components import * # noqa
78
from ._table import _generate_table_from_df
8-
from ._version import __version__ # noqa
9+
# from ._version import __version__ # noqa
10+
11+
__version__ = "0.0.1"
912

1013
_current_path = os.path.dirname(os.path.abspath(__file__))
1114

noxfile.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
"docs",
66
"examples",
77
"noxfile.py",
8-
"setup.py",
98
"tasks.py",
109
]
1110

pyproject.toml

Lines changed: 58 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,61 @@
1+
[build-system]
2+
requires = ["flit_core >=2,<4"]
3+
build-backend = "flit_core.buildapi"
4+
5+
[tool.flit.metadata]
6+
dist-name = "dash-bootstrap-components"
7+
module = "dash_bootstrap_components"
8+
author = "Faculty"
9+
author-email = "[email protected]"
10+
home-page = "https://dash-bootstrap-components.opensource.faculty.ai"
11+
classifiers = [
12+
"Framework :: Dash",
13+
"License :: OSI Approved :: Apache Software License",
14+
"Programming Language :: Python :: 2.7",
15+
"Programming Language :: Python :: 3.5",
16+
"Programming Language :: Python :: 3.6",
17+
"Programming Language :: Python :: 3.7",
18+
"Programming Language :: Python :: 3.8"
19+
]
20+
requires = ["dash>=1.9.0"]
21+
description-file = "landing-page.md"
22+
requires-python = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, <4"
23+
24+
[tool.flit.metadata.requires-extra]
25+
pandas = ["numpy", "pandas"]
26+
27+
[tool.flit.metadata.urls]
28+
Source = "https://github.com/facultyai/dash-bootstrap-components/"
29+
"Bug Reports" = "https://github.com/facultyai/dash-bootstrap-components/issues"
30+
31+
[tool.flit.sdist]
32+
include = [
33+
"dash_bootstrap_components/_components/*.py",
34+
"dash_bootstrap_components/_components/*.js",
35+
"dash_bootstrap_components/_components/*.json"
36+
]
37+
exclude = [
38+
".github",
39+
"demo",
40+
"docs",
41+
"examples",
42+
"R",
43+
"readme-images",
44+
"src",
45+
"tests",
46+
"webpack",
47+
".babelrc",
48+
".gitignore",
49+
".prettierrc",
50+
".Rbuildignore",
51+
"gulpfile.js",
52+
"jest.config.js",
53+
"noxfile.py",
54+
"package.json",
55+
"package-lock.json",
56+
"tasks.py"
57+
]
58+
159
[tool.black]
260
line-length = 79
361
exclude = "dash_bootstrap_components/_components|node_modules"
4-
5-
[build-system]
6-
requires = ["setuptools >= 40.8.0", "wheel"]
7-
build-backend = "setuptools.build_meta"

setup.py

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

0 commit comments

Comments
 (0)