Skip to content

Commit a31833f

Browse files
committed
Use pipenv to install dependencies
1 parent e8636a1 commit a31833f

File tree

5 files changed

+408
-16
lines changed

5 files changed

+408
-16
lines changed

.travis.yml

+5-6
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
language: python
22
python:
3-
- 3.6
3+
- 3.6
44
install:
5-
- pip install sphinx sphinx-autobuild sphinx_rtd_theme
6-
- pip install recommonmark
7-
- pip install awscli
5+
- pip install pipenv
6+
- pipenv install --dev
87
script:
9-
- make html
8+
- make html
109
before_deploy:
11-
- aws s3 rm s3://docs.mattermost.com/ --recursive --region us-east-1
10+
- aws s3 rm s3://docs.mattermost.com/ --recursive --region us-east-1
1211
deploy:
1312
- provider: s3
1413
access_key_id: AKIAJXLDG4C2F4MIZP4Q

Makefile

+1-6
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,10 @@
33

44
# You can set these variables from the command line.
55
SPHINXOPTS =
6-
SPHINXBUILD = sphinx-build
6+
SPHINXBUILD = pipenv run sphinx-build
77
PAPER =
88
BUILDDIR = build
99

10-
# User-friendly check for sphinx-build
11-
ifeq ($(shell which $(SPHINXBUILD) >/dev/null 2>&1; echo $$?), 1)
12-
$(error The '$(SPHINXBUILD)' command was not found. Make sure you have Sphinx installed, then set the SPHINXBUILD environment variable to point to the full path of the '$(SPHINXBUILD)' executable. Alternatively you can add the directory with the executable to your PATH. If you don't have Sphinx installed, grab it from http://sphinx-doc.org/)
13-
endif
14-
1510
# Internal variables.
1611
PAPEROPT_a4 = -D latex_paper_size=a4
1712
PAPEROPT_letter = -D latex_paper_size=letter

Pipfile

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
[[source]]
2+
3+
url = "https://pypi.python.org/simple"
4+
verify_ssl = true
5+
name = "pypi"
6+
7+
8+
[dev-packages]
9+
10+
awscli = "*"
11+
12+
13+
[packages]
14+
15+
sphinx = "*"
16+
sphinx-autobuild = "*"
17+
sphinx-rtd-theme = "*"
18+
recommonmark = "*"

0 commit comments

Comments
 (0)