Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto versioning update #305

Closed
wants to merge 11 commits into from
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install coverage
pip install .[dev]
pip install -r requirements.txt
- name: Setup test config and CouchDB database server
run: |
Expand Down
23 changes: 23 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,26 @@
/test/test_config.ini
# Schema files needed for testing
/test/adapter/schemas
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are also actively used in the CI, so it makes sense to keep them



# Python build artifacts
__pycache__/
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I preferred the `**/pycache/ from before, since it matches any pycache directory at any level in the repository. These might occur when you run a module outside of the main directory.

*.py[cod]
*$py.class
*.so
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
*.egg-info/
.installed.cfg
*.egg
hadijannat marked this conversation as resolved.
Show resolved Hide resolved
8 changes: 6 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ build-backend = "setuptools.build_meta"

[project]
name = "basyx-python-sdk"
version = "1.0.0"
description = "The Eclipse BaSyx Python SDK, an implementation of the Asset Administration Shell for Industry 4.0 systems"
authors = [
{ name = "The Eclipse BaSyx Authors", email = "admins@iat.rwth-aachen.de" }
Expand All @@ -24,6 +23,12 @@ dependencies = [
"urllib3>=1.26,<3",
"pyecma376-2>=0.2.4"
]
# This line indicates that the version is dynamically determined
hadijannat marked this conversation as resolved.
Show resolved Hide resolved
dynamic = ["version"]

[tool.setuptools_scm]
# This section configures setuptools_scm
hadijannat marked this conversation as resolved.
Show resolved Hide resolved
write_to = "basyx/version.py" # Optional: creates a version.py file in your package

[project.optional-dependencies]
dev = [
Expand All @@ -45,4 +50,3 @@ basyx = ["py.typed"]

[tool.setuptools.exclude-package-data]
"*" = ["test", "test.*"]

1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ Werkzeug>=3.0.3,<4
schemathesis~=3.7
hypothesis~=6.13
lxml-stubs~=0.5.1

Loading