Skip to content

Commit 86ec3bc

Browse files
brentrubrentru
brentru
authored and
brentru
committed
add version and repo to every file
1 parent 63d26ad commit 86ec3bc

File tree

12 files changed

+32
-1
lines changed

12 files changed

+32
-1
lines changed

adafruit_rsa/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,6 @@
2929

3030
__author__ = "Sybren Stuvel, Barry Mead and Yesudeep Mangalapilly"
3131
__date__ = "2018-09-16"
32-
__version__ = '4.0.0'
32+
# __version__ = '4.0.0'
33+
__version__ = "0.0.0-auto.0"
34+
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_RSA.git"

adafruit_rsa/_compat.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919
import sys
2020
from struct import pack
2121

22+
__version__ = "0.0.0-auto.0"
23+
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_RSA.git"
24+
2225
MAX_INT = sys.maxsize
2326
MAX_INT64 = (1 << 63) - 1
2427
MAX_INT32 = (1 << 31) - 1

adafruit_rsa/asn1.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222
# pylint: disable=no-name-in-module, too-few-public-methods
2323
from pyasn1.type import univ, namedtype, tag
2424

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

2628
class PubKeyHeader(univ.Sequence):
2729
"""OpenSSL Public Key Header"""

adafruit_rsa/common.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@
1818
# pylint: disable=redefined-builtin, invalid-name
1919
from adafruit_rsa._compat import zip
2020

21+
__version__ = "0.0.0-auto.0"
22+
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_RSA.git"
23+
2124
def bit_length(int_type):
2225
"""Return the number of bits necessary to represent an integer in binary,
2326
excluding the sign and leading zeros"""

adafruit_rsa/core.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
# pylint: disable=invalid-name
2424
from adafruit_rsa._compat import is_integer
2525

26+
__version__ = "0.0.0-auto.0"
27+
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_RSA.git"
28+
2629
def fast_pow(x, e, m):
2730
"""Performs fast modular exponentiation, saves RAM on small CPUs/micros.
2831
:param int x: Base

adafruit_rsa/key.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@
4040
import adafruit_rsa.randnum
4141
import adafruit_rsa.core
4242

43+
__version__ = "0.0.0-auto.0"
44+
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_RSA.git"
45+
4346
# pylint: disable=invalid-name, useless-object-inheritance, redefined-builtin, no-name-in-module, too-few-public-methods
4447
log = logging.getLogger(__name__)
4548
log.setLevel(logging.INFO)

adafruit_rsa/machine_size.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@
1818

1919
import sys
2020

21+
__version__ = "0.0.0-auto.0"
22+
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_RSA.git"
23+
2124
MAX_INT = sys.maxsize
2225
MAX_INT64 = (1 << 63) - 1
2326
MAX_INT32 = (1 << 31) - 1

adafruit_rsa/pem.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
# pylint: disable=redefined-builtin
2020
from adafruit_rsa._compat import is_bytes, range
2121

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

2325
def _markers(pem_marker):
2426
"""

adafruit_rsa/pkcs1.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@
3131
import adafruit_hashlib as hashlib
3232
from adafruit_rsa import common, transform, core
3333

34+
__version__ = "0.0.0-auto.0"
35+
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_RSA.git"
36+
3437
# ASN.1 codes that describe the hash algorithm used.
3538
HASH_ASN1 = {
3639
"MD5": b"\x30\x20\x30\x0c\x06\x08\x2a\x86\x48\x86\xf7\x0d\x02\x05\x05\x00\x04\x10",

adafruit_rsa/prime.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@
2424
import adafruit_rsa.common
2525
import adafruit_rsa.randnum
2626

27+
__version__ = "0.0.0-auto.0"
28+
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_RSA.git"
29+
2730
__all__ = ['getprime', 'are_relatively_prime']
2831

2932

adafruit_rsa/randnum.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323
from adafruit_rsa import common, transform
2424
from adafruit_rsa._compat import byte
2525

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

2729
def read_random_bits(nbits):
2830
"""Reads 'nbits' random bits.

adafruit_rsa/transform.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@
2727
from adafruit_rsa._compat import byte, is_integer
2828
from adafruit_rsa import common, machine_size
2929

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

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

0 commit comments

Comments
 (0)