Giter Site home page Giter Site logo

pyreqif's People

Contributors

const-ntino avatar ebroecker avatar goehte avatar olbermann avatar sannenj avatar tilluhlig avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pyreqif's Issues

last record is missed while using xlsx2reqif.py

jira1.xlsx

D:\pyreqif-py3>python xlsx2reqif.py jira1.xlsx
{'IDENTIFIER': '_doc_type_ref', 'LAST-CHANGE': '2021-02-15T17:56:38.169367', 'LONG-NAME': 'doc_type'}

D:\pyreqif-py3>

"jira1.reqifz" file is created. Unzip it and check open jira1.reqif in Notepad++. The record with "ACDS-1" is missing.

Xlsx to ReqIf

Crashes in xlsx2reqif.py / line 71 : worksheet object has no attribute max_column.

KeyError: 'attributeRef' - Cannot load Reqif file

I am getting the follwing error whenver try to load a .reqif file

\rif.py", line 348, in load
values[value['attributeRef']] = reqif2py(value)

KeyError: 'attributeRef'

myDoc = pyreqif.reqif.load('a.reqif')

Hierarchy

That's a nice module and it works fine.
Anyway the requirements hierarchy is lost. All items are at the same level.
Is there any way to keep the ReqIf hierarchy ?

Cannot import xlsx as a module

When I try to import xlsx as follows (after installing through pip):

from pyreqif import xlsx as xml_exporter

I get the following warning:

ModuleNotFoundError: No module named 'extractOleData'

I managed to fix it by using a relative import in xlsx.py, as follows:

from . import extractOleData

Tolerance to ReqIf format errors

For EXCEL to REQIF validation, FormalMind Reqif Studio seems to be tolerant to errors. Others like DoorScope or ReqEdit or DOORS are not so permissive.

However, there is a ReqIf validator in ReqIf Studio that allows to detect the same errors as ReqEdit / DoorScope / DOORS import:

image

Converting this XLSX to REQIF, import the generated REQIF in ReqIf Studio and apply the validator leads to multiple errrors that prevent the file to being imported to other tools.

TestFormat.xlsx

AttributeError: 'NoneType' object has no attribute 'replace'

Trying to run the following command
python xlsx2reqif.py "Trial Quality ReqIF download.xlsx"

ERROR:

C:\Temp\pyreqif>python xlsx2reqif.py "Trial Quality ReqIF download.xlsx"
Traceback (most recent call last):
File "xlsx2reqif.py", line 96, in
pyreqif.create.addReqType("some_requirement_type_id", "requirement Type", "reqtype_for" + col.replace(" ", ""),
AttributeError: 'NoneType' object has no attribute 'replace'

pip release only includes reqif2html and reqif2xlsx

Hello,
first of all thank you for this nice tool, it saves me a lot of time.
When i install release 0.6 via pip i don't get the export tools for example xlsx2reqif.py is missing. Is this behavior intended?

Best regards,

Philipp

Support of `DATE` format

I plan to read in a reqif file with your parser and then edit it accordingly with additional information. The issue I came across is that the `ATTRIBUTE-DEFINITION-DATE' and its datatype conter parts are not defined, e.g;

if child.tag == ns + "DATATYPE-DEFINITION-DOCUMENT" or child.tag == ns + 'DATATYPE-DEFINITION-STRING' or child.tag == ns + 'DATATYPE-DEFINITION-XHTML'\

if attribute.tag == ns +"ATTRIBUTE-DEFINITION-COMPLEX" or attribute.tag == ns +"ATTRIBUTE-DEFINITION-STRING" or attribute.tag == ns +"ATTRIBUTE-DEFINITION-XHTML"\

Do you plan to integrate them? Or can you give me a hint where I need to work to integrate them?
I have tried to just adapt the if statements where the checks are conducted (see above) and have changed the dicts

mapReqifAttributeValue = {"default": "embeddedDoc",

to include the DATE attributes and map them to a string? Maybe there is a better datatype in python, but for me it is not necessary, as I do not plan to edit the dates.

xlsx to ReqIF

Hi,
I am rather new to python and this platform.

I don't know how to use the Code of the xlsx2reqif programm. Do I have to install a special environment or any further packages to use it. I didn't find any description about that.

Thanks for your help,
Martin

DateFormat used not compatible with ReqIF standard

Hi,

thanks for creating the lib - i really like it. I use it currently to convert xlsx to reqif. I tried to read the generated files in the ALM solution here, but it bring me errors for parsing the date format.

current implementation generates the following format: 2021-02-10T13:20:04.820391

But as described here in the ReqIF standard (https://www.omg.org/spec/ReqIF/1.2/PDF) and here (http://www.w3.org/TR/xmlschema-2/#isoformats) microseconds are not allowed.

as a temporary workaround I change every occurence in create.py
from: lastChange=datetime.datetime.today().isoformat()
to: datetime.datetime.today().isoformat("T","seconds")

After this change I was able to import the ReqIF, not the ReqIFz, but this is maybe another story.

I think the correct solution would be to use the UTC time as calcualted to my local time? Maybe this issue can be fixed together with: 24

Thanks in advance

Question about xlsx2reqif

Hi,

thanks a lot for the library! It is really helpful for me. But I have a problem about the output reqif file, in which there is no information about "LONG-NAME" in every line, but only "IDENTIFIER" and "LAST-CHANGE". Could you please tell me how to add the "LONG-NAME" information in each line? Thanks in advance!

Best wishes

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.