forked from eclipse-basyx/basyx-python-sdk
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor dependency management to pyproject.toml
Previously, our dependency management was a bit of a mess. We had both a `requirements.txt` and a `pyproject.toml` and some dependencies were only defined in one but not the other. This aims to fix this mess and refactor towards only using `pyproject.toml` to define the dependencies. At the same time, we also clean up the install process, which now works by simply calling `pip install .` or `pip install -e .[dev]` for the developer envrionment. Furthermore, we configure the already introduced `setuptools_scm` to automatically infer a version based on the most recent git tag.
- Loading branch information
Showing
6 changed files
with
49 additions
and
32 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,26 @@ | ||
[build-system] | ||
requires = ["setuptools>=45", "wheel", "setuptools_scm[toml]>=6.2"] | ||
requires = [ | ||
"setuptools>=45", | ||
"wheel", | ||
"setuptools_scm[toml]>=6.2" | ||
] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[tool.setuptools_scm] | ||
# Configure setuptools_scm for version management: | ||
# - Automatically infers the version number from the most recent git tag | ||
# - Generates a version.py file in the package directory | ||
# - Allows for automatic versioning between releases (e.g., 1.0.1.dev4+g12345) | ||
# If you want to use the version anywhere in the code, use | ||
# ``` | ||
# from basyx.version import version | ||
# print(f"Project version: {version}") | ||
# ``` | ||
write_to = "basyx/version.py" | ||
|
||
[project] | ||
name = "basyx-python-sdk" | ||
version = "1.0.0" | ||
dynamic = ["version"] | ||
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 = "[email protected]" } | ||
|
@@ -19,10 +35,16 @@ classifiers = [ | |
] | ||
requires-python = ">=3.8" | ||
dependencies = [ | ||
"python-dateutil>=2.8,<3", | ||
"jsonschema~=4.7", | ||
"lxml>=4.2,<5", | ||
"python-dateutil>=2.8,<3", | ||
"types-python-dateutil", | ||
"pyecma376-2>=0.2.4", | ||
"urllib3>=1.26,<3", | ||
"pyecma376-2>=0.2.4" | ||
"Werkzeug>=3.0.3,<4", | ||
"schemathesis~=3.7", | ||
"hypothesis~=6.13", | ||
"lxml-stubs~=0.5.1", | ||
] | ||
|
||
[project.optional-dependencies] | ||
|
This file was deleted.
Oops, something went wrong.