-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge PR #4 from nicogodet/add-setup - Add setup.py
- Loading branch information
Showing
2 changed files
with
32 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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", | ||
) |