Skip to content

Commit 6bc28be

Browse files
ykshatroffYuriy Shatrov
andauthored
Initial version (#1)
Initial release v1.0 Co-authored-by: Yuriy Shatrov <[email protected]>
1 parent 315e7d6 commit 6bc28be

31 files changed

+2838
-1
lines changed

.gitignore

Lines changed: 127 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,127 @@
1+
# Created by https://www.toptal.com/developers/gitignore/api/python,pycharm
2+
3+
### PyCharm ###
4+
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider
5+
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
6+
7+
# User-specific stuff
8+
.idea/
9+
.vscode/
10+
11+
# File-based project format
12+
*.iws
13+
14+
### Python ###
15+
# Byte-compiled / optimized / DLL files
16+
__pycache__/
17+
*.py[cod]
18+
*$py.class
19+
20+
# C extensions
21+
*.so
22+
23+
# Distribution / packaging
24+
.Python
25+
build/
26+
develop-eggs/
27+
dist/
28+
downloads/
29+
eggs/
30+
.eggs/
31+
lib/
32+
lib64/
33+
parts/
34+
sdist/
35+
var/
36+
wheels/
37+
pip-wheel-metadata/
38+
share/python-wheels/
39+
*.egg-info/
40+
.installed.cfg
41+
*.egg
42+
MANIFEST
43+
44+
# PyInstaller
45+
# Usually these files are written by a python script from a template
46+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
47+
*.manifest
48+
*.spec
49+
50+
# Installer logs
51+
pip-log.txt
52+
pip-delete-this-directory.txt
53+
54+
# Unit test / coverage reports
55+
htmlcov/
56+
.tox/
57+
.nox/
58+
.coverage
59+
.coverage.*
60+
.cache
61+
nosetests.xml
62+
coverage.xml
63+
*.cover
64+
*.py,cover
65+
.hypothesis/
66+
.pytest_cache/
67+
pytestdebug.log
68+
69+
# Translations
70+
*.mo
71+
*.pot
72+
73+
# Django stuff:
74+
*.log
75+
local_settings.py
76+
db.sqlite3
77+
db.sqlite3-journal
78+
79+
# Flask stuff:
80+
instance/
81+
.webassets-cache
82+
83+
# Scrapy stuff:
84+
.scrapy
85+
86+
# Sphinx documentation
87+
docs/_build/
88+
doc/_build/
89+
90+
# PyBuilder
91+
target/
92+
93+
# Jupyter Notebook
94+
.ipynb_checkpoints
95+
96+
# IPython
97+
profile_default/
98+
ipython_config.py
99+
100+
# pyenv
101+
.python-version
102+
103+
# Environments
104+
.env
105+
.venv
106+
env/
107+
venv/
108+
ENV/
109+
env.bak/
110+
venv.bak/
111+
pythonenv*
112+
113+
# mypy
114+
.mypy_cache/
115+
.dmypy.json
116+
dmypy.json
117+
118+
# Pyre type checker
119+
.pyre/
120+
121+
# pytype static type analyzer
122+
.pytype/
123+
124+
# profiling data
125+
.prof
126+
127+
# End of https://www.toptal.com/developers/gitignore/api/python,pycharm

.travis.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
language: python
2+
3+
os: linux
4+
5+
jobs:
6+
include:
7+
- python: 3.6
8+
- python: 3.7
9+
- python: 3.8
10+
11+
script:
12+
- make venv lint coverage
13+
14+
deploy:
15+
provider: pypi
16+
# opt in to deployment v2 which allows using env vars for passwords
17+
edge: true
18+
username: __token__
19+
distributions: sdist bdist_wheel
20+
skip_existing: true
21+
on:
22+
tags: true
23+
python: 3.6
24+
25+
notifications:
26+
email: false

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# pyasice Changelog
2+
3+
## v.1.0
4+
5+
* Initial version. Supports creating and validating XAdES signatures with Estonian ID services.

LICENSE.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
ISC License
2+
3+
Copyright (c) 2016-2020, Thorgate
4+
5+
Permission to use, copy, modify, and/or distribute this software for any
6+
purpose with or without fee is hereby granted, provided that the above
7+
copyright notice and this permission notice appear in all copies.
8+
9+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10+
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11+
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12+
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13+
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14+
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15+
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

MANIFEST.in

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
include LICENSE.md
2+
include README.md
3+
include requirements.txt
4+
recursive-include pyasice/templates *xml

Makefile

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
PROJECT := pyasice
2+
VENV := ./venv/bin
3+
export PATH := $(VENV):$(PATH)
4+
5+
.PHONY:
6+
venv:
7+
python -m venv venv
8+
pip install -r requirements-dev.txt
9+
10+
.PHONY:
11+
lint:
12+
black --check .
13+
isort --check-only --project=$(PROJECT) .
14+
flake8
15+
16+
.PHONY:
17+
fmt:
18+
black .
19+
isort --project=$(PROJECT) .
20+
21+
.PHONY:
22+
test:
23+
pytest
24+
25+
.PHONY:
26+
coverage:
27+
pytest --cov=$(PROJECT)
28+
coverage html

0 commit comments

Comments
 (0)