Redmine #1487: handled dependencies in setup.py and adjusted resource handling
parent
d421cb3c03
commit
8409d2722f
@ -1,3 +1,2 @@
|
||||
/venv
|
||||
/lib
|
||||
/resources
|
||||
__pycache__
|
||||
tmp
|
@ -1,34 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
cd "$(dirname "$0")"
|
||||
cd ..
|
||||
|
||||
mkdir lib resources
|
||||
|
||||
## get dependencies
|
||||
cd lib
|
||||
git clone git@gitea.cjvt.si:ozbolt/luscenje_struktur.git
|
||||
git clone git@gitea.cjvt.si:generic/xml_schemas.git
|
||||
cd ..
|
||||
|
||||
## prepare python environment
|
||||
python3 -m venv venv
|
||||
source venv/bin/activate
|
||||
pip install wheel
|
||||
pip install lxml
|
||||
pip install psycopg2cffi
|
||||
pip install sqlalchemy
|
||||
pip install classla
|
||||
python -c "import classla; classla.download('sl', type='standard_jos', dir='resources/classla')"
|
||||
pip install lib/luscenje_struktur/
|
||||
pip install git+https://git@gitea.cjvt.si/generic/conversion_utils.git#egg=conversion_utils
|
||||
pip install package/
|
||||
deactivate
|
||||
|
||||
## put needed resources in place
|
||||
cd resources
|
||||
ln -s ../lib/luscenje_struktur/wani.py .
|
||||
ln -s ../lib/xml_schemas/resources/schema/structures.xsd .
|
||||
ln -s ../lib/xml_schemas/resources/schema/inventory.xsd .
|
||||
ln -s ../lib/xml_schemas/resources/schema/monolingual_dictionaries.xsd .
|
||||
cd ..
|
@ -1,10 +1,17 @@
|
||||
from setuptools import setup
|
||||
|
||||
setup(name='structure_assignment',
|
||||
version='0.1',
|
||||
version='0.2',
|
||||
description='Pipeline for parsing and assigning structures to arbitrary Slovenian strings',
|
||||
url='',
|
||||
url='https://gitea.cjvt.si/generic/structure_assignment_pipeline',
|
||||
author='Cyprian Laskowski',
|
||||
author_email='cyp@cjvt.si',
|
||||
packages=['structure_assignment'],
|
||||
install_requires=['lxml',
|
||||
'classla',
|
||||
'conversion_utils @ git+https://gitea.cjvt.si/generic/conversion_utils.git',
|
||||
'luscenje_struktur_loc @ git+https://gitea.cjvt.si/ozbolt/luscenje_struktur.git@i2198', # TODO: switch to master once luscenje_struktur's i2198 is merged into master
|
||||
'psycopg2cffi', # TODO: remove once luscenje_struktur takes care of it
|
||||
'sqlalchemy', # TODO: remove once luscenje_struktur takes care of it
|
||||
],
|
||||
zip_safe=True)
|
||||
|
Loading…
Reference in new issue