From 088c722affb0322270ba368e4dbdaa85e9a16dde Mon Sep 17 00:00:00 2001 From: isamu-isozaki Date: Mon, 13 Nov 2023 18:21:40 -0500 Subject: [PATCH 1/2] Adding requirements.txt --- requirements.txt | 8 +++++++ setup.py | 59 ++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 67 insertions(+) create mode 100644 requirements.txt create mode 100644 setup.py diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..fcbda46 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,8 @@ + +Author: Isamu Isozaki (isamu.website@gmail.com) +Description: description +Created: 2023-11-13T23:21:17.732Z +Modified: !date! +Modified By: modifier + + diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..8e4e86e --- /dev/null +++ b/setup.py @@ -0,0 +1,59 @@ +import os +import sys +from datetime import datetime +from typing import List + +from setuptools import find_packages, setup + +def fetch_requirements(path) -> List[str]: + """ + This function reads the requirements file. + + Args: + path (str): the path to the requirements file. + + Returns: + The lines in the requirements file. + """ + with open(path, "r") as fd: + return [r.strip() for r in fd.readlines()] + + +def fetch_readme() -> str: + """ + This function reads the README.md file in the current directory. + + Returns: + The lines in the README file. + """ + with open("README.md", encoding="utf-8") as f: + return f.read() +# use date as the nightly version +version = datetime.today().strftime("%Y.%m.%d") +package_name = "pipegoose-nightly" + +setup( + name=package_name, + version=version, + packages=find_packages( + exclude=( + "tests", + "docs", + "examples", + "tests", + "*.egg-info", + ) + ), + description="A library for 3d parallelism", + long_description=fetch_readme(), + long_description_content_type="text/markdown", + license="MIT License", + install_requires=fetch_requirements("requirements/requirements.txt"), + python_requires=">=3.6", + classifiers=[ + "Programming Language :: Python :: 3", + "Environment :: GPU :: NVIDIA CUDA", + "Topic :: Scientific/Engineering :: Artificial Intelligence", + "Topic :: System :: Distributed Computing", + ], +) \ No newline at end of file From f192f6b01e50b884dbbc87fa60592fef6a26d3b3 Mon Sep 17 00:00:00 2001 From: isamu-isozaki Date: Mon, 13 Nov 2023 18:32:46 -0500 Subject: [PATCH 2/2] Setup basic requirements txt --- requirements.txt | 8 -------- setup.py | 3 +-- 2 files changed, 1 insertion(+), 10 deletions(-) delete mode 100644 requirements.txt diff --git a/requirements.txt b/requirements.txt deleted file mode 100644 index fcbda46..0000000 --- a/requirements.txt +++ /dev/null @@ -1,8 +0,0 @@ - -Author: Isamu Isozaki (isamu.website@gmail.com) -Description: description -Created: 2023-11-13T23:21:17.732Z -Modified: !date! -Modified By: modifier - - diff --git a/setup.py b/setup.py index 8e4e86e..c827875 100644 --- a/setup.py +++ b/setup.py @@ -48,8 +48,7 @@ def fetch_readme() -> str: long_description=fetch_readme(), long_description_content_type="text/markdown", license="MIT License", - install_requires=fetch_requirements("requirements/requirements.txt"), - python_requires=">=3.6", + install_requires=fetch_requirements("requirements.txt"), classifiers=[ "Programming Language :: Python :: 3", "Environment :: GPU :: NVIDIA CUDA",