Fixes. Preparing for new release.

This commit is contained in:
Franco Masotti 2020-11-25 12:22:24 +01:00
parent 21d7f73f09
commit a4c80608e8
Signed by: frnmst
GPG Key ID: 24116ED85666780A
11 changed files with 38 additions and 23 deletions

21
Pipfile
View File

@ -1,3 +1,24 @@
#
# Pipfile
#
# Copyright (C) 2020 Franco Masotti <franco.masotti@live.com>
#
# This file is part of fattura-elettronica-reader.
#
# fattura-elettronica-reader is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# fattura-elettronica-reader is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with fattura-elettronica-reader. If not, see <http://www.gnu.org/licenses/>.
#
[[source]]
name = "pypi"
url = "https://pypi.org/simple"

View File

@ -52,7 +52,7 @@ Python program:
>>> data = {
'patched': True,
'configuration file': str(),
'write default configuration file': str(),
'write default configuration file': False,
'extract attachments': True,
'metadata file': 'myfile.xml',
'invoice xslt type': 'ordinaria',
@ -68,6 +68,7 @@ Python program:
'ignore signers certificate check': False,
'force trusted list file download': False,
'keep original file': True,
'ignore assets checksum': False,
}
>>> fattura_elettronica_reader.assert_data_structure(source='invoice', file_type='p7m', data=data)
>>> fattura_elettronica_reader.pipeline(

View File

@ -4,10 +4,10 @@ Assets
fattura-elettronica-reader needs to download some files from the
*Agenzia delle Entrate* website.
No files can be included in this repository because of the website copyright.
Files cannot be included in this repository because of the website copyright.
See https://www.fatturapa.gov.it/it/copyright/index.html
For sake of completeness the current supported versions
For sake of completeness, the current supported versions
and the SHA-512 and SHA-256 checksums are reported in the following table:
====================================================== ================================================================================================================ ==================================================================================================================================== ====================================================================
@ -23,7 +23,7 @@ Public keys file https://eidas.agid.gov.i
.. warning:: fattura-elettronica-reader is guaranteed to work with these file versions only!
.. important:: The XML schema file for FatturaPA version 1.2.1 needs to be patched. fattura_elettronica_reader
runs the SHA-512 checksum on the patched version of the file which corresponds to:
runs the SHA-512 checksum on the patched version of that file which corresponds to:
::
@ -35,8 +35,6 @@ Some of these file are checked in the pipeline:
if the checksum does not match the ones present in the source code an exception is raised.
You can use the ``--ignore-assets-checksum`` option to override this behaviour.
Updates
-------

View File

@ -25,9 +25,9 @@ copyright = '2019-2020, Franco Masotti'
author = 'Franco Masotti'
# The short X.Y version
version = '1.0.0'
version = '2.0.0'
# The full version, including alpha/beta/rc tags
release = '1.0.0'
release = '2.0.0'
# -- General configuration ---------------------------------------------------

View File

@ -155,7 +155,7 @@ Fattura PA vs Fattura B2B
Digital signature
~~~~~~~~~~~~~~~~~
Some websites say that digital signature of the *Fattura PA* is compulsory and
Some websites say that digital signature of the *Fattura PA* is required and
in other cases it is not.
- https://www.agendadigitale.eu/documenti/fatturazione-elettronica/fattura-elettronica-e-firma-come-garantire-autenticita-dellorigine-e-integrita-del-contenuto/

View File

@ -15,7 +15,6 @@ TODO and FIXME
Important stuff
```````````````
- unit tests: I guess we should use the examples from the government's website,
if the license permits it.
- unit tests: Find usable XML examples or generate them.
- GUI: for example https://github.com/chriskiehl/Gooey
- i18n (both CLI and GUI): https://docs.python.org/3/library/gettext.html

View File

@ -24,7 +24,7 @@ You want everything, you trust everything
::
$ fattura_elettronica_reader invoice --extract-attachments --generate-html-output p7m --keep-original-file --ignore-signature-check --ignore-signers-certificate-check ${metadata_file}
$ fattura_elettronica_reader --ignore-assets-checksum invoice --extract-attachments --generate-html-output p7m --keep-original-file --ignore-signature-check --ignore-signers-certificate-check ${metadata_file}
You need to extract a plain (non-signed) invoice file

View File

@ -1,4 +1,4 @@
.. fattura-pa-reader documentation master file, created by
.. fattura-elettronica-reader documentation master file, created by
sphinx-quickstart on Tue Apr 23 16:24:44 2019.
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.

View File

@ -1,7 +1,7 @@
Installation
============
Install fpyutils via pip:
Install fattura-elettronica-reader via pip:
::
@ -16,9 +16,3 @@ Distribution packages
- A ``PKGBUILD`` for Arch Linux like distributions is available under
the ``./packages/aur`` directory as well as on the AUR website.
Dependencies
------------
- Python >= 3.5

View File

@ -1,7 +1,7 @@
# Maintainer: Franco Masotti <franco dot masotti at live dot com>
# Contributor: Franco Masotti <franco dot masotti at live dot com>
pkgname=python-fattura_elettronica_reader
pkgver=1.0.0
pkgver=2.0.0
pkgrel=1
pkgdesc="'A utility that is able to check and extract electronic invoice received from the Sistema di Interscambio"
arch=('any')
@ -13,7 +13,9 @@ depends=('python'
'python-filetype>=1.0.7'
'python-appdirs>=1.4.4'
'python-requests>=2.24.0'
'python-lxml>=4.5.2')
'python-lxml>=4.6.0',
'python-yaml>=5.3.1',
'python-fpyutils>=1.2.0')
options=(!emptydirs)
source=("https://frnmst.gitlab.io/software/fattura-elettronica-reader-${pkgver}.tar.gz.sig" "https://frnmst.gitlab.io/software/fattura-elettronica-reader-${pkgver}.tar.gz")
sha512sums=('SKIP' 'SKIP')

View File

@ -24,7 +24,7 @@ from setuptools import setup, find_packages
setup(
name='fattura_elettronica_reader',
version='1.0.0',
version='2.0.0',
packages=find_packages(exclude=['*tests*']),
license='GPL',
description='A utility that is able to check and extract electronic invoice received from the Sistema di Interscambio.',