- Create a new empty repo with the name
graph
. - In coveralls sync the
kivy-garden
repos and then enable it. - Clone the flower demo repo, if you haven't already. Otherwise make sure it is up to date with master:
git clone [email protected]:kivy-garden/flower.git
- Push the flower repo to github:
cd flower git push --mirror [email protected]:kivy-garden/graph.git
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ PATH=$PATH:/e/Graphviz2.38/bin pytest ceed/tests/test_play.py | |
============================================================================================================= test session starts ============================================================================================================= platform win32 -- Python 3.7.3, pytest-4.6.3, py-1.8.0, pluggy-0.12.0 | |
rootdir: G:\Python\libs\ceed, inifile: pytest.ini | |
plugins: cov-2.7.1, trio-0.5.2 | |
collected 2 items | |
ceed\tests\test_play.py F. [100%] | |
================================================================================================================== FAILURES =================================================================================================================== _____________________________________________________________________ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import coverage | |
class KivyCoveragePlugin(coverage.plugin.CoveragePlugin): | |
def file_tracer(self, filename): | |
if filename.endswith('.kv'): | |
return KivyFileTracer(filename=filename) | |
return None |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
E:\Python\Python37\Scripts\python.exe G:/Python/libs/garden_vispy/kivy_garden/vispy/examples/simple.py | |
[INFO ] [Logger ] Record log in E:\msys64\home\matte\.kivy\logs\kivy_19-07-03_18.txt | |
[INFO ] [deps ] Successfully imported "kivy_deps.gstreamer_dev" 0.1.17 | |
[INFO ] [deps ] Successfully imported "kivy_deps.angle" 0.1.9 | |
[INFO ] [deps ] Successfully imported "kivy_deps.glew" 0.1.12 | |
[INFO ] [deps ] Successfully imported "kivy_deps.glew_dev" 0.1.12 | |
[INFO ] [deps ] Successfully imported "kivy_deps.sdl2" 0.1.22 | |
[INFO ] [deps ] Successfully imported "kivy_deps.sdl2_dev" 0.1.22 | |
[INFO ] [Kivy ] v2.0.0.dev0, git-b8f7a23, 20190703 | |
[INFO ] [Kivy ] Installed at "g:\python\libs\kivy\kivy\__init__.py" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from https://gbayer.com/development/moving-files-from-one-git-repository-to-another-preserving-history/ | |
git clone <git repository A url> | |
cd <git repository A directory> | |
git remote rm origin | |
git filter-branch --subdirectory-filter <directory 1> -- --all | |
git filter-branch --index-filter ' | |
git read-tree --empty | |
git reset $GIT_COMMIT -- cplcom/painter.py | |
' -- --all -- cplcom/painter.py | |
mkdir <directory 1> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from kivy.uix.scatter import Scatter | |
from kivy.uix.boxlayout import BoxLayout | |
from kivy.lang import Builder | |
from kivy.app import runTouchApp | |
kv = """ | |
#:import Matrix kivy.graphics.transformation.Matrix | |
BoxLayout: | |
Scatter: | |
id: scatter |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from kivy.lang import Builder | |
from kivy.app import runTouchApp | |
runTouchApp(Builder.load_string(''' | |
#:import Factory kivy.factory.Factory | |
BoxLayout: | |
orientation: 'vertical' | |
padding: "12dp" | |
spacing: "12dp" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class FileChooserProgress(FileChooserProgressBase): | |
@KV() | |
def apply_kv(self): | |
with KVCtx(): | |
self.pos_hint = {'x': 0, 'y': 0} | |
with self.canvas: | |
Factory.Color(rgba=(0, 0, 0, .8)) | |
rect = Factory.Rectangle() | |
rect.pos ^= self.pos |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class FileChooserProgress(FileChooserProgressBase): | |
@KV() | |
def apply_kv(self): | |
with KVCtx(): | |
self.pos_hint = {'x': 0, 'y': 0} | |
with self.canvas: | |
Factory.Color(rgba=(0, 0, 0, .8)) | |
rect = Factory.Rectangle() | |
rect.pos ^= self.pos |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
FileChooser | |
=========== | |
The FileChooser module provides various classes for describing, displaying and | |
browsing file systems. | |
Simple widgets | |
-------------- |