Skip to content

Commit

Permalink
Merge pull request #36 from opesci/compressionV2
Browse files Browse the repository at this point in the history
Move dependencies to setup.py install_requires
  • Loading branch information
navjotk authored Mar 29, 2019
2 parents aecb352 + 1731950 commit ccdcc77
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 11 deletions.
4 changes: 3 additions & 1 deletion pyrevolve/crevolve.pyx
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
# cython: language_level=2

cimport revolve_c

from enum import Enum
import warnings

from tools import OutputGrabber
from .tools import OutputGrabber


class RevolveError(Exception):
Expand Down
1 change: 1 addition & 0 deletions pyrevolve/revolve_c.pxd
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# cython: language_level=3
cdef extern from "../include/revolve_c.h":
ctypedef enum CACTION:
CACTION_ADVANCE,
Expand Down
8 changes: 1 addition & 7 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,2 @@
cython>=0.17
.
flake8
versioneer
pytest
blosc
contexttimer
pyzfp

8 changes: 5 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,14 @@ def extensions():
with open("README.md", "r") as fh:
long_description = fh.read()

with open('requirements.txt') as f:
required = f.read().splitlines()
s_required = ["cython>=0.17", "versioneer"]
i_required = ["blosc", "contexttimer", "pyzfp~=0.2rc1"]

configuration = {
'name': 'pyrevolve',
'packages': ["pyrevolve"],
'setup_requires': required,
'setup_requires': s_required,
'install_requires': i_required,
'ext_modules': lazy_cythonize(extensions),
'version': versioneer.get_version(),
'cmdclass': versioneer.get_cmdclass(),
Expand All @@ -51,6 +52,7 @@ def extensions():
'author': "Imperial College London",
'author_email': '[email protected]',
'license': 'MIT',
'zip_safe': False
}


Expand Down

0 comments on commit ccdcc77

Please sign in to comment.