Skip to content

Commit

Permalink
Move to Pipfile
Browse files Browse the repository at this point in the history
  • Loading branch information
anassinator committed Mar 13, 2018
1 parent e57ffc8 commit 066814d
Show file tree
Hide file tree
Showing 6 changed files with 144 additions and 13 deletions.
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ python:
- "3.5"
- "3.6"
install:
- pip install yapf
- pip install -r requirements.txt
- python setup.py install
- pip install pipenv yapf
- pipenv install
- pipenv run python setup.py install
script:
- yapf --diff --recursive .
21 changes: 21 additions & 0 deletions Pipfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
[[source]]

url = "https://pypi.python.org/simple"
verify_ssl = true
name = "pypi"


[packages]

numpy = "==1.14.2"
scipy = "==1.0.0"
six = "==1.11.0"
Theano = "==1.0.1"


[dev-packages]



[requires]

92 changes: 92 additions & 0 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 7 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@ To install, clone and run:
python setup.py install
You may also install the dependencies with `pipenv` as follows:

.. code-block:: bash
pipenv install
Usage
-----

Expand All @@ -32,7 +38,7 @@ After installing, :code:`import` as follows:
You can see the `examples <examples/>`_ directory for
`Jupyter <https://jupyter.org>`_ notebooks to see how common control problems
can be solved through iLQR.
can be solved through iLQR.

Dynamics model
^^^^^^^^^^^^^^
Expand Down
4 changes: 0 additions & 4 deletions requirements.txt

This file was deleted.

26 changes: 21 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,31 @@
#!/usr/bin/env python
"""iLQR setup."""

import os
from ilqr import __version__
from setuptools import setup

from ilqr import __version__


def read(fname):
"""Reads a file's contents as a string.
Args:
fname: Filename.
Returns:
File's contents.
"""
return open(os.path.join(os.path.dirname(__file__), fname)).read()


base_url = "https://github.com/anassinator/ilqr"
BASE_URL = "https://github.com/anassinator/ilqr"
INSTALL_REQUIRES = [
"numpy==1.14.2",
"scipy==1.0.0",
"six==1.11.0",
"Theano==1.0.1",
]

setup(
name="ilqr",
Expand All @@ -19,11 +35,11 @@ def read(fname):
author="Anass Al",
author_email="[email protected]",
license="GPLv3",
url=base_url,
download_url="{}/tarball/{}".format(base_url, __version__),
url=BASE_URL,
download_url="{}/tarball/{}".format(BASE_URL, __version__),
packages=["ilqr", "ilqr.examples"],
zip_safe=True,
install_requires=[read("requirements.txt").strip().split("\n")],
install_requires=INSTALL_REQUIRES,
classifiers=[
"Development Status :: 2 - Pre-Alpha",
"Intended Audience :: Developers",
Expand Down

0 comments on commit 066814d

Please sign in to comment.