Skip to content

Commit

Permalink
Merge PR #4 from nicogodet/add-setup - Add setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
lucduron authored Feb 19, 2024
2 parents 9598805 + 0b1e4ff commit 18602e0
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 2 deletions.
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
30 changes: 30 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -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", "media"]


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="[email protected]",
packages=find_packages(exclude=EXCLUDE_FROM_PACKAGES),
scripts=cli_files,
install_requires=requirements,
description="Channel mesher and interpolator from 1D cross-sections and constraint lines",
url="https://github.com/CNR-Engineering/TatooineMesher",
)

0 comments on commit 18602e0

Please sign in to comment.