File tree 7 files changed +13
-86
lines changed
7 files changed +13
-86
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ format: fix
55
55
################
56
56
# Other Checks #
57
57
################
58
- .PHONY: check-manifest checks check annotate
58
+ .PHONY: check-manifest checks check
59
59
60
60
check-manifest: ## check python sdist manifest with check-manifest
61
61
check-manifest -v
@@ -65,9 +65,6 @@ checks: check-manifest
65
65
# alias
66
66
check: checks
67
67
68
- annotate: ## run python type annotation checks with mypy
69
- python -m mypy ./{{module}}
70
-
71
68
#########
72
69
# TESTS #
73
70
#########
Original file line number Diff line number Diff line change @@ -102,34 +102,14 @@ artifacts = [
102
102
src = "/"
103
103
104
104
[tool.hatch.build.targets.sdist]
105
- include = [
106
- "/{{module}}",
107
- "/js",
108
- "LICENSE",
109
- "README.md",
110
- ]
105
+ packages = ["{{module}}", "js"]
111
106
exclude = [
112
- ".copier-answers.yml",
113
- "/.github",
114
- "/.gitattributes",
115
- "/.gitignore",
116
- "/docs",
107
+ "/js/dist",
117
108
"/js/node_modules",
118
109
]
119
110
120
111
[tool.hatch.build.targets.wheel]
121
- include = [
122
- "/{{module}}",
123
- ]
124
- exclude = [
125
- ".copier-answers.yml",
126
- "/.github",
127
- "/.gitattributes",
128
- "/.gitignore",
129
- "/pyproject.toml",
130
- "/docs",
131
- "/js/node_modules",
132
- ]
112
+ packages = ["{{module}}"]
133
113
134
114
[tool.hatch.build.hooks.jupyter-builder]
135
115
build-function = "hatch_jupyter_builder.npm_builder"
Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ format: fix
55
55
################
56
56
# Other Checks #
57
57
################
58
- .PHONY: check-manifest checks check annotate
58
+ .PHONY: check-manifest checks check
59
59
60
60
check-manifest: ## check python sdist manifest with check-manifest
61
61
check-manifest -v
@@ -65,9 +65,6 @@ checks: check-manifest
65
65
# alias
66
66
check: checks
67
67
68
- annotate: ## run python type annotation checks with mypy
69
- python -m mypy ./{{module}}
70
-
71
68
#########
72
69
# TESTS #
73
70
#########
Original file line number Diff line number Diff line change @@ -105,34 +105,14 @@ artifacts = [
105
105
src = " /"
106
106
107
107
[tool.hatch.build.targets.sdist]
108
- include = [
109
- " /{{module}} " ,
110
- " /js " ,
111
- " LICENSE " ,
112
- " README.md " ,
113
- ]
108
+ packages = [" {{module}} " , " js " ]
114
109
exclude = [
115
- " .copier-answers.yml " ,
116
- " /.github " ,
117
- " /.gitattributes " ,
118
- " /.gitignore " ,
110
+ " /js /dist " ,
119
111
" /js /node_modules " ,
120
- " /docs " ,
121
112
]
122
113
123
114
[tool.hatch.build.targets.wheel]
124
- include = [
125
- " /{{module}} " ,
126
- ]
127
- exclude = [
128
- " .copier-answers.yml " ,
129
- " /.github " ,
130
- " /.gitattributes " ,
131
- " /.gitignore " ,
132
- " /pyproject.toml " ,
133
- " /docs " ,
134
- " /js /node_modules " ,
135
- ]
115
+ packages = [" {{module}} " ]
136
116
137
117
[tool.hatch.build.targets.wheel.shared-data]
138
118
" {{module}} /labextension " = " share /jupyter /labextensions /{{module}} "
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ develop: ## install dependencies and build library
7
7
python -m pip install -e .[develop]
8
8
9
9
build: ## build the python library
10
- python setup.py build build_ext --inplace
10
+ python -m build -n
11
11
12
12
install: ## install library
13
13
python -m pip install .
@@ -34,7 +34,7 @@ format: fix
34
34
################
35
35
# Other Checks #
36
36
################
37
- .PHONY: check-manifest checks check annotate
37
+ .PHONY: check-manifest checks check
38
38
39
39
check-manifest: ## check python sdist manifest with check-manifest
40
40
check-manifest -v
@@ -44,9 +44,6 @@ checks: check-manifest
44
44
# Alias
45
45
check: checks
46
46
47
- annotate: ## run python type annotation checks with mypy
48
- python -m mypy ./{{module}}
49
-
50
47
#########
51
48
# TESTS #
52
49
#########
Original file line number Diff line number Diff line change @@ -88,31 +88,10 @@ artifacts = []
88
88
src = "/"
89
89
90
90
[tool.hatch.build.targets.sdist]
91
- include = [
92
- "/{{module}}",
93
- "LICENSE",
94
- "README.md",
95
- ]
96
- exclude = [
97
- ".copier-answers.yml",
98
- "/.github",
99
- "/.gitattributes",
100
- "/.gitignore",
101
- "/docs",
102
- ]
91
+ packages = ["{{module}}"]
103
92
104
93
[tool.hatch.build.targets.wheel]
105
- include = [
106
- "/{{module}}",
107
- ]
108
- exclude = [
109
- ".copier-answers.yml",
110
- "/.github",
111
- "/.gitattributes",
112
- "/.gitignore",
113
- "/pyproject.toml",
114
- "/docs",
115
- ]
94
+ packages = ["{{module}}"]
116
95
117
96
[tool.hatch.build.targets.wheel.shared-data]
118
97
Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ format: fix
65
65
################
66
66
# Other Checks #
67
67
################
68
- .PHONY: check-manifest checks check annotate
68
+ .PHONY: check-manifest checks check
69
69
70
70
check-manifest: ## check python sdist manifest with check-manifest
71
71
check-manifest -v
@@ -75,9 +75,6 @@ checks: check-manifest
75
75
# alias
76
76
check: checks
77
77
78
- annotate: ## run python type annotation checks with mypy
79
- python -m mypy ./{{module}}
80
-
81
78
#########
82
79
# TESTS #
83
80
#########
You can’t perform that action at this time.
0 commit comments