Skip to content

Commit 5cef555

Browse files
author
Khaled Monsoor
committed
fix for setup tool
1 parent 220541a commit 5cef555

File tree

4 files changed

+24
-23
lines changed

4 files changed

+24
-23
lines changed

MANIFEST.in

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
include *.py *.md
1+
graft embedx
2+
include *.py
3+
include *.md
24
include LICENSE
35

46
global-exclude *.pyc

embedx/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
from .embedx import OnlineContent
2+
3+

embedx.py renamed to embedx/embedx.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,6 @@
33
"""
44
Generate responsive, embeddable HTML/JS code from URL of online content
55
"""
6-
__version__ = '0.0.4'
7-
__author__ = 'Khaled Monsoor'
8-
__author_email__ = '[email protected]'
9-
__license__ = 'MIT'
10-
__source_url__ = 'https://github.com/kmonsoor/embedX'
11-
__short_desc__ = 'Generate responsive, embeddable HTML/JS code from URL of online content'
126

137

148
class OnlineContent(object):

setup.py

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,28 @@
1-
from setuptools import setup
2-
3-
from embedx import __version__, __author__, __author_email__, __license__, __short_desc__, __source_url__
1+
from setuptools import setup, find_packages
2+
from codecs import open
3+
from os import path
44

5+
# Load the README.md to `long_description`
6+
here = path.abspath(path.dirname(__file__))
57
try:
6-
import pypandoc
7-
8-
long_description = pypandoc.convert('README.md', 'rst')
9-
except(IOError, ImportError):
10-
long_description = open('README.md').read()
8+
from pypandoc import convert
9+
long_description = convert('README.md', 'rst')
10+
except(OSError, IOError, ImportError):
11+
with open(path.join(here, 'README.md'), encoding='utf-8') as f:
12+
long_description = f.read()
1113

1214
setup(
1315
name='embedx',
14-
packages=['embedx', ],
15-
version=__version__,
16-
url=__source_url__,
17-
license=__license__,
18-
author=__author__,
19-
author_email=__author_email__,
20-
description=__short_desc__,
21-
long_description=long_description,
16+
packages=find_packages(),
17+
version='0.0.4',
18+
url='https://github.com/kmonsoor/embedX',
19+
license='MIT',
20+
author='Khaled Monsoor',
21+
author_email='[email protected]',
22+
description='Generate responsive, embeddable HTML/JS code from URL of online content',
2223
keywords=['embed', 'html', 'javascript', 'embeddable', 'code generation', 'from url'],
2324
platforms='any',
25+
long_description=long_description,
2426
install_requires=[],
2527
classifiers=[
2628
'Development Status :: 3 - Alpha',

0 commit comments

Comments
 (0)