Software Engineering Principles in Python
Adam Spannbauer
Machine Learning Engineer at Eastman
working in work_dir/requirements.txt
# Needed packages/versions
matplotlib
numpy==1.15.4
pycodestyle>=2.4.0
working with terminal
datacamp@server:~$ pip install -r requirements.txt
from setuptools import setup
setup(name='my_package',
version='0.0.1',
description='An example package for DataCamp.',
author='Adam Spannbauer',
author_email='[email protected]',
packages=['my_package'],
install_requires=['matplotlib',
'numpy==1.15.4',
'pycodestyle>=2.4.0'])
working inwork_dir/requirements.txt
# Specify where to install requirements from
--index-url https://pypi.python.org/simple/
# Needed packages/versions
matplotlib
numpy==1.15.4
pycodestyle>=2.4.0
Documentation: install_requires vs requirements files
datacamp@server:~/work_dir $ pip install .
Building wheels for collected packages: my-package
Running setup.py bdist_wheel for my-package ... done
Successfully built my-package
Installing collected packages: my-package
Successfully installed my-package-0.0.1
Software Engineering Principles in Python