- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Loading status checks…
Release
v0.2.2
(#7)
* chore: bump version refs to `v0.2.2` * docs: misc. docs tweaks * docs: add Google site verification meta tag to all source pages * docs: further docs tidy up * ci: CI tweak to add 5s sleep between unit tests and acceptance tests * docs: typo fixes + tweak project TOML * docs: tweak contributing docs * docs: `api` docstring tweak * chore: tweak project description in TOML * chore: fix license entry in project TOML * docs: further improvements in FS Register + Usage docs
Showing
15 changed files
with
679 additions
and
450 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
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 |
---|---|---|
|
@@ -6,8 +6,8 @@ Contributors and contributions are welcome. Please read these guidelines first. | |
|
||
The project homepage is on [GitHub](https://github.com/sr-murthy/fsrapiclient). | ||
|
||
Contributors can open pull requests from a fork targeting the parent [main branch](https://github.com/sr-murthy/fsrapiclient/tree/main). But it may be a good first step to create an [issue](https://github.com/sr-murthy/fsrapiclient/issues) or open a | ||
[discussion topic](https://github.com/sr-murthy/fsrapiclient/discussions). | ||
Contributors can open pull requests from a fork targeting the parent [main branch](https://github.com/sr-murthy/fsrapiclient/tree/main). But it may be a good first step to create an | ||
[issue](https://github.com/sr-murthy/fsrapiclient/issues) or open a [discussion topic](https://github.com/sr-murthy/fsrapiclient/discussions). | ||
|
||
A simple Git workflow, using a feature and/or fix branch created off the `main` branch of your fork, is recommended. | ||
|
||
|
@@ -42,7 +42,7 @@ git clone git+ssh://[email protected]/<fork user>/fsrapiclient | |
|
||
You can create additional remotes for the parent project to enable easier syncing, or you can simply create PRs directly against the parent project. | ||
|
||
## Dependencies & PDM `cubes` | ||
## Dependencies & PDM | ||
|
||
The package only depends on the [requests](https://requests.readthedocs.io/en/latest/) library. | ||
|
||
|
@@ -92,12 +92,11 @@ pdm export -v -f requirements --dev -o requirements.txt | |
|
||
For more information on PDM lockfiles and installing requirements see the [PDM documentation](https://pdm-project.org/latest/). | ||
|
||
## Tests `microscope` | ||
## Tests | ||
|
||
Tests are defined in the `tests` folder, and should be run with [pytest](https://pytest-cov.readthedocs.io/en/latest/). | ||
|
||
For convenience different types of test targets are defined in the[Makefile](https://github.com/sr-murthy/fsrapiclient/blob/main/Makefile): lint` for Ruff linting, `doctests` for running [doctests](https://docs.python.org/3/library/doctest.html) and | ||
`unittests` for running unittests and measuring coverage, using `pytest` and the `pytest-cov` plugin: | ||
For convenience different types of test targets are defined in the [Makefile](https://github.com/sr-murthy/fsrapiclient/blob/main/Makefile): `lint` for Ruff linting, `doctests` for running [doctests](https://docs.python.org/3/library/doctest.html) and `unittests` for running unittests and measuring coverage, using `pytest` and the [pytest-cov](https://pytest-cov.readthedocs.io/en/latest/) plugin: | ||
|
||
``` shell | ||
make lint | ||
|
@@ -107,8 +106,7 @@ make doctests | |
|
||
Linting warnings should be addressed first, and any changes staged and committed. | ||
|
||
Unit tests can be run all at once using `make unittests` or individually using `pytest`, e.g. running the test class for the | ||
`~fsrapiclient.api.FsrApiClient` class: | ||
Unit tests can be run all at once using `make unittests` or individually using `pytest`, e.g. running the test class for the `~fsrapiclient.api.FsrApiClient` class: | ||
|
||
``` shell | ||
python -m pytest -sv tests/units/test_api.py::TestFsrApiClient | ||
|
@@ -120,19 +118,20 @@ The doctests serve as acceptance tests, and are best run after the unit tests. T | |
python -m doctest -v src/fsrapiclient/api.py | ||
``` | ||
|
||
## Documentation `book` | ||
## Documentation | ||
|
||
Detailed documentation can be found [here](https://fsrapiclient.readthedocs.io). | ||
This documentation site is written, built and deployed using [reStructuredText](https://docutils.sourceforge.io/rst.html), | ||
[Sphinx](https://www.sphinx-doc.org/en/master/), and [Read the Docs (RTD)](https://readthedocs.org/) respectively. The Sphinx theme used is [Furo](https://github.com/pradyunsg/furo). | ||
|
||
## CI `circle-play` | ||
## CI | ||
|
||
The CI pipelines are defined in the [CI YML](https://github.com/sr-murthy/fsrapiclient/blob/main/.github/workflows/ci.yml) | ||
and the [CodeQL Analysis YML](https://github.com/sr-murthy/fsrapiclient/blob/main/.github/workflows/codeql-analysis.yml). Currently, pipelines for all branches include a tests stage that includes Ruff linting, unit tests, Python doctests, and in that order. | ||
|
||
## Versioning and Releases `upload` | ||
## Versioning and Releases | ||
|
||
The [PyPI package](https://pypi.org/project/fsrapiclient/) is currently at version `0.2.1`. | ||
The [PyPI package](https://pypi.org/project/fsrapiclient/) is currently at version `0.2.2`. | ||
|
||
There is currently no dedicated pipeline for releases - both [GitHub releases](https://github.com/sr-murthy/fsrapiclient/releases) and [PyPI packages](https://pypi.org/project/fsrapiclient) are published manually, but both have the same version tag. | ||
|
||
Pipelines for releases will be added as part of a future release. | ||
A separate release pipeline may be added as part of a future release. |
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
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
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
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.