From 87b66638bac2fb94a566bbc1b594a45af27bfcfc Mon Sep 17 00:00:00 2001 From: Nicolas Godet <39594821+nicogodet@users.noreply.github.com> Date: Thu, 15 Feb 2024 08:50:11 +0100 Subject: [PATCH 1/5] Add setup.py --- setup.py | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 setup.py diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..c2368d5 --- /dev/null +++ b/setup.py @@ -0,0 +1,30 @@ +#!/usr/bin/env python + +from glob import glob +from setuptools import find_packages, setup + +from tatooinemesher import VERSION + + +EXCLUDE_FROM_PACKAGES = ['cli', 'tests'] + + +with open('requirements.txt') as f: + requirements = f.read().splitlines() + +cli_files = [] +for file in glob('cli/*.py'): + if not file.endswith('__init__.py'): + cli_files.append(file) + +setup( + name='TatooineMesher', + version=VERSION, + author='Luc Duron', + author_email='l.duron@cnr.tm.fr', + packages=find_packages(exclude=EXCLUDE_FROM_PACKAGES), + scripts=cli_files, + install_requires=requirements, + description='Python library for Telemac post-processing tasks', + url='https://github.com/CNR-Engineering/TatooineMesher', +) \ No newline at end of file From 896274d08ec0d1220542f0efab2860d6a157ef5c Mon Sep 17 00:00:00 2001 From: Nicolas Godet <39594821+nicogodet@users.noreply.github.com> Date: Thu, 15 Feb 2024 08:58:28 +0100 Subject: [PATCH 2/5] Tweak --- requirements.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/requirements.txt b/requirements.txt index 75101be..ba6c0b3 100644 --- a/requirements.txt +++ b/requirements.txt @@ -6,5 +6,5 @@ pyshp>=2.0 scipy shapely triangle --e git+https://github.com/CNR-Engineering/Crue10_tools.git#egg=Crue10_tools>=4.0 --e git+https://github.com/CNR-Engineering/PyTelTools.git#egg=PyTelTools +# -e git+https://github.com/CNR-Engineering/Crue10_tools.git#egg=Crue10_tools>=4.0 +# -e git+https://github.com/CNR-Engineering/PyTelTools.git#egg=PyTelTools From d73932f35009c921550bf5654c462646492f84f8 Mon Sep 17 00:00:00 2001 From: nicogodet Date: Fri, 16 Feb 2024 08:45:29 +0100 Subject: [PATCH 3/5] Update requirements.txt --- requirements.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/requirements.txt b/requirements.txt index ba6c0b3..0d16000 100644 --- a/requirements.txt +++ b/requirements.txt @@ -6,5 +6,5 @@ pyshp>=2.0 scipy shapely triangle -# -e git+https://github.com/CNR-Engineering/Crue10_tools.git#egg=Crue10_tools>=4.0 -# -e git+https://github.com/CNR-Engineering/PyTelTools.git#egg=PyTelTools +Crue10_tools @ git+https://github.com/CNR-Engineering/Crue10_tools.git@4.0 +PyTelTools @ git+https://github.com/CNR-Engineering/PyTelTools.git@master From 33a6306f23483910688429c34efea24e9e833cc4 Mon Sep 17 00:00:00 2001 From: nicogodet Date: Fri, 16 Feb 2024 08:50:56 +0100 Subject: [PATCH 4/5] Format --- setup.py | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/setup.py b/setup.py index c2368d5..4792f61 100644 --- a/setup.py +++ b/setup.py @@ -6,25 +6,25 @@ from tatooinemesher import VERSION -EXCLUDE_FROM_PACKAGES = ['cli', 'tests'] +EXCLUDE_FROM_PACKAGES = ["cli", "tests"] -with open('requirements.txt') as f: +with open("requirements.txt") as f: requirements = f.read().splitlines() cli_files = [] -for file in glob('cli/*.py'): - if not file.endswith('__init__.py'): +for file in glob("cli/*.py"): + if not file.endswith("__init__.py"): cli_files.append(file) setup( - name='TatooineMesher', + name="TatooineMesher", version=VERSION, - author='Luc Duron', - author_email='l.duron@cnr.tm.fr', + author="Luc Duron", + author_email="l.duron@cnr.tm.fr", packages=find_packages(exclude=EXCLUDE_FROM_PACKAGES), scripts=cli_files, install_requires=requirements, - description='Python library for Telemac post-processing tasks', - url='https://github.com/CNR-Engineering/TatooineMesher', -) \ No newline at end of file + description="Python library for Telemac post-processing tasks", + url="https://github.com/CNR-Engineering/TatooineMesher", +) From 0b1e4ffbc9024969d1104b94ce02cc8df0a3210d Mon Sep 17 00:00:00 2001 From: Luc DURON Date: Mon, 19 Feb 2024 15:44:56 +0100 Subject: [PATCH 5/5] Fix description and EXCLUDE_FROM_PACKAGES --- setup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 4792f61..c7de03e 100644 --- a/setup.py +++ b/setup.py @@ -6,7 +6,7 @@ from tatooinemesher import VERSION -EXCLUDE_FROM_PACKAGES = ["cli", "tests"] +EXCLUDE_FROM_PACKAGES = ["cli", "media"] with open("requirements.txt") as f: @@ -25,6 +25,6 @@ packages=find_packages(exclude=EXCLUDE_FROM_PACKAGES), scripts=cli_files, install_requires=requirements, - description="Python library for Telemac post-processing tasks", + description="Channel mesher and interpolator from 1D cross-sections and constraint lines", url="https://github.com/CNR-Engineering/TatooineMesher", )