Skip to content

Commit

Permalink
Update sdk/pyproject.toml and .gitignore to new repository structure
Browse files Browse the repository at this point in the history
After moving the SDK from the root of the
repository (`.`) to `./sdk`, we adapt the
`sdk/pyproject.toml` with the necessary changes.
Namely, `setuptools-scm` needs to know where the
repository root is. While we're at it, we change
the `write_to` option which is deprecated to the
new `version_file` option.

We also adapt the `.gitignore` by ignoring the
prior ignored files now in all directories, not
just the repository root.
  • Loading branch information
s-heppner committed Oct 25, 2024
1 parent d12f637 commit 2ec791e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 14 deletions.
26 changes: 13 additions & 13 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,27 +4,27 @@
/.mypy_cache/

# Typical virtualenv dir
/venv/
venv/

# IDE settings
/.idea/
.idea/

# Python distribution artifacts
/build/
/dist/
/*.egg-info/
/docs/build/
build/
dist/
*.egg-info/
docs/build/

# Coverage artifacts
/.coverage
/htmlcov/
/docs/build/
/.hypothesis/
.coverage
htmlcov/
docs/build/
.hypothesis/

# customized config files
/test/test_config.ini
sdk/test/test_config.ini
# Schema files needed for testing
/test/adapter/schemas
sdk/test/adapter/schemas

# Ignore dynamically generated version file
basyx/version.py
sdk/basyx/version.py
3 changes: 2 additions & 1 deletion sdk/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ build-backend = "setuptools.build_meta"
# from basyx.version import version
# print(f"Project version: {version}")
# ```
write_to = "basyx/version.py"
root = ".." # Defines the path to the root of the repository
version_file = "basyx/version.py"

[project]
name = "basyx-python-sdk"
Expand Down

0 comments on commit 2ec791e

Please sign in to comment.