Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
e003939
Added a types attribute to annotate() and candidates(), which enables…
aolieman Jan 19, 2014
b773964
Moved filter parameters into a "filters" attribute.
aolieman Jan 20, 2014
f2de016
Changed default spotter to 'Default' for 0.7 compatibility
aolieman Jan 29, 2015
0edcba3
Updated required version of the requests package
aolieman Jul 18, 2016
f8c172d
Moved to nose2 for tests
aolieman Jul 18, 2016
b74ede1
Py3-compatible 0.7 release
aolieman Jul 18, 2016
61acabd
Updated setup files:
aolieman Jul 21, 2016
5bfabf7
Moved the shared request logic in `annotate` and `candidates` to a he…
aolieman Jul 21, 2016
e6cd74f
Updated package files
aolieman Jul 25, 2016
820e152
Added changelog
aolieman Jul 25, 2016
994a89f
Extended and updated README for the 0.7.x release
aolieman Jul 25, 2016
99ace3d
fix: doc: Made the changelog a bit nicer. !minor
aolieman Jul 25, 2016
a7a2001
chg: pkg: Version bump to 0.7.1
aolieman Jul 25, 2016
f917283
chg: dev: Removed ``simplejson`` fallback requirement.
aolieman Jul 25, 2016
9b8fa33
fix: doc: let links to issues in the ubergrape repo clearly point the…
aolieman Jul 26, 2016
82f924e
Merge tag 'old-issue-links' into develop
aolieman Jul 26, 2016
2d597f7
Merge branch 'hotfix/old-issue-links'
aolieman Jul 26, 2016
e311ead
add: pkg: Added author and maintainer metadata.
aolieman Jul 27, 2016
44f0c3e
Merge tag 'add-metadata-author-maintainer' into develop
aolieman Jul 27, 2016
4327028
Merge branch 'hotfix/add-metadata-author-maintainer'
aolieman Jul 27, 2016
7f03984
fix: pkg: Use the py3 ``open`` also in py2.
aolieman Jul 28, 2016
bd43616
Merge tag 'compat-open-encoding' into develop
aolieman Jul 28, 2016
26cbf32
Merge branch 'hotfix/compat-open-encoding'
aolieman Jul 28, 2016
126ff51
fix: doc: !minor
aolieman Jul 28, 2016
f63c0b5
Merge tag 'pip-version' into develop
aolieman Jul 28, 2016
e58deae
Merge branch 'hotfix/pip-version'
aolieman Jul 28, 2016
c693cf7
remove *surfaceForm* in _convert_number function
ShomyLiu Nov 14, 2017
7ffa498
fix: usr: Ensure that surface forms are always strings (merge PR #1).
aolieman Dec 2, 2017
749c03b
new: dev: gitignore !minor
aolieman Dec 2, 2017
f9be830
fix: dev: Test that surface forms are not converted into numbers.
aolieman Dec 2, 2017
368531b
fix: usr: Ensure that `candidates` returns surface forms as strings.
aolieman Dec 2, 2017
d3d8405
fix: dev: codestyle !minor
aolieman Dec 2, 2017
46a2058
fix: doc: Updated instructions and links.
aolieman Dec 2, 2017
c5c8c20
chg: pkg: bump version to 0.7.2
aolieman Dec 2, 2017
811442d
chg: doc: updated changelog !minor
aolieman Dec 2, 2017
bcb7efd
chg: pkg: added build tools to dev requirements !minor
aolieman Dec 2, 2017
03880ac
Merge branch 'release/0.7.2'
aolieman Dec 2, 2017
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
191 changes: 191 additions & 0 deletions .gitchangelog.rc
Original file line number Diff line number Diff line change
@@ -0,0 +1,191 @@
##
## Format
##
## ACTION: [AUDIENCE:] COMMIT_MSG [!TAG ...]
##
## Description
##
## ACTION is one of 'chg', 'fix', 'new'
##
## Is WHAT the change is about.
##
## 'chg' is for refactor, small improvement, cosmetic changes...
## 'fix' is for bug fixes
## 'new' is for new features, big improvement
##
## AUDIENCE is optional and one of 'dev', 'usr', 'pkg', 'test', 'doc'
##
## Is WHO is concerned by the change.
##
## 'dev' is for developers (API changes, refactors...)
## 'usr' is for final users (UI changes)
## 'pkg' is for packagers (packaging changes)
## 'test' is for testers (test only related changes)
## 'doc' is for doc guys (doc only changes)
##
## COMMIT_MSG is ... well ... the commit message itself.
##
## TAGs are additional adjective as 'refactor' 'minor' 'cosmetic'
##
## They are preceded with a '!' or a '@' (prefer the former, as the
## latter is wrongly interpreted in github.) Commonly used tags are:
##
## 'refactor' is obviously for refactoring code only
## 'minor' is for a very meaningless change (a typo, adding a comment)
## 'cosmetic' is for cosmetic driven change (re-indentation, 80-col...)
## 'wip' is for partial functionality but complete subfunctionality.
##
## Example:
##
## new: usr: support of bazaar implemented
## chg: re-indented some lines !cosmetic
## new: dev: updated code to be compatible with last version of killer lib.
## fix: pkg: updated year of licence coverage.
## new: test: added a bunch of test around user usability of feature X.
## fix: typo in spelling my name in comment. !minor
##
## Please note that multi-line commit message are supported, and only the
## first line will be considered as the "summary" of the commit message. So
## tags, and other rules only applies to the summary. The body of the commit
## message will be displayed in the changelog without reformatting.


##
## ``ignore_regexps`` is a line of regexps
##
## Any commit having its full commit message matching any regexp listed here
## will be ignored and won't be reported in the changelog.
##
ignore_regexps = [
r'@minor', r'!minor',
r'@cosmetic', r'!cosmetic',
r'@refactor', r'!refactor',
r'@wip', r'!wip',
r'^([cC]hg|[fF]ix|[nN]ew)\s*:\s*[p|P]kg:',
r'^([cC]hg|[fF]ix|[nN]ew)\s*:\s*[d|D]ev:',
r'^(.{3,3}\s*:)?\s*[fF]irst commit.?\s*$',
]


## ``section_regexps`` is a list of 2-tuples associating a string label and a
## list of regexp
##
## Commit messages will be classified in sections thanks to this. Section
## titles are the label, and a commit is classified under this section if any
## of the regexps associated is matching.
##
section_regexps = [
('New', [
r'^[nN]ew\s*:\s*((dev|use?r|pkg|test|doc)\s*:\s*)?([^\n]*)$',
]),
('Changes', [
r'^[cC]hg\s*:\s*((dev|use?r|pkg|test|doc)\s*:\s*)?([^\n]*)$',
]),
('Fix', [
r'^[fF]ix\s*:\s*((dev|use?r|pkg|test|doc)\s*:\s*)?([^\n]*)$',
]),

('Other', None ## Match all lines
),

]


## ``body_process`` is a callable
##
## This callable will be given the original body and result will
## be used in the changelog.
##
## Available constructs are:
##
## - any python callable that take one txt argument and return txt argument.
##
## - ReSub(pattern, replacement): will apply regexp substitution.
##
## - Indent(chars=" "): will indent the text with the prefix
## Please remember that template engines gets also to modify the text and
## will usually indent themselves the text if needed.
##
## - Wrap(regexp=r"\n\n"): re-wrap text in separate paragraph to fill 80-Columns
##
## - noop: do nothing
##
## - ucfirst: ensure the first letter is uppercase.
## (usually used in the ``subject_process`` pipeline)
##
## - final_dot: ensure text finishes with a dot
## (usually used in the ``subject_process`` pipeline)
##
## - strip: remove any spaces before or after the content of the string
##
## Additionally, you can `pipe` the provided filters, for instance:
#body_process = Wrap(regexp=r'\n(?=\w+\s*:)') | Indent(chars=" ")
#body_process = Wrap(regexp=r'\n(?=\w+\s*:)')
#body_process = noop
body_process = ReSub(r'((^|\n)[A-Z]\w+(-\w+)*: .*(\n\s+.*)*)+$', r'') | strip


## ``subject_process`` is a callable
##
## This callable will be given the original subject and result will
## be used in the changelog.
##
## Available constructs are those listed in ``body_process`` doc.
subject_process = (strip |
ReSub(r'^([cC]hg|[fF]ix|[nN]ew)\s*:\s*((dev|use?r|pkg|test|doc)\s*:\s*)?([^\n@]*)(@[a-z]+\s+)*$', r'\4') |
ucfirst | final_dot)


## ``tag_filter_regexp`` is a regexp
##
## Tags that will be used for the changelog must match this regexp.
##
tag_filter_regexp = r'^v?[0-9]+\.[0-9]+(\.[0-9]+)?$'


## ``unreleased_version_label`` is a string
##
## This label will be used as the changelog Title of the last set of changes
## between last valid tag and HEAD if any.
unreleased_version_label = "%%version%% (unreleased)"


## ``output_engine`` is a callable
##
## This will change the output format of the generated changelog file
##
## Available choices are:
##
## - rest_py
##
## Legacy pure python engine, outputs ReSTructured text.
## This is the default.
##
## - mustache(<template_name>)
##
## Template name could be any of the available templates in
## ``templates/mustache/*.tpl``.
## Requires python package ``pystache``.
## Examples:
## - mustache("markdown")
## - mustache("restructuredtext")
##
## - makotemplate(<template_name>)
##
## Template name could be any of the available templates in
## ``templates/mako/*.tpl``.
## Requires python package ``mako``.
## Examples:
## - makotemplate("restructuredtext")
##
output_engine = rest_py
#output_engine = mustache("restructuredtext")
#output_engine = mustache("markdown")
#output_engine = makotemplate("restructuredtext")


## ``include_merge`` is a boolean
##
## This option tells git-log whether to include merge commits in the log.
## The default is to include them.
include_merge = True
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
*.pyc
.python-version
135 changes: 135 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,135 @@
Changelog
=========

v0.7.2 (2017-12-02)
-------------------

- Updated README instructions and links. [Alex Olieman]

- Ensure that ``candidates`` returns surface forms as strings. [Alex Olieman]

- Ensure that surface forms are always strings (merge `PR #1`_). [ShomyLiu & Alex Olieman]

.. _PR #1: https://github.com/aolieman/pyspotlight/pull/1

v0.7.1 (2016-07-25)
-------------------

- Moved the shared request logic in ``annotate`` and ``candidates`` to a
helper function. [Alex Olieman]

- Updated setup/package files [Alex Olieman]

- Updated README. [Luis Nell & Alex Olieman]

v0.7.0 (2016-07-18)
-------------------

API Changes
~~~~~~~~~~~

- Changed default spotter to ``'Default'`` for 0.7 compatibility. [Alex
Olieman]

- Moved filter parameters into a ``filters`` argument. [Alex Olieman]

* **Removed** the ``policy`` argument from ``annotate`` and ``candidates``.
* Added a types parameter, which enables server-side filtering of resources.
It also makes for a nice addition to the policy parameter.

Additions
~~~~~~~~~

- Python 3 compatibility. [Alex Olieman]

- Moved to nose2 for tests. [Alex Olieman]

Fixes
~~~~~

- Updated required version of the requests package. [Alex Olieman]

- Remove mutable default arguments. [Luis Nell]

v0.6.5.2 (2013-08-27)
---------------------

- Add manifest so README is included on PyPI. [Luis Nell]

v0.6.5.1 (2013-08-12)
---------------------

- Update README for PyPI release. [Luis Nell]

- Upgrade to requests 1.2.3. [Luis Nell]

- BSD License. [Luis Nell]

- Workaround for footnotes in ``surfaceForm`` that get parsed as a list.
[Luis Nell]

- Do not assume in ``candidates`` that ``surfaceForm`` is always a list.
[Luis Nell]

v0.6.5 (2012-10-07)
-------------------

API Changes
~~~~~~~~~~~

- Have to explicitly provide a protocol in the URL. [Luis Nell]

Additions
~~~~~~~~~

- Added stuff for testing. [Luis Nell]

- Add requirements.txt for pip. [Luis Nell]

- Make use of requests builtin json decoding. [Luis Nell]

Fixes
~~~~~

- Some README updates. [Luis Nell]

- Add ordereddict requirement for py2.6. [Luis Nell]

- Tests: adapt to the requests raw handling. [Luis Nell]

- Use requests 0.14.1 from now on. [Luis Nell]

- Fixed typos, wrong link. [Pablo Mendes]

* Minor: We spell it DBpedia, not DBPedia :)
* Fix: Link pointed to OpenCalais, a commercial closed-source
alternative to DBpedia Spotlight

v0.5.3 (2012-08-01)
-------------------

- Update README to reflect the exception changes. [Luis Nell]

- Raise requests.exceptions.HTTPError on response.status_code != 200.
[Luis Nell]

- Prefer simplejson to json. [Luis Nell]

- Add tests for new exception handling. [Luis Nell]

- Add Exception Handling. [Luis Nell]

v0.5.2 (2012-04-06)
-------------------

- Fixes setup.py issues. v0.5.2. [Luis Nell]

v0.5.1 (2012-03-21)
-------------------

- Fix setup.py - push 0.5.1. [Luis Nell]

v0.5.0 (2012-03-20)
-------------------

- Init. [Luis Nell]
1 change: 1 addition & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Copyright (c) 2013, Luis Nell
Modifications 2016, Alex Olieman
All rights reserved.

Redistribution and use in source and binary forms, with or without modification,
Expand Down
2 changes: 1 addition & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1 +1 @@
include README.rst LICENSE
include README.rst LICENSE HISTORY.rst
Loading