commit d7fc75ba3d0486771cbbd1cb10567b39ce4a6420 Author: danielwilczak101 <44122838+danielwilczak101@users.noreply.github.com> Date: Thu Sep 17 12:28:32 2020 -0400 First Push Setup Push diff --git a/README.md b/README.md new file mode 100644 index 0000000..98b7470 --- /dev/null +++ b/README.md @@ -0,0 +1,31 @@ +# Hello World + +This is an example project demonstration. + +## Installation + +Run the rolling to install: + +```Python +pip install EasyGA +``` + +## Usage + +```python +From hello world import say_hello + +# Generate "Hello World" +say_hello() + +# Generate "Hello, Everybody!" +say_hello("Everybody!") +``` + +# Developing Hello World + +To install helloworld, along with the tools you need to develop and run tests, run the following in your virtual env: + +```bash +$ pip install -e .[dev] +``` \ No newline at end of file diff --git a/build/.DS_Store b/build/.DS_Store new file mode 100644 index 0000000..2cf756d Binary files /dev/null and b/build/.DS_Store differ diff --git a/build/lib/helloworld.py b/build/lib/helloworld.py new file mode 100644 index 0000000..78738a0 --- /dev/null +++ b/build/lib/helloworld.py @@ -0,0 +1,6 @@ +def say_hello(name=None): + if name is None: + return "Hello, World!" + else: + return f"Hello, {name}!" + diff --git a/dist/EasyGA-0.0.1-py2-none-any.whl b/dist/EasyGA-0.0.1-py2-none-any.whl new file mode 100644 index 0000000..0a79ed5 Binary files /dev/null and b/dist/EasyGA-0.0.1-py2-none-any.whl differ diff --git a/dist/EasyGA-0.0.1-py3-none-any.whl b/dist/EasyGA-0.0.1-py3-none-any.whl new file mode 100644 index 0000000..bb0aed9 Binary files /dev/null and b/dist/EasyGA-0.0.1-py3-none-any.whl differ diff --git a/dist/EasyGA-0.0.1.tar.gz b/dist/EasyGA-0.0.1.tar.gz new file mode 100644 index 0000000..ad6e006 Binary files /dev/null and b/dist/EasyGA-0.0.1.tar.gz differ diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..99577e1 --- /dev/null +++ b/setup.py @@ -0,0 +1,31 @@ +from setuptools import setup + +with open("README.md", "r") as fh: + long_description = fh.read() + +setup( + name='EasyGA', + version='0.0.1', + description='Say hello!', + py_modules=["helloworld"], + package_dir={'':'src'}, + url="https://github.com/danielwilczak/EasyGA", + author="Daniel Wilczak", + author_email="danielwilczak101@gmail.com", + long_description = long_description, + long_description_content_type = "text/markdown", + classifier=[ + "Programming Language :: Python :: 3.0", + "Programming Language :: Python :: 3.6", + "Programming Language :: Python :: 3.7", + "License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)", + "Operating System :: OS Independent", + ], + install_requires = ["blessings ~= 1.7", + ], + extra_require = { + "dev": [ + "pytest>=3.7", + ], + }, + ) diff --git a/src/.DS_Store b/src/.DS_Store new file mode 100644 index 0000000..6331437 Binary files /dev/null and b/src/.DS_Store differ diff --git a/src/EasyGA.egg-info/PKG-INFO b/src/EasyGA.egg-info/PKG-INFO new file mode 100644 index 0000000..6b1a013 --- /dev/null +++ b/src/EasyGA.egg-info/PKG-INFO @@ -0,0 +1,41 @@ +Metadata-Version: 2.1 +Name: EasyGA +Version: 0.0.1 +Summary: Say hello! +Home-page: https://github.com/danielwilczak/EasyGA +Author: Daniel Wilczak +Author-email: danielwilczak101@gmail.com +License: UNKNOWN +Description: # Hello World + + This is an example project demonstration. + + ## Installation + + Run the rolling to install: + + ```Python + pip install EasyGA + ``` + + ## Usage + + ```python + From hello world import say_hello + + # Generate "Hello World" + say_hello() + + # Generate "Hello, Everybody!" + say_hello("Everybody!") + ``` + + # Developing Hello World + + To install helloworld, along with the tools you need to develop and run tests, run the following in your virtual env: + + ```bash + $ pip install -e .[dev] + ``` +Platform: UNKNOWN +Description-Content-Type: text/markdown diff --git a/src/EasyGA.egg-info/SOURCES.txt b/src/EasyGA.egg-info/SOURCES.txt new file mode 100644 index 0000000..9a35fef --- /dev/null +++ b/src/EasyGA.egg-info/SOURCES.txt @@ -0,0 +1,8 @@ +README.md +setup.py +src/helloworld.py +src/EasyGA.egg-info/PKG-INFO +src/EasyGA.egg-info/SOURCES.txt +src/EasyGA.egg-info/dependency_links.txt +src/EasyGA.egg-info/requires.txt +src/EasyGA.egg-info/top_level.txt \ No newline at end of file diff --git a/src/EasyGA.egg-info/dependency_links.txt b/src/EasyGA.egg-info/dependency_links.txt new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/src/EasyGA.egg-info/dependency_links.txt @@ -0,0 +1 @@ + diff --git a/src/EasyGA.egg-info/requires.txt b/src/EasyGA.egg-info/requires.txt new file mode 100644 index 0000000..c3c6a31 --- /dev/null +++ b/src/EasyGA.egg-info/requires.txt @@ -0,0 +1 @@ +blessings~=1.7 diff --git a/src/EasyGA.egg-info/top_level.txt b/src/EasyGA.egg-info/top_level.txt new file mode 100644 index 0000000..31e0fce --- /dev/null +++ b/src/EasyGA.egg-info/top_level.txt @@ -0,0 +1 @@ +helloworld diff --git a/src/__pycache__/helloworld.cpython-38.pyc b/src/__pycache__/helloworld.cpython-38.pyc new file mode 100644 index 0000000..66ee8e9 Binary files /dev/null and b/src/__pycache__/helloworld.cpython-38.pyc differ diff --git a/src/helloworld.py b/src/helloworld.py new file mode 100644 index 0000000..78738a0 --- /dev/null +++ b/src/helloworld.py @@ -0,0 +1,6 @@ +def say_hello(name=None): + if name is None: + return "Hello, World!" + else: + return f"Hello, {name}!" + diff --git a/test_helloworld.py b/test_helloworld.py new file mode 100644 index 0000000..4597090 --- /dev/null +++ b/test_helloworld.py @@ -0,0 +1,7 @@ +from helloworld import say_hello + +def test_helloworld_no_params(): + assert say_hello() == "Hello World!" + +def test_helloworld_with_param(): + assert say_hello("Everyone") == "Hello, Everyone!"