-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathsetup.py
60 lines (55 loc) · 2.33 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# Copyright (C) <2018-2022> <Agence Data Services, DSI Pôle Emploi>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
import os
from setuptools import setup
# Get package directory
package_directory = os.path.dirname(os.path.abspath(__file__))
# Get package version (env variable or version file + +local)
version_path = os.path.join(package_directory, 'version.txt')
with open(version_path, 'r') as version_file:
version = version_file.read().strip()
version = os.getenv('VERSION') or f"{version}+local"
# Get package description
readme_path = os.path.join(package_directory, 'README.md')
with open(readme_path, 'r') as readme_file:
long_description = readme_file.read()
# Setup
setup(
name='gabarit',
version=version,
packages=['gabarit', 'gabarit.template_nlp', 'gabarit.template_num', 'gabarit.template_vision', 'gabarit.template_api'],
license='AGPL-3.0',
long_description=long_description,
long_description_content_type='text/markdown',
author="Agence Data Services PE Nantes",
author_email="[email protected]",
description="Kickstart your AI project as code",
url="https://github.com/France-Travail/gabarit",
platforms=['windows', 'linux'],
python_requires='>=3.8',
include_package_data=True,
install_requires=[
'Jinja2==3.0.3',
'packaging>=23.2'
],
entry_points={
'console_scripts': [
'generate_nlp_project = gabarit.template_nlp.generate_nlp_project:main',
'generate_num_project = gabarit.template_num.generate_num_project:main',
'generate_vision_project = gabarit.template_vision.generate_vision_project:main',
'generate_api_project = gabarit.template_api.generate_api_project:main',
],
}
)