Skip to content

Commit 0e5f6d3

Browse files
committed
Merge remote-tracking branch 'origin/master' into pypi_publish_and_tag_release
2 parents 77f1a80 + cf21e48 commit 0e5f6d3

18 files changed

+349
-53
lines changed

.github/actions/setup-python-build-env/action.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@ description: "Install everything needed to build"
44
runs:
55
using: "composite"
66
steps:
7-
- name: Upgrage pip and install poetry
7+
- name: Install poetry
88
shell: bash
99
run: |
10-
pip install --upgrade pip
11-
pip install --user "poetry==1.5.1"
10+
pipx install poetry

.github/pull_request_template.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
### Changes included in this PR
2+
3+
*(Bug fix, feature, docs update, ...)*
4+
5+
### Current behavior
6+
7+
*Link to an open issue here...*
8+
9+
### New behavior
10+
11+
*If this is a feature change, describe the new behavior*
12+
13+
### Impact
14+
15+
*Describe breaking changes, including changes a users might need to make due to this PR*
16+
17+
### Checklist
18+
19+
1. [ ] Does your submission pass the existing tests?
20+
2. [ ] Are there new tests that cover these additions/changes?
21+
3. [ ] Have you linted your code locally before submission?

.github/workflows/inactive-issue.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Close inactive issues
2+
on:
3+
schedule:
4+
- cron: "0 0 * * *"
5+
6+
jobs:
7+
close-issues:
8+
runs-on: ubuntu-latest
9+
permissions:
10+
issues: write
11+
pull-requests: write
12+
steps:
13+
- uses: actions/stale@v5
14+
with:
15+
days-before-issue-stale: 30
16+
days-before-issue-close: 14
17+
stale-issue-label: "stale"
18+
stale-issue-message: "This issue is stale because it has been open for 30 days with no activity."
19+
close-issue-message: "This issue was closed because it has been inactive for 14 days since being marked as stale."
20+
days-before-pr-stale: -1
21+
days-before-pr-close: -1
22+
repo-token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/pull-request.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ jobs:
1616
- "3.10"
1717
- "3.11"
1818
- "3.12"
19+
- "3.13"
1920
steps:
2021
- uses: actions/checkout@master
2122
- name: Set up Python ${{ matrix.version }}

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
11
# Change log
22

3+
## 2.0.0-rc.3 (2024-12-09)
4+
- [#665](https://github.com/mobilityhouse/ocpp/pull/665) chore: Updated Python setup action to version v5 by @jainmohit2001
5+
- [#663](https://github.com/mobilityhouse/ocpp/pull/663) bugfix: Changed total_cost type from Optional[int] to Optional[float] by @jainmohit2001
6+
- [#667](https://github.com/mobilityhouse/ocpp/pull/667) feat: Added optional logger param to ChargePoint class by @jainmohit2001
7+
- [#686](https://github.com/mobilityhouse/ocpp/pull/666) bugfix: Handling UnicodeDecodeError in unpack function by @jainmohit2001
8+
- [#668](https://github.com/mobilityhouse/ocpp/pull/668) chore: Update CODEOWNERS by @jainmohit2001
9+
- [#652](https://github.com/mobilityhouse/ocpp/pull/652) add executor to validate_payload by @drc38
10+
- [#629](https://github.com/mobilityhouse/ocpp/pull/629) fix typo for InternalError in exceptions.py by @hhuseyinpay
11+
- [#679](https://github.com/mobilityhouse/ocpp/pull/679) Add issue templates by @mdwcrft
12+
- [#686](https://github.com/mobilityhouse/ocpp/pull/686) Update readme - ocpp 2 edition 3 is supported by @wafa-yah
13+
- [#678](https://github.com/mobilityhouse/ocpp/pull/678) Disable threads if messages.ASYNC_VALIDATION = False by @astrand
14+
- [#685](https://github.com/mobilityhouse/ocpp/pull/685) Test with python 3.13 by @drc38
15+
- [#673](https://github.com/mobilityhouse/ocpp/pull/673) chore: Added inactive issue workflow by @jainmohit2001
16+
317
## 2.0.0-rc.2 (2024-06-18)
418

519
- [#315](https://github.com/mobilityhouse/ocpp/pull/315) Allow to skip schema validation in `ChargePoint.call()`. Thanks [@esiebert](https://github.com/esiebert)!

CODE_OF_CONDUCT.md

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
# Contributor Covenant Code of Conduct
2+
3+
## Our Pledge
4+
5+
In the interest of fostering an open and welcoming environment, we as
6+
contributors and maintainers pledge to making participation in our project and
7+
our community a harassment-free experience for everyone, regardless of age, body
8+
size, disability, ethnicity, gender identity and expression, level of experience,
9+
education, socio-economic status, nationality, personal appearance, race,
10+
religion, or sexual identity and orientation.
11+
12+
## Our Standards
13+
14+
Examples of behavior that contributes to creating a positive environment
15+
include:
16+
17+
* Using welcoming and inclusive language
18+
* Being respectful of differing viewpoints and experiences
19+
* Gracefully accepting constructive criticism
20+
* Focusing on what is best for the community
21+
* Showing empathy towards other community members
22+
23+
Examples of unacceptable behavior by participants include:
24+
25+
* The use of sexualized language or imagery and unwelcome sexual attention or
26+
advances
27+
* Trolling, insulting/derogatory comments, and personal or political attacks
28+
* Public or private harassment
29+
* Publishing others' private information, such as a physical or electronic
30+
address, without explicit permission
31+
* Other conduct which could reasonably be considered inappropriate in a
32+
professional setting
33+
34+
## Our Responsibilities
35+
36+
Project maintainers are responsible for clarifying the standards of acceptable
37+
behavior and are expected to take appropriate and fair corrective action in
38+
response to any instances of unacceptable behavior.
39+
40+
Project maintainers have the right and responsibility to remove, edit, or
41+
reject comments, commits, code, wiki edits, issues, and other contributions
42+
that are not aligned to this Code of Conduct, or to ban temporarily or
43+
permanently any contributor for other behaviors that they deem inappropriate,
44+
threatening, offensive, or harmful.
45+
46+
## Scope
47+
48+
This Code of Conduct applies both within project spaces and in public spaces
49+
when an individual is representing the project or its community. Examples of
50+
representing a project or community include using an official project e-mail
51+
address, posting via an official social media account, or acting as an appointed
52+
representative at an online or offline event. Representation of a project may be
53+
further defined and clarified by project maintainers.
54+
55+
## Enforcement
56+
57+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
58+
reported by contacting the project team at {{ email }}. All
59+
complaints will be reviewed and investigated and will result in a response that
60+
is deemed necessary and appropriate to the circumstances. The project team is
61+
obligated to maintain confidentiality with regard to the reporter of an incident.
62+
Further details of specific enforcement policies may be posted separately.
63+
64+
Project maintainers who do not follow or enforce the Code of Conduct in good
65+
faith may face temporary or permanent repercussions as determined by other
66+
members of the project's leadership.
67+
68+
## Attribution
69+
70+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71+
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
72+
73+
[homepage]: https://www.contributor-covenant.org
74+

CONTRIBUTING.md

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
## Contributing
2+
3+
[fork]: /fork
4+
[pr]: /compare
5+
[style]: https://standardjs.com/
6+
[code-of-conduct]: CODE_OF_CONDUCT.md
7+
8+
Hi there! We're thrilled that you'd like to contribute to this project. Your help is essential for keeping it great.
9+
10+
Please note that this project is released with a [Contributor Code of Conduct][code-of-conduct]. By participating in this project you agree to abide by its terms.
11+
12+
## Issues and PRs
13+
14+
If you have suggestions for how this project could be improved, or want to report a bug, open an issue! We'd love all and any contributions. If you have questions, too, we'd love to hear them.
15+
16+
We'd also love PRs. If you're thinking of a large PR, we advise opening up an issue first to talk about it, though! Look at the links below if you're not sure how to open a PR.
17+
18+
Work in Progress pull requests are also welcome to get feedback early on, or if there is something blocked you.
19+
20+
## Submitting a pull request
21+
22+
1. [Fork][fork] and clone the repository.
23+
2. Create a new branch: `git checkout -b my-branch-name`.
24+
3. Configure and install the dependencies: `poetry install`.
25+
4. Make sure the tests pass on your machine: `make install & make tests`
26+
5. Make your change, add tests, and make sure the tests still pass.
27+
6. Push to your fork and [submit a pull request][pr] and complete the information in the pull request template.
28+
29+
## Linting requirements
30+
31+
using `make install & make tests` will also run the following linters:
32+
33+
- [Black: The uncompromising Python code formatter](https://black.readthedocs.io/en/stable/)
34+
- [isort your imports, so you don't have to](https://pycqa.github.io/isort/)
35+
- [flake8: Your Tool For Style Guide Enforcement](https://flake8.pycqa.org/en/latest/)
36+
37+
using `make format` will run isort and black and apply any formatting suggestions from them
38+
39+
## Resources
40+
41+
- [How to Contribute to Open Source](https://opensource.guide/how-to-contribute/)
42+
- [Using Pull Requests](https://help.github.com/articles/about-pull-requests/)
43+
- [GitHub Help](https://help.github.com)

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ help:
1818
@echo " release version=<sem. version> bumps the project version to <sem. version>, using poetry;"
1919
@echo " Updates also docs/source/conf.py version;"
2020
@echo " If no version is provided, poetry outputs the current project version"
21-
@echo " test run all the tests and linting"
21+
@echo " tests run all the tests and linting"
2222
@echo " update updates the dependencies in poetry.lock"
2323
@echo ""
2424
@echo "Check the Makefile to know exactly what each target is doing."
@@ -37,7 +37,7 @@ docs: .install-poetry
3737
poetry run sphinx-build -b html docs/source docs/build
3838

3939
format: .install-poetry
40-
poetry run isort ocpp tests && poetry run black ocpp tests
40+
poetry run isort ocpp tests && poetry run black ocpp tests
4141

4242
tests: .install-poetry
4343
poetry run black --check --diff ocpp tests

README.rst

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,14 @@ To lower the logs for this package only use the following code:
203203
logging.getLogger('ocpp').setLevel(level=logging.DEBUG)
204204
logging.getLogger('ocpp').addHandler(logging.StreamHandler())
205205
206+
Aknowledgements
207+
---------------
208+
209+
Till the end of 2024, this project has been lead and maintained by `Auke Oosterhoff`_ and
210+
`Jared Newell`_. We thank them for work their work!
211+
212+
Since than, the project is lead by `Chad Meadowcroft`_, `Mohit Jain`_ and `Patrick Roelke`_.
213+
206214
License
207215
-------
208216

@@ -217,3 +225,9 @@ Attribution-NoDerivatives 4.0 International Public License.
217225
.. _rtd: https://ocpp.readthedocs.io/en/latest/index.html
218226
.. _The Mobility House: https://www.mobilityhouse.com/int_en/
219227
.. _websockets: https://pypi.org/project/websockets/
228+
229+
.. _Auke Oosterhoff: https://github.com/orangetux
230+
.. _Jared Newell: https://github.com/Jared-Newell-Mobility
231+
.. _Chad Meadowcroft: https://github.com/mdwcrft
232+
.. _Mohit Jain: https://github.com/jainmohit2001
233+
.. _Patrick Roelke: https://github.com/proelke

SECURITY.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Security Policy
2+
3+
This document outlines security procedures and general policies for this OCPP project.
4+
5+
## Supported Versions
6+
7+
The currently supported versions of this OCPP project are:
8+
9+
| Version | Supported |
10+
|----------|--------------------|
11+
| 2.0.0 | :soon: |
12+
| 1.0.0 | :white_check_mark: |
13+
| < 1.0.0 | :white_check_mark: |
14+
15+
## Reporting a Vulnerability
16+
17+
Please include the requested information listed below (as much as you can provide) to help
18+
us better understand the nature and scope of the possible issue:
19+
20+
- Type of issue (e.g. buffer overflow, SQL injection, cross-site scripting, etc.)
21+
- Full paths of source file(s) related to the manifestation of the issue
22+
- The location of the affected source code (tag/branch/commit or direct URL)
23+
- Any special configuration required to reproduce the issue
24+
- Step-by-step instructions to reproduce the issue
25+
- Proof-of-concept or exploit code (if possible)
26+
- Impact of the issue, including how an attacker might exploit the issue
27+
28+
This information will help us triage your report more quickly.
29+
30+
## Comments on this Policy
31+
32+
If you have suggestions on how this process could be improved please submit a
33+
pull request. Thanks!

0 commit comments

Comments
 (0)