diff --git a/requirements/dev.txt b/requirements/dev.txt index 2019c55..1731d45 100644 --- a/requirements/dev.txt +++ b/requirements/dev.txt @@ -28,7 +28,7 @@ pylint==2.4.4 # via yala pytest==5.4.1 # via pytest pyparsing==2.4.6 # via packaging pytest==5.4.1 # via -r dev.in -six==1.15.0 # via astroid, packaging, pip-tools, tox, virtualenv +six==1.16.0 # via astroid, packaging, pip-tools, tox, virtualenv toml==0.10.0 # via tox tox==3.15.0 # via -r dev.in typed-ast==1.4.1 # via astroid diff --git a/requirements/run.in b/requirements/run.in index 83c2e35..d0a4a36 100644 --- a/requirements/run.in +++ b/requirements/run.in @@ -1 +1,2 @@ -filelock +filelock==3.0.12 +etcd3==0.12.0 diff --git a/requirements/run.txt b/requirements/run.txt index c1adff7..be4b0c9 100644 --- a/requirements/run.txt +++ b/requirements/run.txt @@ -1 +1,20 @@ +# +# This file is autogenerated by pip-compile with python 3.6 +# To update, run: +# +# pip-compile --output-file=requirements/run.txt requirements/run.in +# +etcd3==0.12.0 + # via -r requirements/run.in filelock==3.0.12 + # via -r requirements/run.in +grpcio==1.43.0 + # via etcd3 +protobuf==3.19.1 + # via etcd3 +six==1.16.0 + # via + # etcd3 + # grpcio +tenacity==8.0.1 + # via etcd3 diff --git a/setup.cfg b/setup.cfg index 5007c9a..14fdfd8 100644 --- a/setup.cfg +++ b/setup.cfg @@ -4,6 +4,7 @@ exclude = .eggs,ENV,build,docs/conf.py,venv [yala] radon mi args = --min C pylint args = --disable=too-few-public-methods,too-many-public-methods,too-many-instance-attributes,super-init-not-called +linters=pylint,pycodestyle,isort [pydocstyle] add-ignore = D105,D107 diff --git a/setup.py b/setup.py index 79c7715..0e3d57e 100644 --- a/setup.py +++ b/setup.py @@ -207,7 +207,7 @@ def _install_deps_wheels(): """Python wheels are much faster (no compiling).""" print('Installing dependencies...') check_call([sys.executable, '-m', 'pip', 'install', '-r', - 'requirements/run.in']) + 'requirements/run.txt']) class DevelopMode(develop): @@ -267,6 +267,16 @@ def symlink_if_different(path, target): path.symlink_to(target) +def read_requirements(path="requirements/run.txt"): + """Read requirements file and return a list.""" + with open(path, "r", encoding="utf8") as file: + return [ + line.strip() + for line in file.readlines() + if not line.startswith("#") + ] + + setup(name=f'kytos_{NAPP_NAME}', version=NAPP_VERSION, description='Core NApps developed by the Kytos Team', @@ -274,7 +284,7 @@ def symlink_if_different(path, target): author='Kytos Team', author_email='of-ng-dev@ncc.unesp.br', license='MIT', - install_requires=['etcd3', 'filelock', 'flask', 'kytos'], + install_requires=read_requirements(), setup_requires=['pytest-runner'], tests_require=['pytest'], extras_require={