forked from christiansandberg/canopen
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cacc419
commit c46228f
Showing
5 changed files
with
36 additions
and
38 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,14 @@ | ||
from pkg_resources import get_distribution, DistributionNotFound | ||
from .network import Network, NodeScanner | ||
from .node import RemoteNode, LocalNode | ||
from .sdo import SdoCommunicationError, SdoAbortedError | ||
from .objectdictionary import import_od, ObjectDictionary, ObjectDictionaryError | ||
from .profiles.p402 import BaseNode402 | ||
|
||
Node = RemoteNode | ||
|
||
try: | ||
__version__ = get_distribution(__name__).version | ||
except DistributionNotFound: | ||
from ._version import version as __version__ | ||
except ImportError: | ||
# package is not installed | ||
__version__ = "unknown" | ||
|
||
Node = RemoteNode | ||
|
||
__pypi_url__ = "https://pypi.org/project/canopen/" |
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,6 @@ | ||
[build-system] | ||
requires = ["setuptools>=45", "wheel", "setuptools_scm>=6.2"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[tool.setuptools_scm] | ||
write_to = "canopen/_version.py" |
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,23 @@ | ||
[metadata] | ||
name = canopen | ||
description = CANopen stack implementation | ||
long_description = file: README.rst | ||
project_urls = | ||
Documentation = http://canopen.readthedocs.io/en/stable/ | ||
Source Code = https://github.com/christiansandberg/canopen | ||
author = Christian Sandberg | ||
author_email = [email protected] | ||
classifier = | ||
Development Status :: 5 - Production/Stable | ||
License :: OSI Approved :: MIT License | ||
Operating System :: OS Independent | ||
Programming Language :: Python :: 3 :: Only | ||
Intended Audience :: Developers | ||
Topic :: Scientific/Engineering | ||
|
||
[options] | ||
packages = find: | ||
python_requires = >=3.6 | ||
install_requires = | ||
python-can >= 3.0.0 | ||
include_package_data = True |
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,33 +1,3 @@ | ||
from setuptools import setup, find_packages | ||
from setuptools import setup | ||
|
||
description = open("README.rst").read() | ||
# Change links to stable documentation | ||
description = description.replace("/latest/", "/stable/") | ||
|
||
setup( | ||
name="canopen", | ||
url="https://github.com/christiansandberg/canopen", | ||
use_scm_version=True, | ||
packages=find_packages(), | ||
author="Christian Sandberg", | ||
author_email="[email protected]", | ||
description="CANopen stack implementation", | ||
keywords="CAN CANopen", | ||
long_description=description, | ||
license="MIT", | ||
platforms=["any"], | ||
classifiers=[ | ||
"Development Status :: 5 - Production/Stable", | ||
"License :: OSI Approved :: MIT License", | ||
"Operating System :: OS Independent", | ||
"Programming Language :: Python :: 3", | ||
"Intended Audience :: Developers", | ||
"Topic :: Scientific/Engineering" | ||
], | ||
install_requires=["python-can>=3.0.0"], | ||
extras_require={ | ||
"db_export": ["canmatrix"] | ||
}, | ||
setup_requires=["setuptools_scm"], | ||
include_package_data=True | ||
) | ||
setup() |