Skip to content

Commit 9311aff

Browse files
authored
Merge pull request #1 from cfhamlet/develop
Trivial Update
2 parents 2e4ce17 + f581a45 commit 9311aff

10 files changed

Lines changed: 45 additions & 33 deletions

File tree

.coveragerc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ source = os_urlpattern
77
source =
88
src/os_urlpattern
99
.tox/*/lib/python*/site-packages/os_urlpattern
10+
.tox/*/site-packages/os_urlpattern

.travis.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,25 +3,22 @@ sudo: false
33
matrix:
44
include:
55
- python: 2.7
6-
env: TOXENV=py27
6+
env: TOXENV=py27,codecov
77
- python: 3.6
8-
env: TOXENV=py36
8+
env: TOXENV=py36,codecov
99
- python: pypy
1010
env: TOXENV=pypy
1111
- python: pypy3
1212
env: TOXENV=pypy3
13-
- env: TOXENV=coverage
1413
install:
15-
- pip install -U pip tox codecov
14+
- pip install -U pip tox
1615
script:
1716
- tox
18-
after_success:
19-
- codecov
2017
deploy:
2118
provider: pypi
2219
user: cfhamlet
2320
password:
2421
secure: eGq3kLUT6D3grZ2ZlCaJ5e/9Ma3HkOLZQDDcMsWUs/zUqpngI/9ibplgbOcxpRxKCgFKn5GFDV9ZsKk00fEfYWpe4WZW2vG6mu3k63oB4FMkUQ4GGoQKcXdR27aNtNhvTzU3VPDgyEpNI5QJmTLJp3Y3fbzcjL3a87kschf6B46MP4Nu3NqWuXZDYIZN6GY8HwD6J3Ii15nl4rCS6phdYdKckyVX8coNQVWkljx+ZtfGMkClsui9BynKBNVwufm3/F1zwWI1UXCrU3v4FxqiCmK2CYSX7tdFcGHaVTf0NqscbPxZgPvM+1tUBbW1M5N5GlUf5f7CxwtFWEqFTlz926gzYrHUaewmjILWDm6OxWAKjuks8lgywQq2twYpd8UVlRywvjfaobGpptoBevuxgr/uzipeckWR0X1SiqUaFnKzuLOnVeZ9I1ixA5zcIR74xnjEOvBnMpeawzZsIidoQcn4PRzbyaR4uDxnYyWB5yW/Q9d1UbAYOe0QyQY6NnZzvkRovkge3H/Wlk+K2P0qSUmmznWSDekdBcm4yr3bZsujgWOKS3c9L/OHH+P3YVAC1x0304xGveWt0cU/sfTPpEi99N+0QOxPQX3CnutFkXZIgR4nsGWnZYnMngrr8eHIfav+Ms20UTYwjsn79vfXc10kkesQtW863GdFXBYfw3c=
2522
on:
2623
tags: true
27-
condition: ${TOXENV} == py27
24+
condition: ${TRAVIS_PYTHON_VERSION} == 2.7

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2017 cfhamlet
3+
Copyright (c) 2017 Ozzy
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

MANIFEST.in

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
include LICENSE
22
include README.rst
33
include MANIFEST.in
4-
include src/os_urlpattern/VERSION
5-
include src/os_urlpattern/config/default_config.cfg
6-
recursive-include tests *.py
7-
4+
graft src
5+
graft tests
6+
global-exclude __pycache__
7+
global-exclude *.py[co]

README.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ Character space
8181
Consider `RFC 3986 (Section 2: Characters) <https://tools.ietf.org/html/rfc3986#section-2>`_,
8282
URL with the following characters would be legal:
8383

84-
``ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~:/?#[]@!$&'()*+,;=``
84+
``ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~:/?#[]@!$&'()*+,;=%<>\"{}^|``
8585

8686
There are three major character space: lower-case letters(a-z), upper-case letters(A-Z),
8787
number letters(0-9). Other symbols are in their own character space.
@@ -178,7 +178,7 @@ Install extra packages
178178
- ``pip install os-urlpattern[memroy]``
179179
- Show memory useage
180180
* - ete-tree
181-
- ``pip install os-urlpattern[ete_tree]``
181+
- ``pip install os-urlpattern[ete-tree]``
182182
- Enable `ete <https://github.com/etetoolkit/ete>`_ pattern tree formatter
183183

184184
========
@@ -249,7 +249,7 @@ Command line
249249
log level (default: NOTSET)
250250
-p PATTERN_FILES [PATTERN_FILES ...], --pattern-files PATTERN_FILES [PATTERN_FILES ...]
251251
pattern files to be loaded
252-
-a, --all_matched all matched patterns
252+
-a, --all-matched all matched patterns
253253
254254
255255
Match URLs:

setup.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,10 @@ def read(*filenames, **kwargs):
3232
'pattern-match = os_urlpattern.cmdline:match',
3333
]
3434
},
35-
extras_require={'memory': ['psutil'], 'ete_tree': ['six', 'ete3']},
35+
extras_require={
36+
'memory': ['psutil'],
37+
'ete-tree': ['six', 'ete3']
38+
},
3639
classifiers=[
3740
'Development Status :: 2 - Pre-Alpha',
3841
'Intended Audience :: Developers',

src/os_urlpattern/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.1.10.1
1+
0.1.11

src/os_urlpattern/cmdline.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ def add_argument(self, parser):
171171
required=True,
172172
dest='pattern_files')
173173

174-
parser.add_argument('-a', '--all_matched',
174+
parser.add_argument('-a', '--all-matched',
175175
help='all matched patterns',
176176
default=False,
177177
action='store_true',

src/os_urlpattern/pattern_cluster.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""Cluster algrithm.
1+
"""Cluster algorithm.
22
"""
33
from __future__ import unicode_literals
44

tox.ini

Lines changed: 25 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,25 +4,36 @@
44
# and then run "tox" from this directory.
55

66
[tox]
7-
envlist = py27, py36, pypy, pypy3, coverage
7+
envlist = py{27,36,py,py3}, coverage-report
88

9-
[testenv]
10-
commands =
11-
pytest {posargs}
9+
[base]
1210
deps =
13-
pytest >= 2.10
14-
six
15-
ete3
11+
pytest > 2.10
12+
coverage
13+
pytest-env
1614

17-
[testenv:coverage]
15+
[testenv]
1816
commands =
19-
coverage erase
2017
coverage run -m pytest {posargs}
21-
coverage combine
22-
coverage report
18+
2319
deps =
24-
coverage
25-
pytest >= 2.10
26-
pytest-env
20+
{[base]deps}
2721
six
2822
ete3
23+
24+
[testenv:coverage-report]
25+
deps = coverage
26+
skip_install = true
27+
commands =
28+
coverage combine
29+
coverage report
30+
31+
[testenv:codecov]
32+
passenv = CI TRAVIS TRAVIS_* APPVEYOR APPVEYOR_*
33+
deps = codecov
34+
skip_install = true
35+
commands =
36+
coverage combine
37+
coverage report
38+
codecov
39+

0 commit comments

Comments
 (0)