Skip to content

Commit 1249f49

Browse files
Merge pull request #16 from acplt/update/readme
Update README and set PYTHONPATH in compliance tool tests
2 parents 3f285fd + 5e8a210 commit 1249f49

File tree

3 files changed

+69
-115
lines changed

3 files changed

+69
-115
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,7 @@ jobs:
3838
run: |
3939
python test/_helper/setup_testdb.py -u "admin" -p "$COUCHDB_ADMIN_PASSWORD"
4040
- name: Test with coverage + unittest
41-
# Add source directory to PYTHONPATH to allow testing our CLI scripts, which import our modules
4241
run: |
43-
export PYTHONPATH=".:$PYTHONPATH"
4442
coverage run --source=basyx -m unittest
4543
- name: Report test coverage
4644
if: ${{ always() }}

README.md

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -130,10 +130,14 @@ For further examples and tutorials, check out the `basyx.aas.examples`-package.
130130
* [`tutorial_backend_couchdb`](./basyx/aas/examples/tutorial_backend_couchdb.py): Use the *Backends* interface (`update()/commit()` methods) to manage and retrieve AAS objects in a CouchDB document database
131131

132132

133+
### Documentation
134+
135+
A detailed, complete API documentation is available on Read the Docs: https://basyx-python-sdk.readthedocs.io
136+
133137
### Compliance Tool
134138

135139
The Eclipse BaSyx Python SDK project contains a compliance tool for testing xml and json files is provided in the
136-
`aas.compliance_tool`-package. Following functionalities are supported:
140+
`basyx.aas.compliance_tool`-package. Following functionalities are supported:
137141

138142
* create an xml or json file compliant to the official schema containing example Asset Administration Shell elements
139143
* create an aasx file with xml or json files compliant to the official schema containing example Asset Administration
@@ -143,11 +147,11 @@ Shell elements
143147
* check if the data in a given xml, json or aasx file is the same as the example data
144148
* check if two given xml, json or aasx files contain the same Asset Administration Shell elements in any order
145149

146-
Invoking should work with either `python -m aas.compliance_tool.cli` or (when installed correctly and PATH is set
150+
Invoking should work with either `python -m basyx.aas.compliance_tool.cli` or (when installed correctly and PATH is set
147151
correctly) with `aas-compliance-check` on the command line.
148152

149-
For further usage information consider the `aas.compliance_tool`-package or invoke with
150-
`python -m aas.compliance_tool.cli --help` respectively `aas-compliance-check --help`.
153+
For further usage information consider the `basyx.aas.compliance_tool`-package or invoke with
154+
`python -m basyx.aas.compliance_tool.cli --help` respectively `aas-compliance-check --help`.
151155

152156
## Development
153157

@@ -164,15 +168,20 @@ pip install mypy pycodestyle
164168

165169
Running all checks:
166170
```bash
167-
mypy aas test
168-
pycodestyle --max-line-length 120 aas test
171+
mypy basyx test
172+
pycodestyle --max-line-length 120 basyx test
169173
python -m unittest
170174
```
171175

172176
We aim to cover our code with test by at least 80%. To check test coverage, you can use `coverage`:
173177

174178
```bash
175179
pip install coverage
176-
coverage run --source aas --branch -m unittest
180+
coverage run --source basyx --branch -m unittest
177181
coverage report -m
178182
```
183+
184+
### Eclipse Contributor Agreement
185+
186+
To contribute code to this project you need to sign the [Eclipse Contributor Agreement (ECA)](https://www.eclipse.org/legal/ECA.php).
187+
This is done by creating an Eclipse account for your git e-mail address and then submitting the following form: https://accounts.eclipse.org/user/eca

0 commit comments

Comments
 (0)