From 1e6d11ebcf3f0e949287e7db2ffd844b97feb865 Mon Sep 17 00:00:00 2001 From: hzhang Date: Sun, 26 Jan 2025 10:15:11 +0000 Subject: [PATCH] improve: pack to pipy --- .../NeuralSolver.py | 0 NeuralSolver/__init__.py | 2 ++ README.md | 0 setup.py | 25 +++++++++++++++++++ 4 files changed, 27 insertions(+) rename NeuralSolver.py => NeuralSolver/NeuralSolver.py (100%) create mode 100644 NeuralSolver/__init__.py create mode 100644 README.md create mode 100644 setup.py diff --git a/NeuralSolver.py b/NeuralSolver/NeuralSolver.py similarity index 100% rename from NeuralSolver.py rename to NeuralSolver/NeuralSolver.py diff --git a/NeuralSolver/__init__.py b/NeuralSolver/__init__.py new file mode 100644 index 0000000..f25a94a --- /dev/null +++ b/NeuralSolver/__init__.py @@ -0,0 +1,2 @@ +from .NeuralSolver import NeuralSolver +__all__ = ["NeuralSolver"] \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..e69de29 diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..3a0c6fe --- /dev/null +++ b/setup.py @@ -0,0 +1,25 @@ +import os +from setuptools import setup, find_packages + +this_directory = os.path.abspath(os.path.dirname(__file__)) + +with open(os.path.join(this_directory, 'README.md'), encoding='utf-8') as f: + long_description = f.read() + +setup( + name="NeuralSolver", + version="0.0.1", + description="Neural Solver", + long_description=long_description, + long_description_content_type="text/markdown", + author="Hangman", + author_email="hzhang@hangman-lab.top", + url="https://git.hangman-lab.top/hzhang/NeuralSolver", + packages=find_packages(), + install_requires=[ + "numpy~=2.0.2", + "tensorflow~=2.18.0" + ], + python_requires=">=3.12", + +) \ No newline at end of file