Skip to content

Commit

Permalink
Make sure kinto[production] works.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rémy HUBSCHER committed Jul 3, 2015
1 parent a20c255 commit 695dde8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 14 deletions.
3 changes: 1 addition & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ $(INSTALL_STAMP): $(PYTHON)
touch $(INSTALL_STAMP)

install-postgres: $(INSTALL_STAMP)
# Since pip install ".[postgresql]" is not enough...
$(VENV)/bin/pip install "cliquet[postgresql]"
$(VENV)/bin/pip install -Ue ".[production]"

install-dev: $(INSTALL_STAMP) $(DEV_STAMP)
$(DEV_STAMP): $(PYTHON)
Expand Down
2 changes: 1 addition & 1 deletion docs/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ default. In order to install them, run:

::

pip install "kinto[postgresql]"
pip install "kinto[production]"


The following instructions will create a local ``postgres`` database on
Expand Down
18 changes: 7 additions & 11 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import os
import codecs
import os
from setuptools import setup, find_packages

here = os.path.abspath(os.path.dirname(__file__))
Expand All @@ -20,18 +20,15 @@ def read_file(filename):
'cornice',
'six',
'waitress',
'cliquet'
'cliquet' # Should be the last one.
]

POSTGRESQL_REQUIREMENTS = REQUIREMENTS + [
'cliquet[postgresql]'
]

MONITORING_REQUIREMENTS = REQUIREMENTS + [
'cliquet[monitoring]'
PRODUCTION_REQUIRES = REQUIREMENTS[:-1] + [
'cliquet[postgresql,monitoring]'
]

FXA_REQUIREMENTS = REQUIREMENTS + [
FXA_REQUIRES = REQUIREMENTS + [
'cliquet-fxa'
]

Expand Down Expand Up @@ -63,9 +60,8 @@ def read_file(filename):
zip_safe=False,
install_requires=REQUIREMENTS,
extras_require={
'postgresql': POSTGRESQL_REQUIREMENTS,
'monitoring': MONITORING_REQUIREMENTS,
'fxa': FXA_REQUIREMENTS,
'production': PRODUCTION_REQUIRES,
'fxa': FXA_REQUIRES,
},
entry_points=ENTRY_POINTS,
dependency_links=DEPENDENCY_LINKS)

0 comments on commit 695dde8

Please sign in to comment.