Skip to content

Commit

Permalink
Distribuir carpeta examples/
Browse files Browse the repository at this point in the history
  • Loading branch information
PabloCastellano committed Oct 8, 2016
1 parent 673d649 commit 20a4505
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

import os
import sys
from glob import glob
from setuptools import setup, find_packages

sys.path.insert(0, 'bormeparser')
Expand Down Expand Up @@ -39,9 +41,14 @@ def get_install_requires():
print(" git push --tags")
sys.exit()

os.symlink('../examples', 'bormeparser/examples')

setup(
name='bormeparser',
packages=find_packages(exclude=['*.tests']),
package_data={
"bormeparser": glob("examples/*")
},
version=__version__,
description="bormeparser is a Python library for parsing BORME files",
long_description=long_description,
Expand All @@ -61,3 +68,5 @@ def get_install_requires():
install_requires=get_install_requires(),
test_suite="bormeparser.tests"
)

os.unlink('bormeparser/examples')

0 comments on commit 20a4505

Please sign in to comment.