Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
MUYSC
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jorge Alfredo Jaimes Teherán
MUYSC
Commits
59ecda80
Unverified
Commit
59ecda80
authored
4 years ago
by
Elizabeth DuPre
Committed by
GitHub
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
️ REFACTOR: Adds .[all] for pip install (#898)
parent
6a401d0b
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
docs/contribute/intro.md
+1
-1
1 addition, 1 deletion
docs/contribute/intro.md
setup.py
+13
-6
13 additions, 6 deletions
setup.py
with
14 additions
and
7 deletions
docs/contribute/intro.md
+
1
−
1
View file @
59ecda80
...
...
@@ -20,7 +20,7 @@ cd jupyter-book
Next, install:
```
bash
pip
install
-e
.[
testing,code_style,sphinx
]
pip
install
-e
.[
all
]
```
This will install Jupyter Book locally, along with the packages needed to test it
...
...
This diff is collapsed.
Click to expand it.
setup.py
+
13
−
6
View file @
59ecda80
...
...
@@ -14,6 +14,7 @@ doc_reqs = [
for
ii
in
path_doc_reqs
.
read_text
(
encoding
=
"
utf8
"
).
split
(
"
\n
"
)
if
not
ii
.
startswith
(
"
#
"
)
]
# Test requirements
test_reqs
=
[
"
coverage
"
,
"
pytest>=3.6,<4
"
,
...
...
@@ -31,6 +32,17 @@ test_reqs = [
"
beautifulsoup4
"
,
"
cookiecutter
"
,
]
# Define all extras
extras
=
{
"
code_style
"
:
[
"
flake8<3.8.0,>=3.7.0
"
,
"
black
"
,
"
pre-commit==1.17.0
"
],
"
sphinx
"
:
doc_reqs
,
"
testing
"
:
test_reqs
,
"
pdfhtml
"
:
[
"
pyppeteer
"
],
}
# Set alias for all extras with "all"
extras
[
"
all
"
]
=
set
(
ii
for
jj
in
extras
.
values
()
for
ii
in
jj
)
setup
(
name
=
"
jupyter-book
"
,
version
=
version
,
...
...
@@ -69,12 +81,7 @@ setup(
"
sphinx-thebe>=0.0.6
"
,
"
sphinx-panels~=0.5.2
"
,
],
extras_require
=
{
"
code_style
"
:
[
"
flake8<3.8.0,>=3.7.0
"
,
"
black
"
,
"
pre-commit==1.17.0
"
],
"
sphinx
"
:
doc_reqs
,
"
testing
"
:
test_reqs
,
"
pdfhtml
"
:
"
pyppeteer
"
,
},
extras_require
=
extras
,
entry_points
=
{
"
console_scripts
"
:
[
"
jb = jupyter_book.commands:main
"
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment