-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup.py
58 lines (55 loc) · 1.98 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
from logging import getLogger
from pathlib import Path
from setuptools import find_packages, setup # type: ignore #
logger = getLogger(__name__)
try:
with open(str(Path(__file__).parent / "README.md"), "r") as fh:
long_description = fh.read()
except FileNotFoundError as e:
logger.error("Could not find the README.md file during setup install")
try:
with open(str(Path(__file__).parent / "VERSION"), "r") as fh:
version = fh.read().strip()
except FileNotFoundError:
logger.error("Could not find the VERSION file during setup install")
setup(
name='odeon',
version=version, # Replace with your desired version or load from file as before
author='samy khelifi',
author_email='samy.khelifi@ign.fr',
description='odeon is a framework for development of machine learning pipeline in remote sensing',
long_description=long_description,
long_description_content_type='text/markdown',
url='https://github.com/IGNF/odeon',
project_urls={
'Bug Tracker': 'https://github.com/IGNF/odeon/issues'
},
classifiers=[
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'License :: OSI Approved :: Apache Software License',
'Operating System :: OS Independent',
'Topic :: Scientific/Engineering :: Artificial Intelligence',
'Topic :: Scientific/Engineering :: Image Recognition'
],
packages=find_packages('.'),
python_requires='>=3.10',
install_requires=[
'omegaconf',
'jsonargparse',
'pandas',
'geopandas>=0.10',
'rasterio>=1.1.5',
'torch>=1.6',
'pytorch-lightning>=2.1'
],
entry_points={
'console_scripts': [
'odeon = odeon.main:main'
]
},
package_data={'odeon': ['../VERSION', '../README.md', '../LICENSE', '../README_fr-FR.md']},
include_package_data=True,
)