Remove requirements files in favor of setuptools extra

This commit is contained in:
Simon Conseil
2020-03-15 22:09:02 -03:00
parent b785dcd58e
commit 6f932075d3
7 changed files with 15 additions and 25 deletions

View File

@@ -21,7 +21,7 @@ Install sigal in development mode::
Install additional dependencies for development (Sphinx, pytest), and optional
dependencies::
pip install -r requirements.txt
pip install -e .\[all,tests\]
Building the docs
-----------------

View File

@@ -8,7 +8,7 @@ With pip::
Or to install with optional dependencies (listed below)::
$ pip install sigal\[all\]
$ pip install sigal\[all,tests\]
To install the development version, see the :doc:`contribute`.
@@ -29,8 +29,8 @@ The mandatory dependencies are:
- Pillow
- Python Markdown
There are also a number of optional dependencies for the :doc:`plugins`, listed
in the ``requirements.txt`` file:
There are also a number of optional dependencies for the :doc:`plugins`,
installable with the ``[all]`` marker:
- Brotli, zopfli (compress assets plugin)
- Boto (upload to S3 plugin)

View File

@@ -1,8 +1,12 @@
version: 2
build:
image: latest
python:
version: 3.7
install:
- method: pip
path: .
- requirements: requirements-doc.txt
extra_requirements:
- docs

View File

@@ -1,3 +0,0 @@
-r requirements.txt
alabaster
Sphinx

View File

@@ -1,13 +0,0 @@
blinker
boto
brotli
click
coverage
feedgenerator
Jinja2
Markdown
Pillow
pilkit
pytest
pytest-cov
zopfli

View File

@@ -38,6 +38,8 @@ install_requires =
[options.extras_require]
all = boto; brotli; feedgenerator; zopfli
tests = pytest; pytest-cov
docs = Sphinx; alabaster
[options.packages.find]
exclude =

View File

@@ -9,8 +9,9 @@ python =
3.8: py38
[testenv]
deps =
-r {toxinidir}/requirements.txt
extras =
all
tests
commands = pytest --cov sigal --cov-report term-missing tests/
[testenv:check]
@@ -28,8 +29,7 @@ commands =
[testenv:doc]
whitelist_externals = make
deps =
-r {toxinidir}/requirements-doc.txt
extras = docs
usedevelop = true
commands =
make -C docs html