Skip to content

Commit

Permalink
A few steps to try to make this pip-installable
Browse files Browse the repository at this point in the history
This is required for Issue #3 .
  • Loading branch information
SylvainDe committed Oct 29, 2014
1 parent d4323f7 commit 4b11cdf
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ install:
- pip install --upgrade pyflakes

before_script:
- pep8 *.py --ignore=E501
- pep8 *.py */*.py --ignore=E501
# to have the list anyway
- pep8 *.py --select=E501 || true
- pep8 *.py */*.py --select=E501 || true

script:
- python3 -m unittest discover --pattern=*.py
- python3 -m unittest discover --start-directory=didyoumean --pattern=*.py
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 2 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[metadata]
description-file = README.md
14 changes: 14 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
from distutils.core import setup
# with the help from http://peterdowns.com/posts/first-time-with-pypi.html
setup(
name='didyoumean',
packages=['didyoumean'], # this must be the same as the name above
version='0.1',
description='Logic to have suggestions in case of errors (NameError, AttributeError, etc).',
author='Sylvain Desodt',
author_email='[email protected]',
url='https://github.com/SylvainDe/DidYouMean-Python', # use the URL to the github repo
download_url='https://github.com/peterldowns/mypackage/tarball/0.1', # I'll explain this in a second
keywords=['didyoumean', 'exception', 'error', 'suggestion', 'excepthook', 'typo'], # arbitrary keywords
classifiers=[],
)

0 comments on commit 4b11cdf

Please sign in to comment.