Skip to content

Commit

Permalink
Fixed issues with [setup.py]
Browse files Browse the repository at this point in the history
  • Loading branch information
fuzeman committed Nov 3, 2014
1 parent 08132d5 commit a6c5459
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 11 deletions.
14 changes: 9 additions & 5 deletions .gitignore
@@ -1,9 +1,13 @@
*.pyc
tools/*.csv
tools/*.mysql
/.idea
*.iml
/.coverage
/out
/build
/dist
/src/caper.egg-info
/tools/test_data
/tools/*.csv
/tools/*.mysql
/out

*.iml
*.lprof
*.pyc
2 changes: 1 addition & 1 deletion .travis.yml
Expand Up @@ -8,7 +8,7 @@ python:
- "3.3"

install:
- "pip install -r src/requirements.txt --use-mirrors"
- "pip install -r requirements.txt --use-mirrors"
- "pip install -r tests/requirements.txt --use-mirrors"
- "pip install -r tests/requirements_travis.txt --use-mirrors"

Expand Down
File renamed without changes.
15 changes: 11 additions & 4 deletions src/setup.py → setup.py
Expand Up @@ -12,19 +12,26 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from setuptools import setup, find_packages

import sys
sys.path.insert(0, 'src')

from caper import __version__
from distutils.core import setup


setup(
name='caper',
version=__version__,
packages=['caper', 'caper.parsers'],
package_dir={'': 'src'},
url='https://github.com/fuzeman/caper',
license='Apache License, Version 2.0',
url='https://github.com/fuzeman/caper',

author='Dean Gardiner',
author_email='gardiner91@gmail.com',

description='Extensible filename parsing library for Python',
packages=find_packages('src', exclude=['tests']),
package_dir={'': 'src'},

requires=['Logr']
)
6 changes: 5 additions & 1 deletion src/caper/__init__.py
Expand Up @@ -12,13 +12,17 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from logr import Logr
from caper.matcher import Matcher
from caper.objects import CaperFragment, CaperClosure
from caper.parsers.anime import AnimeParser
from caper.parsers.scene import SceneParser
from caper.parsers.usenet import UsenetParser

try:
from logr import Logr
except ImportError:
pass


__version_info__ = ('0', '3', '2')
__version_branch__ = 'master'
Expand Down

0 comments on commit a6c5459

Please sign in to comment.