Skip to content

Commit 0602356

Browse files
authored
Switch to flit build backend (#262)
1 parent 001c1a5 commit 0602356

File tree

6 files changed

+68
-127
lines changed

6 files changed

+68
-127
lines changed

.flake8

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
[flake8]
2+
ignore = E501, W503, E402
3+
builtins = c, get_config
4+
exclude =
5+
.cache,
6+
.github,
7+
docs,
8+
setup.py
9+
enable-extensions = G
10+
extend-ignore =
11+
G001, G002, G004, G200, G201, G202,
12+
# black adds spaces around ':'
13+
E203,
14+
per-file-ignores =
15+
# B011: Do not call assert False since python -O removes these calls
16+
# F841 local variable 'foo' is assigned to but never used
17+
jupyter_core/tests/*: B011, F841

.pre-commit-config.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -72,12 +72,6 @@ repos:
7272
scripts/jupyter
7373
)$
7474
75-
- repo: https://github.com/mgedmin/check-manifest
76-
rev: "0.48"
77-
hooks:
78-
- id: check-manifest
79-
stages: [manual]
80-
8175
- repo: https://github.com/sirosen/check-jsonschema
8276
rev: 0.14.3
8377
hooks:

MANIFEST.in

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

pyproject.toml

Lines changed: 51 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,55 @@
11
[build-system]
2-
requires = ["setuptools>=60.0"]
3-
build-backend = "setuptools.build_meta"
2+
requires = ["flit_core >=3.2,<4"]
3+
build-backend = "flit_core.buildapi"
4+
5+
[project]
6+
name = "jupyter_core"
7+
description = "Jupyter core package. A base package on which Jupyter projects rely."
8+
license = { file = "COPYING.md" }
9+
classifiers = [
10+
"Framework :: Jupyter",
11+
"Intended Audience :: Developers",
12+
"Intended Audience :: System Administrators",
13+
"Intended Audience :: Science/Research",
14+
"License :: OSI Approved :: BSD License",
15+
"Programming Language :: Python",
16+
"Programming Language :: Python :: 3"
17+
]
18+
requires-python = ">=3.7"
19+
dependencies = [
20+
"traitlets",
21+
"pywin32>=1.0 ; sys_platform == 'win32' and platform_python_implementation != 'PyPy'"
22+
]
23+
dynamic = ["version"]
24+
25+
[[project.authors]]
26+
name = "Jupyter Development Team"
27+
28+
29+
[project.readme]
30+
text = "There is no reason to install this package on its own."
31+
content-type = "text/plain"
32+
33+
[project.urls]
34+
Homepage = "https://jupyter.org"
35+
Documentation = "https://jupyter-core.readthedocs.io/"
36+
Funding = "https://numfocus.org/"
37+
Source = "https://github.com/jupyter/jupyter_core"
38+
Tracker = "https://github.com/jupyter/jupyter_core/issues"
39+
40+
[project.optional-dependencies]
41+
test = [
42+
"ipykernel",
43+
"pre-commit",
44+
"pytest",
45+
"pytest-cov",
46+
"pytest-timeout"
47+
]
48+
49+
[project.scripts]
50+
jupyter = "jupyter_core.command:main"
51+
jupyter-migrate = "jupyter_core.migrate:main"
52+
jupyter-troubleshoot = "jupyter_core.troubleshoot:main"
453

554
[tool.mypy]
655
check_untyped_defs = true

setup.cfg

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

setup.py

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

0 commit comments

Comments
 (0)