Skip to content

Commit 7083128

Browse files
committed
Creates a setup.py and an entrypoint for PyPi publication
1 parent b0cde23 commit 7083128

File tree

3 files changed

+49
-27
lines changed

3 files changed

+49
-27
lines changed

erfc.py

Lines changed: 0 additions & 27 deletions
This file was deleted.

erfc/__init__.py

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
#! /usr/bin/env python
2+
# -*- coding: utf-8 -*-
3+
'''
4+
eRFC downloads and formats plain-text RFCs to fit eReaders nicely.
5+
6+
Usage:
7+
erfc get <rfc_numbers>... [--save-to=<path>]
8+
9+
Options:
10+
-h, --help Show this screen.
11+
-s, --save-to=<path> Path to a folder where RFC will be stored
12+
[default: rfcs].
13+
14+
'''
15+
import sys
16+
17+
from docopt import docopt
18+
19+
from erfc.get import get_rfcs
20+
21+
22+
def main():
23+
args = docopt(__doc__)
24+
get_rfcs(args)
25+
26+
27+
if __name__ == '__main__':
28+
sys.exit(main())

setup.py

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
import setuptools
2+
3+
setuptools.setup(
4+
name="erfc",
5+
version="0.1.0",
6+
author="Radosław Szalski",
7+
description='eRFC downloads and formats plain-text RFCs to fit eReaders nicely',
8+
url='https://github.com/rszalski/erfc',
9+
download_url='https://github.com/rszalski/erfc/tarball/v0.1.0',
10+
packages=setuptools.find_packages(),
11+
keywords=['rfc', 'erfc', 'ebook'],
12+
install_requires=[
13+
'docopt>=0.6.1',
14+
'requests>=2.20.1',
15+
],
16+
entry_points=dict(
17+
console_scripts=[
18+
'erfc = erfc:main',
19+
]
20+
)
21+
)

0 commit comments

Comments
 (0)