-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #18 from nlevitt/0.3
0.3
- Loading branch information
Showing
14 changed files
with
588 additions
and
675 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,18 @@ | ||
# http://docs.travis-ci.com/user/migrating-from-legacy/ | ||
sudo: false | ||
|
||
language: python | ||
python: | ||
- "2.6" | ||
- "2.7" | ||
install: pip install -r requirements.txt | ||
script: | ||
- py.test --doctest-modules -v surt/ | ||
- pylint --disable=all --enable=W0312 --reports=n surt/ | ||
- 2.6 | ||
- 2.7 | ||
- 3.3 | ||
- 3.4 | ||
- 3.5 | ||
- 3.5-dev | ||
- nightly | ||
- pypy | ||
- pypy3 | ||
|
||
install: pip install . pytest pytest-cov | ||
script: py.test -v --cov=surt tests/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
Sort-friendly URI Reordering Transform (SURT) python package. | ||
|
||
Usage: | ||
|
||
:: | ||
|
||
>>> from surt import surt | ||
>>> surt("http://archive.org/goo/?a=2&b&a=1") | ||
'org,archive)/goo?a=1&a=2&b' | ||
|
||
Installation: | ||
|
||
:: | ||
|
||
pip install surt | ||
|
||
Or install the dev version from git: | ||
|
||
:: | ||
|
||
pip install git+https://github.com/internetarchive/surt.git#egg=surt | ||
|
||
More information about SURTs: | ||
http://crawler.archive.org/articles/user\_manual/glossary.html#surt | ||
|
||
This is mostly a python port of the webarchive-commons org.archive.url | ||
package. The original java version of the org.archive.url package is | ||
here: | ||
https://github.com/iipc/webarchive-commons/tree/master/src/main/java/org/archive/url | ||
|
||
This module depends on the ``tldextract`` module to query the Public | ||
Suffix List. ``tldextract`` can be installed via ``pip`` | ||
|
||
|Build Status| | ||
|
||
.. |Build Status| image:: https://travis-ci.org/internetarchive/surt.svg | ||
:target: https://travis-ci.org/internetarchive/surt |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,39 @@ | ||
from setuptools import setup | ||
from setuptools.command.test import test as TestCommand | ||
|
||
class PyTest(TestCommand): | ||
def finalize_options(self): | ||
TestCommand.finalize_options(self) | ||
self.test_suite = True | ||
|
||
def run_tests(self): | ||
import pytest | ||
import sys | ||
cmdline = ' -v --cov surt tests/' | ||
errcode = pytest.main(cmdline) | ||
sys.exit(errcode) | ||
|
||
|
||
setup(name='surt', | ||
version='0.2', | ||
version='0.3.0', | ||
author='rajbot', | ||
author_email='[email protected]', | ||
classifiers=[ | ||
'License :: OSI Approved :: GNU Affero General Public License v3', | ||
], | ||
description='Sort-friendly URI Reordering Transform (SURT) python package.', | ||
long_description=open('README.md').read(), | ||
url='https://github.com/rajbot/surt', | ||
long_description=open('README.rst').read(), | ||
url='https://github.com/internetarchive/surt', | ||
zip_safe=True, | ||
install_requires=[ | ||
'tldextract', | ||
'six', | ||
'tldextract>=2.0', | ||
], | ||
provides=[ 'surt' ], | ||
packages=[ 'surt' ], | ||
scripts=[], | ||
# Tests | ||
tests_require=[ 'pytest', 'pytest-cov' ], | ||
test_suite='', | ||
cmdclass={'test': PyTest}, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.