First Push

Setup Push
This commit is contained in:
danielwilczak101
2020-09-17 12:28:32 -04:00
commit d7fc75ba3d
16 changed files with 133 additions and 0 deletions

31
README.md Normal file
View File

@ -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]
```

BIN
build/.DS_Store vendored Normal file

Binary file not shown.

6
build/lib/helloworld.py Normal file
View File

@ -0,0 +1,6 @@
def say_hello(name=None):
if name is None:
return "Hello, World!"
else:
return f"Hello, {name}!"

BIN
dist/EasyGA-0.0.1-py2-none-any.whl vendored Normal file

Binary file not shown.

BIN
dist/EasyGA-0.0.1-py3-none-any.whl vendored Normal file

Binary file not shown.

BIN
dist/EasyGA-0.0.1.tar.gz vendored Normal file

Binary file not shown.

31
setup.py Normal file
View File

@ -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",
],
},
)

BIN
src/.DS_Store vendored Normal file

Binary file not shown.

View File

@ -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

View File

@ -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

View File

@ -0,0 +1 @@

View File

@ -0,0 +1 @@
blessings~=1.7

View File

@ -0,0 +1 @@
helloworld

Binary file not shown.

6
src/helloworld.py Normal file
View File

@ -0,0 +1,6 @@
def say_hello(name=None):
if name is None:
return "Hello, World!"
else:
return f"Hello, {name}!"

7
test_helloworld.py Normal file
View File

@ -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!"