From 3c5bca5f582b0df71d2195cf1f48309b77f69b9f Mon Sep 17 00:00:00 2001 From: Derek Passen Date: Fri, 7 Sep 2018 18:27:55 -0500 Subject: [PATCH 1/2] Add setup.py for packaging. --- setup.py | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 setup.py diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..847b00c --- /dev/null +++ b/setup.py @@ -0,0 +1,20 @@ +from setuptools import setup, find_packages + + +with open('README.md') as f: + readme = f.read() + +with open('LICENSE') as f: + license = f.read() + +setup( + name='optional.py', + version='0.1.0', + description='An implementation of the Optional object in Python', + long_description=readme, + author='Chad Befus', + author_email='crbefus@gmail.com', + url='https://github.com/cbefus/optional.py', + license=license, + packages=find_packages(exclude=('test')) +) From f924afd903639dcd19718a66a0ee474e9f404b0c Mon Sep 17 00:00:00 2001 From: cbefus Date: Mon, 10 Sep 2018 18:20:43 -0500 Subject: [PATCH 2/2] Renamed to Optional.py and added the setup.cfg. --- README.md | 2 +- setup.cfg | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 setup.cfg diff --git a/README.md b/README.md index ef71c1c..616d4b8 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# PyOptional +# Optional.py An Implementation of the Optional Object for Python ## Why diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000..224a779 --- /dev/null +++ b/setup.cfg @@ -0,0 +1,2 @@ +[metadata] +description-file = README.md \ No newline at end of file