From 33808aa833cde7b6fce495e5b85f06e246e86e1f Mon Sep 17 00:00:00 2001 From: Brian Pugh Date: Mon, 26 Apr 2021 09:02:41 -0700 Subject: [PATCH] package initial commit --- README.md | 14 ++++++++++++ ranger21/__init__.py | 2 ++ {src => ranger21}/chebyshev_lr_functions.py | 0 src/Ranger21.py => ranger21/ranger21.py | 0 src/Rangerabel.py => ranger21/rangerabel.py | 0 setup.py | 25 +++++++++++++++++++++ 6 files changed, 41 insertions(+) create mode 100644 ranger21/__init__.py rename {src => ranger21}/chebyshev_lr_functions.py (100%) rename src/Ranger21.py => ranger21/ranger21.py (100%) rename src/Rangerabel.py => ranger21/rangerabel.py (100%) create mode 100644 setup.py diff --git a/README.md b/README.md index 9ac6d9e..5639220 100644 --- a/README.md +++ b/README.md @@ -131,3 +131,17 @@ If you have ideas/feedback, feel free to open an issue. +# Installation +Until this is up on pypi, this can either be installed via cloning the package: + +``` +git clone https://github.com/lessw2020/Ranger21.git +cd Ranger21 +python -m pip install -e . +``` + +or directly installed from github: + +``` +python -m pip install git+https://github.com/lessw2020/Ranger21.git +``` diff --git a/ranger21/__init__.py b/ranger21/__init__.py new file mode 100644 index 0000000..ed1de06 --- /dev/null +++ b/ranger21/__init__.py @@ -0,0 +1,2 @@ +from .ranger21 import Ranger21 +from .rangerabel import Ranger21abel diff --git a/src/chebyshev_lr_functions.py b/ranger21/chebyshev_lr_functions.py similarity index 100% rename from src/chebyshev_lr_functions.py rename to ranger21/chebyshev_lr_functions.py diff --git a/src/Ranger21.py b/ranger21/ranger21.py similarity index 100% rename from src/Ranger21.py rename to ranger21/ranger21.py diff --git a/src/Rangerabel.py b/ranger21/rangerabel.py similarity index 100% rename from src/Rangerabel.py rename to ranger21/rangerabel.py diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..7dda172 --- /dev/null +++ b/setup.py @@ -0,0 +1,25 @@ +import setuptools + + +with open("README.md", "r", encoding="utf-8") as f: + long_description = f.read() + +setuptools.setup( + name="ranger21", + version="0.0.1", + author="lessw2020", + description="Integrating the latest deep learning components into a single optimizer", + long_description=long_description, + long_description_content_type="text/markdown", + url=f"https://github.com/lessw2020/Ranger21", + project_urls={ + "Bug Tracker": f"https://github.com/lessw2020/Ranger21/issues", + }, + classifiers=[ + "Programming Language :: Python :: 3", + "License :: OSI Approved :: Apache 2.0 License", + "Operating System :: OS Independent", + ], + packages=["ranger21"], + python_requires=">=3.6", +)