Skip to content
This repository was archived by the owner on Oct 5, 2023. It is now read-only.

Commit 6e9ae17

Browse files
authored
Merge pull request #88 from coreofscience/scopus-support
Scopus support
2 parents ff6cd97 + 1bb6e2d commit 6e9ae17

19 files changed

Lines changed: 36085 additions & 158 deletions

.github/workflows/pythonpackage.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
strategy:
1010
max-parallel: 4
1111
matrix:
12-
python-version: [3.6, 3.7, 3.8]
12+
python-version: [3.7, 3.8, 3.9]
1313

1414
steps:
1515
- uses: actions/checkout@v1

.zenodo.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"description": "Translates isi web of knowledge files into python objects.",
33
"license": "MIT",
44
"title": "coreofscience/python-wostools",
5-
"version": "v2.0.7",
5+
"version": "v3.0.0",
66
"upload_type": "software",
77
"publication_date": "2018-08-13",
88
"creators": [
@@ -25,7 +25,7 @@
2525
"related_identifiers": [
2626
{
2727
"scheme": "url",
28-
"identifier": "https://github.com/coreofscience/python-wostools/tree/v2.0.7",
28+
"identifier": "https://github.com/coreofscience/python-wostools/tree/v3.0.0",
2929
"relation": "isSupplementTo"
3030
},
3131
{

CONTRIBUTING.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,6 @@ Before you submit a pull request, check that it meets these guidelines:
110110
2. If the pull request adds functionality, the docs should be updated.
111111
Put your new functionality into a function with a docstring, and add
112112
the feature to the list in README.md.
113-
3. The pull request should work for Python 3.6, and for PyPy. Check
114-
<https://travis-ci.org/coreofscience/python-wostools/pull_requests>
115-
and make sure that the tests pass for all supported Python versions.
116113

117114
## Tips
118115

HISTORY.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# History
22

3+
## 3.0.0 (2020-10-15)
4+
5+
- (!) Adds scopus RIS format support.
6+
- Drops support for `LazyCollection`.
7+
- Adds docummented support for Python 3.8 and 3.9
8+
- Drops docummented support for Python 3.6.
9+
- Improves article matching in collections.
10+
311
## 2.0.7 (2020-08-23)
412

513
- Remove from the collection those documents whose label is unknow or conflictive.

README.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ Say you want to grab the title of all the articles in an ISI file, you
1818
can grab [this example file](docs/examples/bit-pattern-savedrecs.txt).
1919

2020
```python
21-
>>> from wostools import CachedCollection
22-
>>> collection = CachedCollection.from_filenames('docs/examples/bit-pattern-savedrecs.txt')
21+
>>> from wostools import Cached
22+
>>> collection = Cached.from_filenames('docs/examples/bit-pattern-savedrecs.txt')
2323
>>> for article in collection:
2424
... print(article.title)
2525
In situ grazing incidence small-angle X-ray scattering study of solvent vapor annealing in lamellae-forming block copolymer thin films: Trade-off of defects in deswelling
@@ -40,16 +40,17 @@ $ wostools to-json docs/examples/bit-pattern-savedrecs.txt --output=document.jso
4040

4141
## Features
4242

43-
- Free software: MIT license
44-
- Just parses an ISI Web of Knowledge file and produces a native
45-
python object.
46-
- Through the `CollectionLazy` object it can do this using the minimum
47-
amount of memory it can possibly do.
48-
- It has a cli to extract documents and citation pairs for you :smile:
43+
- Free software: MIT license
44+
- Parses an ISI Web of Knowledge file and produces a native python object.
45+
- Parses RIS scopus files and produces a native python object.
46+
- Merges ISI and RIS files into enriched collections.
47+
- It has a cli to extract documents and citation pairs for you :smile:
4948

5049
## Credits
5150

5251
This package was created with
5352
[Cookiecutter](https://github.com/audreyr/cookiecutter) and the
5453
[audreyr/cookiecutter-pypackage](https://github.com/audreyr/cookiecutter-pypackage)
5554
project template.
55+
56+
Development of this package is supported by [Core of Science](https://coreofscience.com).

docs/examples/scopus.ris

Lines changed: 35808 additions & 0 deletions
Large diffs are not rendered by default.

requirements_dev.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
flake8==3.8.3
2-
coverage==5.2.1
1+
flake8==3.8.4
2+
coverage==5.3
33

4-
pytest==6.0.1
4+
pytest==6.1.1
55
pytest-runner==5.2
66
pytest-watch==4.2.0
7-
pytest-bdd==3.4.0
7+
pytest-bdd==4.0.1
88

99
dataclasses==0.7; python_version < "3.7"

setup.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
with open("HISTORY.md") as history_file:
1111
history = history_file.read()
1212

13-
requirements = ["Click>=7.0"]
13+
requirements = ["Click>=7.0<8"]
1414

1515
setup_requirements = ["pytest-runner"]
1616

@@ -26,8 +26,9 @@
2626
"License :: OSI Approved :: MIT License",
2727
"Natural Language :: English",
2828
"Programming Language :: Python :: 3",
29-
"Programming Language :: Python :: 3.6",
3029
"Programming Language :: Python :: 3.7",
30+
"Programming Language :: Python :: 3.8",
31+
"Programming Language :: Python :: 3.9",
3132
],
3233
entry_points={"console_scripts": ["wostools=wostools.cli:main"]},
3334
description="Translates isi web of knowledge files into python objects.",
@@ -42,7 +43,7 @@
4243
test_suite="tests",
4344
tests_require=test_requirements,
4445
url="https://github.com/coreofscience/python-wostools",
45-
version="2.0.7",
46+
version="3.0.0",
4647
zip_safe=False,
4748
long_description_content_type="text/markdown",
4849
)

tests/conftest.py

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Configuration file for python-wostools tests.
33
"""
44

5-
from wostools import Article, LazyCollection, CachedCollection
5+
from wostools import Article
66

77
import pytest
88
import io
@@ -102,13 +102,3 @@ def filename_single_document():
102102
@pytest.fixture
103103
def filename_many_documents():
104104
return "docs/examples/bit-pattern-savedrecs.txt"
105-
106-
107-
@pytest.fixture(params=[CachedCollection, LazyCollection])
108-
def collection_single_document(request, filename_single_document):
109-
return request.param.from_filenames(filename_single_document)
110-
111-
112-
@pytest.fixture(params=[CachedCollection, LazyCollection])
113-
def collection_many_documents(request, filename_many_documents):
114-
return request.param.from_filenames(filename_many_documents)

wostools/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
__author__ = """Core of Science"""
44
__email__ = "dev@coreofscience.com"
5-
__version__ = "2.0.7"
5+
__version__ = "3.0.0"
66

77
from wostools.article import Article
8-
from wostools.lazy import LazyCollection
98
from wostools.cached import CachedCollection
9+
from wostools.cached import CachedCollection as Collection
1010

11-
__all__ = ["CachedCollection", "LazyCollection", "Article"]
11+
__all__ = ["CachedCollection", "Collection", "Article"]

0 commit comments

Comments
 (0)