Skip to content

Add appropriate __version__ and __repo__ #4

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

Merged
merged 1 commit into from
Sep 9, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion adafruit_rsa/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,6 @@

__author__ = "Sybren Stuvel, Barry Mead and Yesudeep Mangalapilly"
__date__ = "2018-09-16"
__version__ = '4.0.0'
# __version__ = '4.0.0'
__version__ = "0.0.0-auto.0"
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_RSA.git"
3 changes: 3 additions & 0 deletions adafruit_rsa/_compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@
import sys
from struct import pack

__version__ = "0.0.0-auto.0"
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_RSA.git"

MAX_INT = sys.maxsize
MAX_INT64 = (1 << 63) - 1
MAX_INT32 = (1 << 31) - 1
Expand Down
2 changes: 2 additions & 0 deletions adafruit_rsa/asn1.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
# pylint: disable=no-name-in-module, too-few-public-methods
from pyasn1.type import univ, namedtype, tag

__version__ = "0.0.0-auto.0"
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_RSA.git"

class PubKeyHeader(univ.Sequence):
"""OpenSSL Public Key Header"""
Expand Down
3 changes: 3 additions & 0 deletions adafruit_rsa/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
# pylint: disable=redefined-builtin, invalid-name
from adafruit_rsa._compat import zip

__version__ = "0.0.0-auto.0"
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_RSA.git"

def bit_length(int_type):
"""Return the number of bits necessary to represent an integer in binary,
excluding the sign and leading zeros"""
Expand Down
3 changes: 3 additions & 0 deletions adafruit_rsa/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
# pylint: disable=invalid-name
from adafruit_rsa._compat import is_integer

__version__ = "0.0.0-auto.0"
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_RSA.git"

def fast_pow(x, e, m):
"""Performs fast modular exponentiation, saves RAM on small CPUs/micros.
:param int x: Base
Expand Down
3 changes: 3 additions & 0 deletions adafruit_rsa/key.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@
import adafruit_rsa.randnum
import adafruit_rsa.core

__version__ = "0.0.0-auto.0"
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_RSA.git"

# pylint: disable=invalid-name, useless-object-inheritance, redefined-builtin, no-name-in-module, too-few-public-methods
log = logging.getLogger(__name__)
log.setLevel(logging.INFO)
Expand Down
3 changes: 3 additions & 0 deletions adafruit_rsa/machine_size.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@

import sys

__version__ = "0.0.0-auto.0"
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_RSA.git"

MAX_INT = sys.maxsize
MAX_INT64 = (1 << 63) - 1
MAX_INT32 = (1 << 31) - 1
Expand Down
2 changes: 2 additions & 0 deletions adafruit_rsa/pem.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
# pylint: disable=redefined-builtin
from adafruit_rsa._compat import is_bytes, range

__version__ = "0.0.0-auto.0"
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_RSA.git"

def _markers(pem_marker):
"""
Expand Down
3 changes: 3 additions & 0 deletions adafruit_rsa/pkcs1.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@
import adafruit_hashlib as hashlib
from adafruit_rsa import common, transform, core

__version__ = "0.0.0-auto.0"
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_RSA.git"

# ASN.1 codes that describe the hash algorithm used.
HASH_ASN1 = {
"MD5": b"\x30\x20\x30\x0c\x06\x08\x2a\x86\x48\x86\xf7\x0d\x02\x05\x05\x00\x04\x10",
Expand Down
3 changes: 3 additions & 0 deletions adafruit_rsa/prime.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@
import adafruit_rsa.common
import adafruit_rsa.randnum

__version__ = "0.0.0-auto.0"
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_RSA.git"

__all__ = ['getprime', 'are_relatively_prime']


Expand Down
2 changes: 2 additions & 0 deletions adafruit_rsa/randnum.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
from adafruit_rsa import common, transform
from adafruit_rsa._compat import byte

__version__ = "0.0.0-auto.0"
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_RSA.git"

def read_random_bits(nbits):
"""Reads 'nbits' random bits.
Expand Down
2 changes: 2 additions & 0 deletions adafruit_rsa/transform.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@
from adafruit_rsa._compat import byte, is_integer
from adafruit_rsa import common, machine_size

__version__ = "0.0.0-auto.0"
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_RSA.git"

def bytes2int(raw_bytes):
"""Converts a list of bytes or an 8-bit string to an integer.
Expand Down