Skip to content
Permalink
Browse files

Reorganise to be a package

Signed-off-by: Adam Obeng <github@binaryeagle.com>
  • Loading branch information...
adamobeng committed Sep 17, 2016
1 parent a3c31f3 commit d885cbe17808e328a0adab271fac1e523e28097b
@@ -0,0 +1 @@
include snake/full-emoji-list.tsv
@@ -206,7 +206,7 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": 1,
"metadata": {
"collapsed": false,
"slideshow": {
@@ -215,7 +215,7 @@
},
"outputs": [],
"source": [
"%reload_ext ipython_hook"
"%reload_ext snake.ipython_hook"
]
},
{
@@ -3,15 +3,14 @@

import setuptools

import 🐍

setuptools.setup(name='🐍',
version=🐍 .__version__,
setuptools.setup(name='snake',
version='0.0.1',
description='🐍',
url='https://github.com/adamobeng/snake',
author='😎',
author_email='snake@binaryeagle.com',
packages=['🐍'],
packages=['snake'],
zip_safe=False,
platforms=['any'],
include_package_data=True,
)
File renamed without changes.
@@ -1,10 +1,11 @@
#!/usr/bin/env python

import tokenize
from replace_emoji import replace_emoji
import argparse
from sys import argv
import python_to_emoji

from snake.replace_emoji import replace_emoji
import snake.python_to_emoji as python_to_emoji

try:
f = open(argv[1], 'rb')
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -1,7 +1,7 @@
from IPython.core.inputtransformer import StatelessInputTransformer
from IPython.core.inputtransformer import TokenInputTransformer

from replace_emoji import replace_emoji, output_formatter
from snake.replace_emoji import replace_emoji, output_formatter


@TokenInputTransformer.wrap
@@ -1,8 +1,9 @@
from reversible_emojidict import EmojiMapper
import sys
import replace_emoji
import tokenize

import snake.replace_emoji as replace_emoji
from snake.reversible_emojidict import EmojiMapper

REPLACEMENTS = EmojiMapper()

def replace_keywords(token_list):
@@ -2,13 +2,15 @@
import hashlib
import csv
import unicodedata
from reversible_emojidict import EmojiMapper
import os.path

from snake.reversible_emojidict import EmojiMapper

DEBUG = False

EMOJI_NAMES = list(c['Name'] for c in
csv.DictReader(
open('./full-emoji-list.tsv', encoding='utf8'), delimiter='\t')
open(os.path.dirname(__file__) + '/full-emoji-list.tsv', encoding='utf8'), delimiter='\t')
)


File renamed without changes.

0 comments on commit d885cbe

Please sign in to comment.
You can’t perform that action at this time.