-
-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
python: Merge test/pytest/testlib as main python package
... and prepare for publishing to pypi. The old "raw wrapper" is now called osdp_sys and testlib replaces it the main osdp module. Signed-off-by: Siddharth Chandrasekaran <[email protected]>
- Loading branch information
Showing
33 changed files
with
318 additions
and
243 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -70,6 +70,7 @@ config.make | |
__pycache__/ | ||
.cache/ | ||
*.pyc | ||
.venv/ | ||
|
||
## Rust | ||
/Cargo.lock | ||
|
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,3 @@ | ||
*.egg-info/ | ||
build/ | ||
dist/ |
This file was deleted.
Oops, something went wrong.
File renamed without changes.
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,71 @@ | ||
# | ||
# Copyright (c) 2021-2023 Siddharth Chandrasekaran <[email protected]> | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# | ||
|
||
import osdp_sys | ||
|
||
class LibFlag: | ||
EnforceSecure = osdp_sys.FLAG_ENFORCE_SECURE | ||
InstallMode = osdp_sys.FLAG_INSTALL_MODE | ||
IgnoreUnsolicited = osdp_sys.FLAG_IGN_UNSOLICITED | ||
|
||
class LogLevel: | ||
Emergency = osdp_sys.LOG_EMERG | ||
Alert = osdp_sys.LOG_ALERT | ||
Critical = osdp_sys.LOG_CRIT | ||
Error = osdp_sys.LOG_ERROR | ||
Warning = osdp_sys.LOG_WARNING | ||
Notice = osdp_sys.LOG_NOTICE | ||
Info = osdp_sys.LOG_INFO | ||
Debug = osdp_sys.LOG_DEBUG | ||
|
||
class Command: | ||
Output = osdp_sys.CMD_OUTPUT | ||
Buzzer = osdp_sys.CMD_BUZZER | ||
LED = osdp_sys.CMD_LED | ||
Comset = osdp_sys.CMD_COMSET | ||
Text = osdp_sys.CMD_TEXT | ||
Manufacturer = osdp_sys.CMD_MFG | ||
Keyset = osdp_sys.CMD_KEYSET | ||
FileTransfer = osdp_sys.CMD_FILE_TX | ||
|
||
class CommandLEDColor: | ||
Black = osdp_sys.LED_COLOR_NONE | ||
Red = osdp_sys.LED_COLOR_RED | ||
Green = osdp_sys.LED_COLOR_GREEN | ||
Amber = osdp_sys.LED_COLOR_AMBER | ||
Blue = osdp_sys.LED_COLOR_BLUE | ||
|
||
class CommandFileTxFlags: | ||
Cancel = osdp_sys.CMD_FILE_TX_FLAG_CANCEL | ||
|
||
class Event: | ||
CardRead = osdp_sys.EVENT_CARDREAD | ||
KeyPress = osdp_sys.EVENT_KEYPRESS | ||
ManufacturerReply = osdp_sys.EVENT_MFGREP | ||
InputOutput = osdp_sys.EVENT_IO | ||
Status = osdp_sys.EVENT_STATUS | ||
|
||
class CardFormat: | ||
Unspecified = osdp_sys.CARD_FMT_RAW_UNSPECIFIED | ||
Wiegand = osdp_sys.CARD_FMT_RAW_WIEGAND | ||
ASCII = osdp_sys.CARD_FMT_ASCII | ||
|
||
class Capability: | ||
Unused = osdp_sys.CAP_UNUSED | ||
ContactStatusMonitoring = osdp_sys.CAP_CONTACT_STATUS_MONITORING | ||
OutputControl = osdp_sys.CAP_OUTPUT_CONTROL | ||
CardDataFormat = osdp_sys.CAP_CARD_DATA_FORMAT | ||
LEDControl = osdp_sys.CAP_READER_LED_CONTROL | ||
AudibleControl = osdp_sys.CAP_READER_AUDIBLE_OUTPUT | ||
TextOutput = osdp_sys.CAP_READER_TEXT_OUTPUT | ||
TimeKeeping = osdp_sys.CAP_TIME_KEEPING | ||
CheckCharacter = osdp_sys.CAP_CHECK_CHARACTER_SUPPORT | ||
CommunicationSecurity = osdp_sys.CAP_COMMUNICATION_SECURITY | ||
ReceiveBufferSize = osdp_sys.CAP_RECEIVE_BUFFERSIZE | ||
CombinedMessageSize = osdp_sys.CAP_LARGEST_COMBINED_MESSAGE_SIZE | ||
SmartCard = osdp_sys.CAP_SMART_CARD_SUPPORT | ||
Readers = osdp_sys.CAP_READERS | ||
Biometrics = osdp_sys.CAP_BIOMETRICS |
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
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
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,3 +1,3 @@ | ||
[build-system] | ||
requires = ["setuptools >= 57.2.0", "wheel"] | ||
requires = ["setuptools >= 57.2.0"] | ||
build-backend = "setuptools.build_meta" |
Oops, something went wrong.