Skip to content

Commit

Permalink
Adding production deps
Browse files Browse the repository at this point in the history
  • Loading branch information
Ilja Orlovs committed Jan 20, 2018
1 parent 67aaf68 commit 68bdbf2
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ language: python
python:
- "2.7"
install:
- pip install -r requirements_dev.txt
- pip install -r requirements/develop.txt
script:
- py.test
after_success:
Expand Down
2 changes: 0 additions & 2 deletions requirements.txt

This file was deleted.

2 changes: 1 addition & 1 deletion requirements_dev.txt → requirements/develop.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ pytest-pep8>=1.0.6
pytest-runner>=3.0
python-coveralls>=2.9.1

-r requirements.txt
-r production.txt
2 changes: 2 additions & 0 deletions requirements/production.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@

SQLAlchemy>=1.0.0
15 changes: 14 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,29 @@
#!/usr/bin/env python
import os

from setuptools import setup

THIS_DIR = os.path.dirname(os.path.abspath(__file__))

def get_production_requirements():
"""Returns list of production requirements from ./requirements/production.txt"""
with open(os.path.join(THIS_DIR, "requirements", "production.txt"), "r") as fobj:
return [
line.strip()
for line in fobj.readlines()
if line.strip()
]

setup(
name='sqlalchemy_fsm',
packages=['sqlalchemy_fsm'],
py_modules=['sqlalchemy_fsm'],
description='Finite state machine field for sqlalchemy',
author='Peter & Ilja',
author_email='ilja@wise.fish',
version='0.0.1',
version='0.0.2',
url='https://github.com/dagoof/sqlalchemy-fsm',
install_requires=get_production_requirements(),
setup_requires=['pytest-runner'],
tests_require=['pytest']
)

0 comments on commit 68bdbf2

Please sign in to comment.