First Push
Setup Push
This commit is contained in:
31
README.md
Normal file
31
README.md
Normal 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
BIN
build/.DS_Store
vendored
Normal file
Binary file not shown.
6
build/lib/helloworld.py
Normal file
6
build/lib/helloworld.py
Normal 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
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
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
BIN
dist/EasyGA-0.0.1.tar.gz
vendored
Normal file
Binary file not shown.
31
setup.py
Normal file
31
setup.py
Normal 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
BIN
src/.DS_Store
vendored
Normal file
Binary file not shown.
41
src/EasyGA.egg-info/PKG-INFO
Normal file
41
src/EasyGA.egg-info/PKG-INFO
Normal 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
|
||||||
8
src/EasyGA.egg-info/SOURCES.txt
Normal file
8
src/EasyGA.egg-info/SOURCES.txt
Normal 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
|
||||||
1
src/EasyGA.egg-info/dependency_links.txt
Normal file
1
src/EasyGA.egg-info/dependency_links.txt
Normal file
@ -0,0 +1 @@
|
|||||||
|
|
||||||
1
src/EasyGA.egg-info/requires.txt
Normal file
1
src/EasyGA.egg-info/requires.txt
Normal file
@ -0,0 +1 @@
|
|||||||
|
blessings~=1.7
|
||||||
1
src/EasyGA.egg-info/top_level.txt
Normal file
1
src/EasyGA.egg-info/top_level.txt
Normal file
@ -0,0 +1 @@
|
|||||||
|
helloworld
|
||||||
BIN
src/__pycache__/helloworld.cpython-38.pyc
Normal file
BIN
src/__pycache__/helloworld.cpython-38.pyc
Normal file
Binary file not shown.
6
src/helloworld.py
Normal file
6
src/helloworld.py
Normal 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
7
test_helloworld.py
Normal 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!"
|
||||||
Reference in New Issue
Block a user