Skip to content

Commit 45a6f0b

Browse files
authored
Merge pull request #264 from php-http/feature/pipenv
Use pipenv to lock dependencies
2 parents 62af034 + cd67bf6 commit 45a6f0b

File tree

5 files changed

+185
-8
lines changed

5 files changed

+185
-8
lines changed

.travis.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,20 @@
11
sudo: false
22

3+
language: python
4+
5+
matrix:
6+
include:
7+
- python: 3.7
8+
dist: xenial
9+
sudo: true
10+
311
addons:
412
apt_packages:
513
- enchant
614

715
install:
8-
- pip install --user -r requirements.txt
16+
- pip install pipenv
17+
- pipenv install
918

1019
script:
1120
- make SPHINXOPTS='-nW' html

Makefile

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,10 @@
22

33
# You can set these variables from the command line.
44
SPHINXOPTS =
5-
SPHINXBUILD = sphinx-build
5+
SPHINXBUILD = pipenv run sphinx-build
66
PAPER =
77
BUILDDIR = _build
88

9-
# User-friendly check for sphinx-build
10-
ifeq ($(shell which $(SPHINXBUILD) >/dev/null 2>&1; echo $$?), 1)
11-
$(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/)
12-
endif
13-
149
# Internal variables.
1510
PAPEROPT_a4 = -D latex_paper_size=a4
1611
PAPEROPT_letter = -D latex_paper_size=letter

Pipfile

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
[[source]]
2+
name = "pypi"
3+
url = "https://pypi.org/simple"
4+
verify_ssl = true
5+
6+
[dev-packages]
7+
8+
[packages]
9+
sphinx-php = {git = "https://github.com/fabpot/sphinx-php.git"}
10+
sphinx-rtd-theme = "==0.1.6"
11+
sphinxcontrib-spelling = "==4.2.0"
12+
pyenchant = "~=2.0"
13+
docutils = "==0.12"
14+
Sphinx = "~=1.4.0"
15+
16+
[requires]
17+
python_version = "3.7"

Pipfile.lock

Lines changed: 156 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
git+https://github.com/fabpot/sphinx-php.git
1+
git+https://github.com/fabpot/sphinx-php.git#egg=sphinx-php
22
sphinx~=1.4.0
33
sphinx-rtd-theme==0.1.6
44
sphinxcontrib-spelling==4.2.0

0 commit comments

Comments
 (0)