[go: up one dir, main page]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add upstream changes and clean up where possible #42

Merged
merged 38 commits into from
Jan 9, 2015
Merged
Changes from 1 commit
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
8bc4b89
Comment out sections of tables that weren't used to save memory.
dan-blanchard Oct 11, 2014
20cad49
Add 3.4 to list for Travis testing and remove 3.2
dan-blanchard Oct 11, 2014
44752d7
Bunch of little clean up things
dan-blanchard Dec 1, 2014
7251430
Merge branch 'master' into feature/upstream-changes-and-overhaul
dan-blanchard Dec 2, 2014
0ecaf05
Add if __name__... to test.py and a break to speed things up in loop.
dan-blanchard Dec 2, 2014
9b8b12c
Modernize testings
dan-blanchard Dec 2, 2014
3e13cc7
Fix missing req_path in setup.py
dan-blanchard Dec 2, 2014
59f30b7
Simplify Travis setup and just use pip. conda was overkill for our s…
dan-blanchard Dec 2, 2014
a5c7484
Make tests slightly more efficient.
dan-blanchard Dec 2, 2014
07a5849
Merge branch 'master' into feature/upstream-changes-and-overhaul
dan-blanchard Dec 21, 2014
267c5d8
Switch to new Travis docker VMs and add PyPy testing.
dan-blanchard Dec 29, 2014
c665459
Add C-equivalent implementation of filter_english_letters.
dan-blanchard Dec 30, 2014
7cfa45c
Fix some pylint warnings in universaldetector.py
dan-blanchard Dec 30, 2014
125575f
Made latin1 equivalent to windows-1252 when running unit tests.
dan-blanchard Dec 30, 2014
d9c42c7
A bunch of little clean up changes.
dan-blanchard Dec 30, 2014
04398ff
Comment out pypy line in .travis.yml. It's 10x slower, which is ridi…
dan-blanchard Dec 30, 2014
475ffa6
Re-enable PyPy on Travis, but disable coverage for it
dan-blanchard Dec 30, 2014
2eae0d6
Fix syntax error in .travis.yml
dan-blanchard Dec 30, 2014
b45c331
Fix coverage logic reversal in .travis.yml
dan-blanchard Dec 30, 2014
b382f22
Fix TypeError on PyPy in utf8prober.py
dan-blanchard Dec 30, 2014
be09612
Switch to using enums instead of constants, and a bunch of cleanup st…
dan-blanchard Jan 2, 2015
431bd39
Get rid of set literal to appease Python 2.6
dan-blanchard Jan 2, 2015
3fb82c9
Some minor PEP8 name changes
dan-blanchard Jan 5, 2015
6058456
Merge branch 'master' into feature/upstream-changes-and-overhaul
dan-blanchard Jan 5, 2015
bd9951f
Loads of PEP8 naming convention fixes.
dan-blanchard Jan 5, 2015
4317be7
Fix some NOTES.rst formatting issues
dan-blanchard Jan 6, 2015
01e82e3
Update MANIFEST.in to include test files and docs
dan-blanchard Jan 6, 2015
b8f8b24
Remove PyCharm stuff from .gitignore
dan-blanchard Jan 6, 2015
50f701c
Remove flake8: noqa lines.
dan-blanchard Jan 6, 2015
e42c4d1
Add missing __version__ import to __init__.py
dan-blanchard Jan 6, 2015
0913a91
Remove unnecessary import sys import from conf.py
dan-blanchard Jan 6, 2015
c7f01c1
Switch to using pip for installation in .travis.yml
dan-blanchard Jan 6, 2015
1e0f1a5
Rename SMState to MachineState
dan-blanchard Jan 6, 2015
4a8084d
Get rid of messy ternary operator in charsetprober.py
dan-blanchard Jan 6, 2015
5449248
Fix __version typo in __init__.py
dan-blanchard Jan 6, 2015
369875d
Add comment about why we're slicing in filter_with_english_letters
dan-blanchard Jan 6, 2015
8e3fc03
Made more attributes public.
dan-blanchard Jan 6, 2015
da6c0a0
Temporarily disable Hungarian probers, and update missing encodings list
dan-blanchard Jan 7, 2015
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Simplify Travis setup and just use pip. conda was overkill for our st…
…uff.
  • Loading branch information
dan-blanchard committed Dec 2, 2014
commit 59f30b7932edda4ae5fa0f762ceb072f1dffc1f0
19 changes: 2 additions & 17 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,28 +5,13 @@ python:
- 3.3
- 3.4

before_install:
- wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh
- chmod +x miniconda.sh
- ./miniconda.sh -b
- export PATH=/home/travis/miniconda/bin:$PATH
- conda config --add channels https://conda.binstar.org/dan_blanchard
- conda update --yes conda

install:
# Setup desired Python in conda environments with python-coveralls
- conda install --yes pip python=$TRAVIS_PYTHON_VERSION python-coveralls
# Have to use pip for nose-cov because its entry points are not supported by conda yet
- pip install nose-cov
# Multiprocessing fix for Travis
- sudo rm -rf /dev/shm
- sudo ln -s /run/shm /dev/shm
# Actuall install chardet
- pip install python-coveralls nose-cov
- python setup.py install
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about pip install .?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any reason to prefer that over python setup.py install if we're using setuptools?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is that not how almost every one of our users will be installing chardet?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm... good point. 👍


# Run test
script:
- nosetests -v --with-cov --cov skll --cov-config .coveragerc --logging-level=DEBUG
- nosetests -v --with-cov --cov chardet --cov-config .coveragerc --logging-level=DEBUG

# Calculate coverage
after_success:
Expand Down