2021-08-10 15:41:12 +05:00
|
|
|
#!/usr/bin/env python
|
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
# This file is part of anisotropy.
|
|
|
|
# License: GNU GPL version 3, see the file "LICENSE" for details.
|
|
|
|
|
2021-09-01 20:06:47 +05:00
|
|
|
import os
|
2021-08-10 15:41:12 +05:00
|
|
|
from setuptools import setup
|
|
|
|
|
|
|
|
import anisotropy
|
|
|
|
|
2021-08-11 01:39:44 +05:00
|
|
|
def read(filename, split = False):
|
|
|
|
content = ""
|
|
|
|
|
|
|
|
with open(os.path.join(os.path.dirname(__file__), filename), "r") as io:
|
|
|
|
content = io.read()
|
|
|
|
|
|
|
|
return content.strip().split("\n") if split else content
|
|
|
|
|
2021-09-01 20:06:47 +05:00
|
|
|
def findall(directory):
|
|
|
|
return [
|
|
|
|
os.path.join(directory, f) for f in os.listdir(directory)
|
|
|
|
if os.path.isfile(os.path.join(directory, f))
|
|
|
|
]
|
2021-08-11 01:39:44 +05:00
|
|
|
|
2021-08-10 15:41:12 +05:00
|
|
|
def main():
|
|
|
|
setup(
|
|
|
|
name = "anisotropy",
|
|
|
|
description = "Anisotropy",
|
2021-08-11 01:39:44 +05:00
|
|
|
long_description = read("README.rst"),
|
|
|
|
long_description_content_type = "text/x-rst",
|
2021-08-10 15:41:12 +05:00
|
|
|
version = anisotropy.__version__,
|
|
|
|
author = anisotropy.__author__,
|
|
|
|
author_email = anisotropy.__email__,
|
|
|
|
license = anisotropy.__license__,
|
2021-08-11 01:39:44 +05:00
|
|
|
|
2021-08-10 15:41:12 +05:00
|
|
|
url = "https://github.com/L-Nafaryus/anisotropy",
|
2021-08-11 01:39:44 +05:00
|
|
|
project_urls = {
|
|
|
|
"Source": "https://github.com/L-Nafaryus/anisotropy"
|
|
|
|
},
|
|
|
|
|
|
|
|
keywords = "anisotropy console CFD",
|
2021-08-10 15:41:12 +05:00
|
|
|
classifiers = [
|
|
|
|
"Environment :: Console",
|
|
|
|
"Operating System :: POSIX",
|
|
|
|
"Operating System :: Unix",
|
2021-09-01 20:06:47 +05:00
|
|
|
"Intended Audience :: Developers",
|
2021-08-11 01:39:44 +05:00
|
|
|
"Intended Audience :: Science/Research",
|
2021-09-01 20:06:47 +05:00
|
|
|
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
|
2021-08-10 15:41:12 +05:00
|
|
|
"Programming Language :: Python :: 3.9"
|
|
|
|
],
|
2021-08-11 01:39:44 +05:00
|
|
|
|
2021-09-01 20:06:47 +05:00
|
|
|
data_files = [
|
2021-09-02 18:11:31 +05:00
|
|
|
("share/doc/anisotropy", findall("docs")),
|
|
|
|
("share/doc/anisotropy/source", findall("docs/source")),
|
|
|
|
("share/doc/anisotropy/source/static", findall("docs/source/static")),
|
|
|
|
("share/doc/anisotropy/source/notes", findall("docs/source/notes"))
|
2021-09-01 20:06:47 +05:00
|
|
|
],
|
|
|
|
|
2021-08-10 15:41:12 +05:00
|
|
|
package_data = {
|
|
|
|
"anisotropy": [
|
2021-09-01 20:06:47 +05:00
|
|
|
"config/default.toml",
|
|
|
|
"config/bashrc"
|
2021-08-10 15:41:12 +05:00
|
|
|
]
|
|
|
|
},
|
|
|
|
packages = (
|
|
|
|
"anisotropy",
|
|
|
|
"anisotropy.config",
|
|
|
|
"anisotropy.core",
|
|
|
|
"anisotropy.openfoam",
|
|
|
|
"anisotropy.salomepl",
|
|
|
|
"anisotropy.samples"
|
2021-08-11 01:39:44 +05:00
|
|
|
),
|
2021-09-01 20:06:47 +05:00
|
|
|
|
2021-08-11 01:39:44 +05:00
|
|
|
python_requires = ">=3.6",
|
|
|
|
install_requires = read("requirements.txt", True),
|
2021-09-01 20:06:47 +05:00
|
|
|
extras_require = {
|
2021-10-06 01:02:41 +05:00
|
|
|
"documentation": ["Sphinx", "sphinx-rtd-theme", "pydeps", "peewee-erd" ],
|
|
|
|
"extra": ["jupyterlab", "seaborn", "sklearn"]
|
2021-09-01 20:06:47 +05:00
|
|
|
},
|
2021-08-11 01:39:44 +05:00
|
|
|
entry_points = {
|
|
|
|
"console_scripts": [
|
|
|
|
"anisotropy=anisotropy.core.cli:anisotropy"
|
|
|
|
]
|
|
|
|
}
|
2021-08-10 15:41:12 +05:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
if __name__ == "__main__":
|
|
|
|
main()
|