-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'RobertoRoos-feature/init-import'
- Loading branch information
Showing
5 changed files
with
78 additions
and
13 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -83,7 +83,7 @@ def find_version(*file_paths): | |
extensions = [ | ||
Extension( | ||
'pysoem.pysoem', | ||
['pysoem/pysoem'+ext] + soem_sources, | ||
['src/pysoem/pysoem'+ext] + soem_sources, | ||
define_macros=soem_macros, | ||
libraries=soem_libs, | ||
library_dirs=soem_lib_dirs, | ||
|
@@ -96,7 +96,7 @@ def find_version(*file_paths): | |
extensions = cythonize(extensions, compiler_directives={"language_level": "2"}) | ||
|
||
setup(name='pysoem', | ||
version=find_version("pysoem", "__init__.py"), | ||
version=find_version("src", "pysoem", "__init__.py"), | ||
description='Cython wrapper for the SOEM Library', | ||
author='Benjamin Partzsch', | ||
author_email='[email protected]', | ||
|
@@ -105,6 +105,7 @@ def find_version(*file_paths): | |
long_description=readme(), | ||
ext_modules=extensions, | ||
packages=['pysoem'], | ||
package_dir={"": "src"}, | ||
project_urls={ | ||
'Documentation': 'https://pysoem.readthedocs.io', | ||
}, | ||
|
@@ -118,4 +119,4 @@ def find_version(*file_paths): | |
'Programming Language :: Python :: Implementation :: CPython', | ||
'Topic :: Scientific/Engineering', | ||
] | ||
) | ||
) |
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,58 @@ | ||
__version__ = '1.1.6' | ||
|
||
|
||
# Classes: | ||
from pysoem.pysoem import ( | ||
Master, | ||
SdoError, | ||
Emergency, | ||
SdoInfoError, | ||
MailboxError, | ||
PacketError, | ||
ConfigMapError, | ||
EepromError, | ||
WkcError, | ||
SiiOffset, | ||
) | ||
|
||
# State constants: | ||
from pysoem.pysoem import ( | ||
NONE_STATE, | ||
INIT_STATE, | ||
PREOP_STATE, | ||
BOOT_STATE, | ||
SAFEOP_STATE, | ||
OP_STATE, | ||
STATE_ACK, | ||
STATE_ERROR, | ||
) | ||
|
||
# ECT constants: | ||
from pysoem.pysoem import ( | ||
ECT_REG_WD_DIV, | ||
ECT_REG_WD_TIME_PDI, | ||
ECT_REG_WD_TIME_PROCESSDATA, | ||
ECT_REG_SM0, | ||
ECT_REG_SM1, | ||
ECT_COEDET_SDO, | ||
ECT_COEDET_SDOINFO, | ||
ECT_COEDET_PDOASSIGN, | ||
ECT_COEDET_PDOCONFIG, | ||
ECT_COEDET_UPLOAD, | ||
ECT_COEDET_SDOCA, | ||
ec_datatype, | ||
) | ||
|
||
# Functions: | ||
from pysoem.pysoem import ( | ||
find_adapters, | ||
open, | ||
al_status_code_to_string, | ||
) | ||
|
||
# Raw Cdefs: | ||
from pysoem.pysoem import ( | ||
CdefMaster, | ||
CdefSlave, | ||
CdefCoeObjectEntry, | ||
) |
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