[QGIS-Developer] Including libraries issue (Trying to get Plugin Approval)

2019-10-10 Thread Matheus Fillipe
Hello everyone!

First of all I am not sure if this is the right place to talk about this so 
excuse me in that case.
I am a civil engineering student from a Brazilian university (UFV) and I've 
been working on a scholarship project of developing a Qgis plugin geometric 
road design, which will be also my graduation thesis. I am actually just in 
charge of continuing this project and trying to finish it since it started in 
qgis 2.x times. The project resides here: 
https://github.com/matheusfillipe/Topografia 
(https://link.getmailspring.com/link/59f3dfaa-bab7-4b3a-86a6-5eaddf64e...@getmailspring.com/0?redirect=https%3A%2F%2Fgithub.com%2Fmatheusfillipe%2FTopografia&recipient=cWdpcy1kZXZlbG9wZXJAbGlzdHMub3NnZW8ub3Jn)

It is basically a tool to segment line layers, convert them to tables, creating 
circular and spiral curves over those layers, computing elevations over those 
points, defining cross sections and then computing volumes. I thought it would 
be nice to have it on a easier to install way for the students on my university 
that's why I wanted it on the repo. Maybe I am wrong about that and that's not 
the focus of the main qgis plugin repo, I would be open to suggested 
alternatives if that's the case.
The problem was that I used two libraries, PIL (Pillow, which is used as a 
fallback) and my own slightly modified fork of Pyqtgraph, which seems to be an 
issue for plugin approval: 
https://github.com/matheusfillipe/Topografia/issues/3 
(https://link.getmailspring.com/link/59f3dfaa-bab7-4b3a-86a6-5eaddf64e...@getmailspring.com/1?redirect=https%3A%2F%2Fgithub.com%2Fmatheusfillipe%2FTopografia%2Fissues%2F3&recipient=cWdpcy1kZXZlbG9wZXJAbGlzdHMub3NnZW8ub3Jn)
 I could still remove PIllow but I wont have enough time for working in a way 
to use the standard PyQtGraph since my scholarship is over and that part of the 
project is finished. As I said in the issue report I didn't see nothing against 
using libraries in the plugins page of Qgis if that's allowed by their 
respective license and PyQtGraph is MIT.
Anyway, my goal with this message is just to clarify if having this plugin on 
the standard qgis repository is possible and what is it lacking.
Thanks in advance!
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

[QGIS-Developer] Error 32 (File is in Use): Trying to delete a layer file after it's been used by qgis

2019-10-14 Thread Matheus Fillipe
Hello!

I am working on a plugin that uses a temporary folder to load layer filers on 
that can end up having the same name so it is needed to have qgis closing the 
files to allow deleting them. I tested this on qgis 3.8.3 and for linux it 
worked fine but on windows still gives "error 32 , cannot remove because the 
file is in use".

process(l)
l.commitChanges()
l.endEditCommand()
QgsProject.instance().removeMapLayer(l.id())
path=l.dataProvider().dataSourceUri().split("|layername=")[0]
Path(path).unlink() #remove file returns file being used error on this line

___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer