Skip to content

Commit e6f8ee8

Browse files
committed
Level 11
1 parent 6c0f7b8 commit e6f8ee8

4 files changed

Lines changed: 91 additions & 0 deletions

File tree

Level_11/README

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Prints "Hello World!"
2+
3+
This is just an example.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/usr/bin/env python3
2+
3+
def run():
4+
print("Hello World!")
5+
6+
if __name__ == '__main__':
7+
run()

Level_11/run.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/sh
2+
3+
python3 -m pythonfoo_hello_world

Level_11/setup.py

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
#! /usr/bin/env python3
2+
# partly taken from https://github.com/pypa/sampleproject/blob/02130aeda025ca86975258f953b5d2531d74e94c/setup.py
3+
4+
# Always prefer setuptools over distutils
5+
from setuptools import setup, find_packages
6+
from os import path
7+
here = path.abspath(path.dirname(__file__))
8+
9+
# Get the long description from the README file
10+
with open(path.join(here, 'README')) as f:
11+
long_description = f.read()
12+
13+
setup(
14+
name='pythonfoo-hello-world',
15+
16+
# Versions should comply with PEP440.
17+
version='0.1.0',
18+
19+
description='displays "Hello World!"',
20+
long_description=long_description,
21+
22+
# The project's main homepage.
23+
url='https://github.com/pythonfoo/pythonfooLite/tree/master/Level_11',
24+
25+
# Author details
26+
author='Pythonfoo',
27+
author_email='pythonfoo@chaosdorf.de',
28+
29+
# Choose your license
30+
license='WTFPL',
31+
32+
# See https://pypi.python.org/pypi?%3Aaction=list_classifiers
33+
classifiers=[
34+
# How mature is this project? Common values are
35+
# 3 - Alpha
36+
# 4 - Beta
37+
# 5 - Production/Stable
38+
'Development Status :: 3 - Alpha',
39+
40+
# Where does it run?
41+
'Environment :: Console',
42+
43+
# Indicate who your project is intended for
44+
'Intended Audience :: Developers',
45+
'Intended Audience :: End Users/Desktop',
46+
47+
# Language
48+
'Natural Language :: English',
49+
50+
# Topic
51+
'Topic :: Utilities',
52+
'Topic :: Internet',
53+
54+
# Specify the Python versions you support here.
55+
'Programming Language :: Python :: 3',
56+
'Programming Language :: Python :: 3.6',
57+
],
58+
59+
# What does your project relate to?
60+
keywords='hello-world',
61+
62+
# You can just specify the packages manually here if your project is
63+
# simple. Or you can use find_packages().
64+
packages=['pythonfoo_hello_world'],
65+
66+
# List run-time dependencies here. These will be installed by pip when
67+
# your project is installed.
68+
install_requires=[],
69+
70+
# To provide executable scripts, use entry points in preference to the
71+
# "scripts" keyword. Entry points provide cross-platform support and allow
72+
# pip to create the appropriate form of executable for the target platform.
73+
entry_points={
74+
'console_scripts': [
75+
'phw=pythonfoo_hello_world:run',
76+
],
77+
},
78+
)

0 commit comments

Comments
 (0)