File tree 15 files changed +52
-43
lines changed
15 files changed +52
-43
lines changed Original file line number Diff line number Diff line change 1
- # This file is part of AsicVerifier and is released under
2
- # the AGPL-3.0-only License: https://opensource.org/ license/agpl-v3/
1
+ # Copyright (c) Free Software Foundation, Inc. All rights reserved.
2
+ # Licensed under the AGPL-3.0-only License. See LICENSE in the project root for license information.
3
3
4
4
name : CI/CD
5
5
on :
62
62
if : steps.cache-python-venv.outputs.cache-hit != 'true'
63
63
uses : actions/setup-python@v4
64
64
with :
65
- python-version : ' 3.7 '
65
+ python-version : ' 3.8 '
66
66
- name : Install dependencies
67
67
if : steps.cache-python-venv.outputs.cache-hit != 'true'
68
68
run : |
Original file line number Diff line number Diff line change 1
- # This file is part of AsicVerifier and is released under
2
- # the AGPL-3.0-only License: https://opensource.org/ license/agpl-v3/
1
+ # Copyright (c) Free Software Foundation, Inc. All rights reserved.
2
+ # Licensed under the AGPL-3.0-only License. See LICENSE in the project root for license information.
3
3
4
4
* .egg-info /
5
5
__pycache__ /
Original file line number Diff line number Diff line change
1
+ {
2
+ "recommendations" : [
3
+ " ms-python.flake8"
4
+ ]
5
+ }
Original file line number Diff line number Diff line change 22
22
" build" ,
23
23
" 'coverage[toml]'" ,
24
24
" httpx" ,
25
- " 'importlib_metadata<5'" ,
26
25
" flake8"
27
26
]
28
27
},
Original file line number Diff line number Diff line change 1
- # This file is part of AsicVerifier and is released under
2
- # the AGPL-3.0-only License: https://opensource.org/ license/agpl-v3/
1
+ # Copyright (c) Free Software Foundation, Inc. All rights reserved.
2
+ # Licensed under the AGPL-3.0-only License. See LICENSE in the project root for license information.
3
3
4
- FROM python:3.7 -alpine AS venv
4
+ FROM python:3.8 -alpine AS venv
5
5
6
6
ADD https://www.random.org/cgi-bin/randbyte?nbytes=10&format=h skipcache
7
7
RUN pip install \
@@ -15,7 +15,7 @@ RUN pip install \
15
15
--target=/opt/venv/ \
16
16
AsicVerifier[restful-api]
17
17
18
- FROM python:3.7 -alpine
18
+ FROM python:3.8 -alpine
19
19
20
20
COPY --from=niis/xroad-security-server-sidecar:7.0.4 /usr/share/xroad/jlib/asicverifier.jar /lib/
21
21
ENV JAVA_HOME /opt/java/openjdk
Original file line number Diff line number Diff line change 1
1
<!--
2
- This file is part of AsicVerifier and is released under
3
- the AGPL-3.0-only License: https://opensource.org/ license/agpl-v3/
2
+ Copyright (c) Free Software Foundation, Inc. All rights reserved.
3
+ Licensed under the AGPL-3.0-only License. See LICENSE in the project root for license information.
4
4
-->
5
5
6
6
# AsicVerifier
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env python3
2
2
3
- # This module is part of AsicVerifier and is released under
4
- # the AGPL-3.0-only License: https://opensource.org/license/agpl-v3/
3
+ # Copyright (c) Free Software Foundation, Inc. All rights reserved.
4
+ # Licensed under the AGPL-3.0-only License. See LICENSE in the project root
5
+ # for license information.
5
6
6
- from dateutil import tz
7
- from dateutil .parser import parse
8
7
from datetime import datetime
9
8
from enum import Enum
10
9
from io import BytesIO
17
16
from urllib .parse import urlencode , urljoin , urlparse
18
17
from zipfile import ZipFile
19
18
19
+ from dateutil import tz
20
+ from dateutil .parser import parse
20
21
from dotenv import load_dotenv
21
22
from importlib_metadata import PackageMetadata , metadata
22
23
import requests
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env python3
2
2
3
- # This module is part of AsicVerifier and is released under
4
- # the AGPL-3.0-only License: https://opensource.org/license/agpl-v3/
3
+ # Copyright (c) Free Software Foundation, Inc. All rights reserved.
4
+ # Licensed under the AGPL-3.0-only License. See LICENSE in the project root
5
+ # for license information.
5
6
6
7
import logging
7
8
from os import getenv
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env python3
2
2
3
- # This module is part of AsicVerifier and is released under
4
- # the AGPL-3.0-only License: https://opensource.org/license/agpl-v3/
3
+ # Copyright (c) Free Software Foundation, Inc. All rights reserved.
4
+ # Licensed under the AGPL-3.0-only License. See LICENSE in the project root
5
+ # for license information.
5
6
6
7
from datetime import datetime
7
8
from os import getenv
@@ -44,7 +45,7 @@ class AsicSign(BaseModel):
44
45
45
46
46
47
class AsicSignerCertificateSubject (AsicOcsp ):
47
- C : str
48
+ C : str = None
48
49
49
50
50
51
class AsicSignerCertificate (AsicSign ):
@@ -62,14 +63,14 @@ class AsicOcspResponse(BaseModel):
62
63
63
64
64
65
class AsicTimeStampSignByIssuer (AsicSignerCertificateSubject , BaseModel ):
65
- ST : str
66
- L : str
67
- EMAILADDRESS : EmailStr
68
- OU : str
66
+ ST : str = None
67
+ L : str = None
68
+ EMAILADDRESS : EmailStr = None
69
+ OU : str = None
69
70
70
71
71
72
class AsicTimeStampSignBySubject (AsicTimeStampSignByIssuer ):
72
- oid_2_5_4_13 : str = Field (alias = 'OID.2.5.4.13' )
73
+ oid_2_5_4_13 : str = Field (None , alias = 'OID.2.5.4.13' )
73
74
74
75
75
76
class AsicTimeStampSignBy (AsicSign ):
Original file line number Diff line number Diff line change 1
- # This file is part of AsicVerifier and is released under
2
- # the AGPL-3.0-only License: https://opensource.org/ license/agpl-v3/
1
+ # Copyright (c) Free Software Foundation, Inc. All rights reserved.
2
+ # Licensed under the AGPL-3.0-only License. See LICENSE in the project root for license information.
3
3
4
4
version : ' 3.7'
5
5
services :
Original file line number Diff line number Diff line change 1
- # This file is part of AsicVerifier and is released under
2
- # the AGPL-3.0-only License: https://opensource.org/ license/agpl-v3/
1
+ # Copyright (c) Free Software Foundation, Inc. All rights reserved.
2
+ # Licensed under the AGPL-3.0-only License. See LICENSE in the project root for license information.
3
3
4
4
[build-system ]
5
5
requires = [' setuptools>=61.0' , ' setuptools-git-versioning<2' ]
@@ -9,15 +9,15 @@ build-backend = 'setuptools.build_meta'
9
9
name = ' AsicVerifier'
10
10
description = ' Asic Verifier for X-Road'
11
11
readme = ' README.md'
12
- requires-python = ' >=3.7 '
12
+ requires-python = ' >=3.8 '
13
13
license = {text = ' AGPL-3.0-only' }
14
14
keywords = [' X-Road' , ' security server' ]
15
15
authors = [{
name =
' Pipin Fitriadi' }, {
email =
' [email protected] ' }]
16
16
maintainers = [{
name =
' Pipin Fitriadi' }, {
email =
' [email protected] ' }]
17
17
classifiers = [
18
18
' Development Status :: 2 - Pre-Alpha' ,
19
19
' Programming Language :: Java' ,
20
- ' Programming Language :: Python :: 3.7 ' ,
20
+ ' Programming Language :: Python :: 3.8 ' ,
21
21
' License :: OSI Approved :: GNU Affero General Public License v3' ,
22
22
' Operating System :: OS Independent' ,
23
23
' Framework :: FastAPI' ,
Original file line number Diff line number Diff line change 1
- # This file is part of AsicVerifier and is released under
2
- # the AGPL-3.0-only License: https://opensource.org/ license/agpl-v3/
1
+ # Copyright (c) Free Software Foundation, Inc. All rights reserved.
2
+ # Licensed under the AGPL-3.0-only License. See LICENSE in the project root for license information.
3
3
4
4
[metadata]
5
5
url = https://github.com/pipinfitriadi/asicverifier
Original file line number Diff line number Diff line change 1
- ; This file is part of AsicVerifier and is released under
2
- ; the AGPL-3.0-only License: https://opensource.org/ license/agpl-v3/
1
+ ; Copyright (c) Free Software Foundation, Inc. All rights reserved.
2
+ ; Licensed under the AGPL-3.0-only License. See LICENSE in the project root for license information.
3
3
4
4
[pypi]
5
5
username = __token__
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env python3
2
2
3
- # This module is part of AsicVerifier and is released under
4
- # the AGPL-3.0-only License: https://opensource.org/license/agpl-v3/
3
+ # Copyright (c) Free Software Foundation, Inc. All rights reserved.
4
+ # Licensed under the AGPL-3.0-only License. See LICENSE in the project root
5
+ # for license information.
5
6
6
- from dateutil .parser import parse
7
- from dateutil .tz import tzutc
8
7
from datetime import datetime
9
8
import json
10
- import unittest
11
9
from typing import Any
10
+ import unittest
12
11
from unittest import mock
13
12
14
13
from click .testing import Result
14
+ from dateutil .parser import parse
15
+ from dateutil .tz import tzutc
15
16
import requests
16
17
from typer .testing import CliRunner
17
18
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env python3
2
2
3
- # This module is part of AsicVerifier and is released under
4
- # the AGPL-3.0-only License: https://opensource.org/license/agpl-v3/
3
+ # Copyright (c) Free Software Foundation, Inc. All rights reserved.
4
+ # Licensed under the AGPL-3.0-only License. See LICENSE in the project root
5
+ # for license information.
5
6
6
7
import unittest
7
8
from unittest import mock
You can’t perform that action at this time.
0 commit comments