Skip to content

Commit 5b91e19

Browse files
authored
Merge pull request #6 from cbefus/packaging
Add setup.py for packaging.
2 parents 5901ad8 + f924afd commit 5b91e19

File tree

3 files changed

+23
-1
lines changed

3 files changed

+23
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# PyOptional
1+
# Optional.py
22
An Implementation of the Optional Object for Python
33

44
## Why

setup.cfg

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[metadata]
2+
description-file = README.md

setup.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
from setuptools import setup, find_packages
2+
3+
4+
with open('README.md') as f:
5+
readme = f.read()
6+
7+
with open('LICENSE') as f:
8+
license = f.read()
9+
10+
setup(
11+
name='optional.py',
12+
version='0.1.0',
13+
description='An implementation of the Optional object in Python',
14+
long_description=readme,
15+
author='Chad Befus',
16+
author_email='crbefus@gmail.com',
17+
url='https://github.com/cbefus/optional.py',
18+
license=license,
19+
packages=find_packages(exclude=('test'))
20+
)

0 commit comments

Comments
 (0)