diff --git a/setup.py b/setup.py index e48471a..3a57925 100644 --- a/setup.py +++ b/setup.py @@ -1,13 +1,29 @@ +import os from setuptools import setup, find_packages +from setuptools.command.install import install as _install + + +class install(_install): + def run(self): + self._fetch_lfs_objects() + _install.run(self) + + def _fetch_lfs_objects(self): + os.system("git lfs pull") + with open('requirements.txt') as f: required = f.read().splitlines() + setup( name='ppiref', author='Anton Bushuiev', - version='1.0', + version='1.2.0', packages=find_packages(), + install_requires=required, include_package_data=True, - install_requires=required + cmdclass={ + 'install': install, + } )