forked from eclipse-basyx/basyx-python-sdk
-
Notifications
You must be signed in to change notification settings - Fork 2
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
test-pyproject-toml #47
Closed
Closed
Changes from 2 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
72d9ff9
Migrate to pyproject.toml and update related files
hadijannat 6b873bb
Update pyproject.toml and setup.py based on review comments
hadijannat d742cb8
Update pyproject.toml, setup.py, and requirements.txt
hadijannat dc52ce5
Update dependency management and CI configuration
hadijannat 8afa71d
Fix MyPy and Sphinx documentation errors
hadijannat 94cc4d4
Update docstrings and type annotations for Duration
hadijannat 0ad20d3
Update Duration references in docstrings and conf.py
hadijannat d9f418d
Update Duration references in docstrings and conf.py
hadijannat e4ffa56
Remove requirements.txt and update related files for pyproject.toml m…
hadijannat 44e323f
Fix: Add newline at end of basyx/aas/__init__.py
hadijannat 1afd67a
Your commit message describing the changes
hadijannat b61e183
Clarified Duration alias and updated Sphinx configuration
hadijannat 50dfbce
Updated Duration type definition and Sphinx configuration
hadijannat 5c4f852
Add pyproject.toml and update setup.py for new build system
hadijannat 06a8b8e
new pyproject and setup
hadijannat File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
[build-system] | ||
requires = ["setuptools>=40.8.0", "wheel"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "basyx-python-sdk" | ||
version = "1.0.0" # actual 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]"} # actual authors | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If you cannot leave out the E-Mail field, I'd use |
||
] | ||
readme = "README.md" | ||
license = {file = "LICENSE"} | ||
classifiers = [ | ||
"Programming Language :: Python :: 3", | ||
"License :: OSI Approved :: MIT License", | ||
"Operating System :: OS Independent", | ||
"Development Status :: 5 - Production/Stable", | ||
] | ||
requires-python = ">=3.8" | ||
dependencies = [ | ||
"jsonschema~=4.7", | ||
"lxml>=4.2,<5", | ||
"python-dateutil>=2.8,<3.0", | ||
"pyecma376-2>=0.2.4", | ||
"urllib3>=1.26,<2.0", | ||
"lxml-stubs~=0.5.1", | ||
] | ||
|
||
[project.urls] | ||
Homepage = "https://github.com/eclipse-basyx/basyx-python-sdk" | ||
|
||
[tool.setuptools.packages.find] | ||
exclude = ["test", "test.*"] | ||
|
||
[tool.setuptools.package-data] | ||
"basyx" = ["py.typed"] | ||
"basyx.aas.examples.data" = ["TestFile.pdf"] |
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 |
---|---|---|
|
@@ -5,3 +5,4 @@ types-python-dateutil | |
pyecma376-2>=0.2.4 | ||
urllib3>=1.26,<2.0 | ||
lxml-stubs~=0.5.1 | ||
|
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,48 +1,12 @@ | ||
#!/usr/bin/env python3 | ||
# Copyright (c) 2019-2024 the Eclipse BaSyx Authors | ||
# | ||
# This program and the accompanying materials are made available under the terms of the MIT License, available in | ||
# the LICENSE file of this project. | ||
# | ||
# SPDX-License-Identifier: MIT | ||
from setuptools import setup, find_packages | ||
|
||
import setuptools | ||
from basyx.aas import __version__ | ||
|
||
with open("README.md", "r", encoding='utf-8') as fh: | ||
long_description = fh.read() | ||
|
||
setuptools.setup( | ||
# Metadata is now in pyproject.toml, but we need this file for backwards compatibility | ||
setup( | ||
name="basyx-python-sdk", | ||
version=__version__, | ||
author="The Eclipse BaSyx Authors", | ||
description="The Eclipse BaSyx Python SDK, an implementation of the Asset Administration Shell for Industry 4.0 " | ||
"systems", | ||
long_description=long_description, | ||
long_description_content_type="text/markdown", | ||
url="https://github.com/eclipse-basyx/basyx-python-sdk", | ||
packages=setuptools.find_packages(exclude=["test", "test.*"]), | ||
zip_safe=False, | ||
packages=find_packages(exclude=["test", "test.*"]), | ||
package_data={ | ||
"basyx": ["py.typed"], | ||
"basyx.aas.examples.data": ["TestFile.pdf"], | ||
}, | ||
classifiers=[ | ||
"Programming Language :: Python :: 3", | ||
"License :: OSI Approved :: MIT License", | ||
"Operating System :: OS Independent", | ||
"Development Status :: 5 - Production/Stable", | ||
], | ||
entry_points={ | ||
'console_scripts': [ | ||
"aas-compliance-check = basyx.aas.compliance_tool.cli:main" | ||
] | ||
}, | ||
python_requires='>=3.8', | ||
install_requires=[ | ||
'python-dateutil>=2.8,<3', | ||
'lxml>=4.2,<5', | ||
'urllib3>=1.26,<2.0', | ||
'pyecma376-2>=0.2.4', | ||
] | ||
) | ||
|
||
) |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The comment is not a particularly good one, as it is obvious that
version
equals the version