Skip to content

Commit

Permalink
Packaging updates.
Browse files Browse the repository at this point in the history
- Includes moving version to separate module.
  - Allows us to isolate the project and its dependencies from the install process where the dependencies won't necessarily be installed yet.
  • Loading branch information
ml-bnr committed Sep 22, 2017
1 parent 8ac7473 commit f53c725
Show file tree
Hide file tree
Showing 11 changed files with 10 additions and 134 deletions.
3 changes: 3 additions & 0 deletions .gitignore
@@ -0,0 +1,3 @@
/dist
/markdown_embedimages.egg-info
/build
3 changes: 2 additions & 1 deletion MANIFEST.in
@@ -1,2 +1,3 @@
include mei/resources/README.md
include mei/resources/README.rst
include mei/resources/requirements.txt
include mei/resources/version.txt
2 changes: 0 additions & 2 deletions mei/__init__.py
@@ -1,3 +1 @@
__version__ = '0.1.0'

from mei.embed_images import markdown
1 change: 1 addition & 0 deletions mei/resources/version.txt
@@ -0,0 +1 @@
0.1.4
111 changes: 0 additions & 111 deletions mistune_embedimages.egg-info/PKG-INFO

This file was deleted.

12 changes: 0 additions & 12 deletions mistune_embedimages.egg-info/SOURCES.txt

This file was deleted.

1 change: 0 additions & 1 deletion mistune_embedimages.egg-info/dependency_links.txt

This file was deleted.

1 change: 0 additions & 1 deletion mistune_embedimages.egg-info/not-zip-safe

This file was deleted.

2 changes: 0 additions & 2 deletions mistune_embedimages.egg-info/requires.txt

This file was deleted.

1 change: 0 additions & 1 deletion mistune_embedimages.egg-info/top_level.txt

This file was deleted.

7 changes: 4 additions & 3 deletions setup.py
@@ -1,8 +1,6 @@
import os
import setuptools

import mei

_SHORT_DESCRIPTION = \
"A Mistune renderer that embeds images into the final document."

Expand All @@ -14,9 +12,12 @@
with open(os.path.join(_APP_PATH, 'mei', 'resources', 'requirements.txt')) as f:
_REQUIREMENTS = [s.strip() for s in f if s.strip() != '']

with open(os.path.join(_APP_PATH, 'mei', 'resources', 'version.txt')) as f:
_VERSION = f.read().strip()

setuptools.setup(
name="markdown-embedimages",
version=mei.__version__,
version=_VERSION,
description=_SHORT_DESCRIPTION,
long_description=_LONG_DESCRIPTION,
classifiers=[],
Expand Down

0 comments on commit f53c725

Please sign in to comment.