Skip to content

Commit 59bb796

Browse files
authored
Merge pull request #16 from metaodi/develop
Release 0.0.2
2 parents a729062 + eafe0cc commit 59bb796

File tree

4 files changed

+100
-3
lines changed

4 files changed

+100
-3
lines changed

CHANGELOG.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# Changelog
2+
All notable changes to this project will be documented in this file.
3+
The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project follows [Semantic Versioning](http://semver.org/).
4+
5+
## [Unreleased]
6+
7+
## [0.0.2] - 2020-06-10
8+
### Added
9+
- Support for explain operation
10+
- Response classes
11+
- Tests for the existing functionality
12+
- `maximum_records` parameter for Client
13+
- Example scripts in the `examples` directory
14+
- CHANGELOG.md and CONTRIBUTING.md
15+
16+
### Changed
17+
- XMLParser is now a class, so that XML namespaces can be changed on-the-fly
18+
19+
## [0.0.1] - 2020-05-23
20+
### Added
21+
- Initial release of sruthi
22+
- basic support for searchretrieve operation
23+
24+
25+
26+
# Categories
27+
- `Added` for new features.
28+
- `Changed` for changes in existing functionality.
29+
- `Deprecated` for once-stable features removed in upcoming releases.
30+
- `Removed` for deprecated features removed in this release.
31+
- `Fixed` for any bug fixes.
32+
- `Security` to invite users to upgrade in case of vulnerabilities.
33+
34+
[Unreleased]: https://github.com/metaodi/sruthi/compare/v0.0.2...HEAD
35+
[0.0.2]: https://github.com/metaodi/sruthi/compare/v0.0.1...v0.0.2
36+
[0.0.1]: https://github.com/metaodi/sruthi/releases/tag/v0.0.1

CONTRIBUTING.md

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# Contributing
2+
3+
If you want to participate in this project, please follow this guidline.
4+
5+
Fork and clone this repository:
6+
7+
```bash
8+
git clone git@github.com:your-username/sruthi.git
9+
```
10+
11+
Install the dependencies using `pip`:
12+
13+
```bash
14+
pip install -r requirements.txt
15+
pip install -r test-requirements.txt
16+
```
17+
18+
Make sure the tests pass:
19+
20+
```bash
21+
pytest
22+
```
23+
24+
To ensure a good quality of the code use `flake8` to check the code style:
25+
26+
```bash
27+
flake8 --install-hook git
28+
```
29+
30+
## Create a pull request
31+
32+
1. Choose the `develop` branch as a target for new/changed functionality, `master` should only be targeted for urgent bugfixes.
33+
2. While it's not strictly required, it's highly recommended to create a new branch on your fork for each pull request.
34+
3. Push to your fork and [submit a pull request][pr].
35+
4. Check if the [build ran successfully][ci] and try to improve your code if not.
36+
37+
At this point you're waiting for my review.
38+
I might suggest some changes or improvements or alternatives.
39+
40+
Some things that will increase the chance that your pull request is accepted:
41+
42+
* Write tests.
43+
* Follow the Python style guide ([PEP-8][pep8]).
44+
* Write a [good commit message][commit].
45+
46+
[pr]: https://github.com/metaodi/sruthi/compare/
47+
[ci]: https://github.com/metaodi/sruthi/actions
48+
[pep8]: https://www.python.org/dev/peps/pep-0008/
49+
[commit]: http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,3 +82,13 @@ sruthi has been tested with the following schemas:
8282
* [Dublin Core Record Schema](http://www.loc.gov/standards/sru/recordSchemas/dc-schema.html) (dc)
8383
* [MARCXML: The MARC 21 XML Schema](http://www.loc.gov/standards/marcxml/schema/MARC21slim.xsd) (marcxml)
8484
* [ISAD(G): General International Standard Archival Description, Second edition](http://www.expertisecentrumdavid.be/xmlschemas/isad.xsd) (isad)
85+
86+
## Release
87+
88+
To create a new release, follow these steps (please respect [Semantic Versioning](http://semver.org/)):
89+
90+
1. Adapt the version number in `sruthi/__init__.py`
91+
1. Update the CHANGELOG with the version
92+
1. Create a pull request to merge `develop` into `master` (make sure the tests pass!)
93+
1. Create a [new release/tag on GitHub](https://github.com/metaodi/sruthi/releases) (on the master branch)
94+
1. The [publication on PyPI](https://pypi.python.org/pypi/sruthi) happens via [GitHub Actions](https://github.com/metaodi/sruthi/actions?query=workflow%3A%22Upload+Python+Package%22) on every tagged commit

sruthi/__init__.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
__version__ = '0.0.1'
1+
__version__ = '0.0.2'
2+
__all__ = ['errors', 'sru', 'client']
23

3-
from .errors import (SruthiError, ServerIncompatibleError, SruError, NoMoreRecordsError) # noqa
4+
from .errors import SruthiError, ServerIncompatibleError, SruError, NoMoreRecordsError # noqa
5+
from .errors import SruthiWarning, WrongNamespaceWarning # noqa
46
from .sru import searchretrieve, explain # noqa
5-
from .client import Client # noqa
7+
from .client import Client # noqa

0 commit comments

Comments
 (0)