2021-02-09 00:24:34 +00:00
|
|
|
#!/usr/bin/env python
|
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
from setuptools import setup, find_packages
|
|
|
|
|
|
|
|
setup(
|
2021-10-26 19:32:06 +00:00
|
|
|
version=open('VERSION').read().strip(),
|
2021-02-09 00:24:34 +00:00
|
|
|
name='libretranslate',
|
|
|
|
license='GNU Affero General Public License v3.0',
|
2021-02-09 20:20:46 +00:00
|
|
|
description='Free and Open Source Machine Translation API. Self-hosted, no limits, no ties to proprietary services.',
|
|
|
|
author='LibreTranslate Authors',
|
|
|
|
author_email='pt@uav4geo.com',
|
2021-02-09 00:24:34 +00:00
|
|
|
url='https://libretranslate.com',
|
|
|
|
packages=find_packages(),
|
|
|
|
# packages=find_packages(include=['openpredict']),
|
|
|
|
# package_dir={'openpredict': 'openpredict'},
|
2021-02-18 18:44:26 +00:00
|
|
|
package_data={'': ['static/*', 'static/**/*', 'templates/*']},
|
2021-02-09 00:24:34 +00:00
|
|
|
include_package_data=True,
|
|
|
|
entry_points={
|
|
|
|
'console_scripts': [
|
2022-12-29 23:44:53 +00:00
|
|
|
'libretranslate=libretranslate.main:main',
|
|
|
|
'ltmanage=libretranslate.manage:manage'
|
2021-02-09 00:24:34 +00:00
|
|
|
],
|
|
|
|
},
|
|
|
|
|
2022-04-03 17:49:49 +00:00
|
|
|
python_requires='>=3.7.0',
|
2021-02-09 00:24:34 +00:00
|
|
|
long_description=open('README.md').read(),
|
|
|
|
long_description_content_type="text/markdown",
|
|
|
|
install_requires=open("requirements.txt", "r").readlines(),
|
2022-05-03 09:16:03 +00:00
|
|
|
tests_require=['pytest==7.1.2'],
|
2021-02-09 00:24:34 +00:00
|
|
|
setup_requires=['pytest-runner'],
|
|
|
|
classifiers=[
|
2021-02-09 13:46:11 +00:00
|
|
|
"License :: OSI Approved :: GNU Affero General Public License v3 ",
|
2021-02-09 00:24:34 +00:00
|
|
|
"Programming Language :: Python :: 3",
|
|
|
|
"Programming Language :: Python :: 3.7",
|
2022-02-07 10:15:52 +00:00
|
|
|
"Programming Language :: Python :: 3.8",
|
2022-05-03 09:09:55 +00:00
|
|
|
"Programming Language :: Python :: 3.9",
|
|
|
|
"Programming Language :: Python :: 3.10"
|
2021-02-09 00:24:34 +00:00
|
|
|
]
|
|
|
|
)
|