anisotropy/setup.py

70 lines
1.8 KiB
Python
Raw Normal View History

#!/usr/bin/env python
# -*- coding: utf-8 -*-
# This file is part of anisotropy.
# License: GNU GPL version 3, see the file "LICENSE" for details.
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
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",
version = anisotropy.__version__,
author = anisotropy.__author__,
author_email = anisotropy.__email__,
license = anisotropy.__license__,
2021-08-11 01:39:44 +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",
classifiers = [
"Environment :: Console",
"Operating System :: POSIX",
"Operating System :: Unix",
2021-08-11 01:39:44 +05:00
"Intended Audience :: Science/Research",
"Programming Language :: Python :: 3.9"
],
2021-08-11 01:39:44 +05:00
package_data = {
"anisotropy": [
"config/default.toml"
]
},
packages = (
"anisotropy",
"anisotropy.config",
"anisotropy.core",
"anisotropy.openfoam",
"anisotropy.salomepl",
"anisotropy.samples"
2021-08-11 01:39:44 +05:00
),
python_requires = ">=3.6",
install_requires = read("requirements.txt", True),
entry_points = {
"console_scripts": [
"anisotropy=anisotropy.core.cli:anisotropy"
]
}
)
if __name__ == "__main__":
main()