From 032f7f0afa88a147fe0fd41e3299f62c6c67f196 Mon Sep 17 00:00:00 2001 From: nextmab Date: Sat, 11 Aug 2018 12:57:35 -0700 Subject: [PATCH 01/10] mt 1 commit --- 1.txt | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 1.txt diff --git a/1.txt b/1.txt new file mode 100644 index 0000000..e69de29 From 389e9a12507ac1f32f7dda152f433dfe9a3413d2 Mon Sep 17 00:00:00 2001 From: nextmab Date: Sat, 11 Aug 2018 13:05:59 -0700 Subject: [PATCH 02/10] mt 1 commit --- .gitignore | 2 ++ README | 4 ++++ helloworld.py | 6 ++++++ helloworld/__init__.py | 0 helloworld/main.py | 9 +++++++++ setup.py | 26 ++++++++++++++++++++++++++ 6 files changed, 47 insertions(+) create mode 100644 .gitignore create mode 100644 README create mode 100755 helloworld.py create mode 100644 helloworld/__init__.py create mode 100644 helloworld/main.py create mode 100644 setup.py diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..27d316b --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +*.pyc +/helloworld.egg-info diff --git a/README b/README new file mode 100644 index 0000000..6939fb7 --- /dev/null +++ b/README @@ -0,0 +1,4 @@ +Hello, World +============ + +A simple program, and an example of how to structure a python project. diff --git a/helloworld.py b/helloworld.py new file mode 100755 index 0000000..07da8cb --- /dev/null +++ b/helloworld.py @@ -0,0 +1,6 @@ +#!/usr/bin/env python +import sys +import helloworld.main + +if __name__ == '__main__': + sys.exit(helloworld.main.main()) diff --git a/helloworld/__init__.py b/helloworld/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/helloworld/main.py b/helloworld/main.py new file mode 100644 index 0000000..88cee2c --- /dev/null +++ b/helloworld/main.py @@ -0,0 +1,9 @@ +import sys + +def main(argv=None): + if argv is None: + argv = sys.argv + + print ("Hello, world") + + return 0 diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..06408e1 --- /dev/null +++ b/setup.py @@ -0,0 +1,26 @@ +import sys +from setuptools import setup + +setup( + name = "helloworld", # what you want to call the archive/egg + version = "0.1", + packages=["helloworld"], # top-level python modules you can import like + # 'import foo' + dependency_links = [], # custom links to a specific project + install_requires=[], + extras_require={}, # optional features that other packages can require + # like 'helloworld[foo]' + package_data = {}, + author="David Barnett", + author_email = "davidbarnett2@gmail.com", + description = "The familiar example program in Python", + license = "BSD", + keywords= "example documentation tutorial", + url = "http://github.com/dbarnett/python-helloworld", + entry_points = { + "console_scripts": [ # command-line executables to expose + "helloworld_in_python = helloworld.main:main", + ], + "gui_scripts": [] # GUI executables (creates pyw on Windows) + } +) From 2f9c009287e05b464a1d031ded57f34dfc9a8581 Mon Sep 17 00:00:00 2001 From: nextmab Date: Sat, 11 Aug 2018 13:14:24 -0700 Subject: [PATCH 03/10] mt 1 commitasdasd --- 2 | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 2 diff --git a/2 b/2 new file mode 100644 index 0000000..e69de29 From 207dcd4da4d8e62ae28f6c42609602bd9302b6a5 Mon Sep 17 00:00:00 2001 From: nextmab Date: Sat, 11 Aug 2018 13:15:38 -0700 Subject: [PATCH 04/10] destroy main --- main.py | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 main.py diff --git a/main.py b/main.py new file mode 100644 index 0000000..fb0bc46 --- /dev/null +++ b/main.py @@ -0,0 +1,9 @@ +import sys + +aadef main(argv=None): + if argv is None: + argv = sys.argv + + print ("Hello, world new") + + return 0 From ba147acde7ffe7f4c2e3f47b7d9e4e114087b7c4 Mon Sep 17 00:00:00 2001 From: nextmab Date: Sat, 11 Aug 2018 13:33:06 -0700 Subject: [PATCH 05/10] destroy maind --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index fb0bc46..621e106 100644 --- a/main.py +++ b/main.py @@ -1,9 +1,9 @@ import sys -aadef main(argv=None): +def main(argv=None): if argv is None: argv = sys.argv - print ("Hello, world new") + print ("Hello, wsssssssssssorld new") return 0 From 52acbecfec52c66d46aa259954c8d34addacdad8 Mon Sep 17 00:00:00 2001 From: nextmab Date: Sat, 11 Aug 2018 13:37:38 -0700 Subject: [PATCH 06/10] H --- helloworld/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helloworld/main.py b/helloworld/main.py index 88cee2c..78489f2 100644 --- a/helloworld/main.py +++ b/helloworld/main.py @@ -4,6 +4,6 @@ def main(argv=None): if argv is None: argv = sys.argv - print ("Hello, world") + print ("H") return 0 From 6b883bad4f8316816d76678d6e48034fc1e41184 Mon Sep 17 00:00:00 2001 From: nextmab Date: Sat, 11 Aug 2018 13:39:30 -0700 Subject: [PATCH 07/10] destroy --- helloworld/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helloworld/main.py b/helloworld/main.py index 78489f2..61b4057 100644 --- a/helloworld/main.py +++ b/helloworld/main.py @@ -1,6 +1,6 @@ import sys -def main(argv=None): +adef main(argv=None): if argv is None: argv = sys.argv From b449df0989d027a05cd2f1d254ddfc67fadc9dcc Mon Sep 17 00:00:00 2001 From: nextmab <42300915+nextmab@users.noreply.github.com> Date: Sat, 11 Aug 2018 23:41:12 +0300 Subject: [PATCH 08/10] Update main.py --- helloworld/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/helloworld/main.py b/helloworld/main.py index 61b4057..efcd106 100644 --- a/helloworld/main.py +++ b/helloworld/main.py @@ -1,9 +1,9 @@ import sys -adef main(argv=None): +def main(argv=None): if argv is None: argv = sys.argv - print ("H") + print ("works") return 0 From 281feeb035f0bf004a3f3467fc86fb5d2edb5344 Mon Sep 17 00:00:00 2001 From: nextmab <42300915+nextmab@users.noreply.github.com> Date: Sun, 19 Aug 2018 23:09:14 +0300 Subject: [PATCH 09/10] Add files via upload --- PATH.sh.txt | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 PATH.sh.txt diff --git a/PATH.sh.txt b/PATH.sh.txt new file mode 100644 index 0000000..37ed58b --- /dev/null +++ b/PATH.sh.txt @@ -0,0 +1,19 @@ +#!/bin/bash +#################### +## SET PYPATH ## +#################### + +echo 'export PYTHONPATH="/aston/bin/anaconda3/lib/python3.6/"' >> ~/.bashrc + + +#################### +## SET PATH ## +#################### + + +echo 'export PATH="/aston/bin/anaconda3/bin:$PATH"' >> ~/.bashrc + +source ~/.bashrc + + +exec bash From aa3881e5b3afabf11a77ffe0c2897c37b5013b5c Mon Sep 17 00:00:00 2001 From: nextmab <42300915+nextmab@users.noreply.github.com> Date: Sun, 19 Aug 2018 23:09:39 +0300 Subject: [PATCH 10/10] Rename PATH.sh.txt to PATH.sh --- PATH.sh.txt => PATH.sh | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename PATH.sh.txt => PATH.sh (100%) diff --git a/PATH.sh.txt b/PATH.sh similarity index 100% rename from PATH.sh.txt rename to PATH.sh