-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prepare CIDR Brewer for PyPI distribution
- Loading branch information
Showing
4 changed files
with
50 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[metadata] | ||
description-file = README.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#!/usr/bin/env python | ||
# coding=utf-8 | ||
|
||
from setuptools import setup | ||
|
||
|
||
# Get long description (used on PyPI project page) | ||
def get_long_description(): | ||
try: | ||
# Use pandoc to create reStructuredText README if possible | ||
import pypandoc | ||
return pypandoc.convert('README.md', 'rst') | ||
except: | ||
return None | ||
|
||
|
||
setup( | ||
name='cidr-brewer', | ||
version='1.0.0b1', | ||
description='A CLI utility for working with classless IP addresses', | ||
long_description=get_long_description(), | ||
url='https://github.com/caleb531/cidr-brewer', | ||
author='Caleb Evans', | ||
author_email='caleb@calebevans.me', | ||
license='MIT', | ||
keywords='networking ip addresses cidr', | ||
py_modules=['cidrbrewer'], | ||
install_requires=[], | ||
entry_points={ | ||
'console_scripts': [ | ||
'cidr-brewer=cidrbrewer:main' | ||
] | ||
} | ||
) |