From 695e3d9220be8773f6630bb5c512d122b8576742 Mon Sep 17 00:00:00 2001 From: Hamilton Kibbe Date: Sun, 28 Sep 2014 18:07:15 -0400 Subject: Added excellon support and refactored project --- Makefile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..3a5e411 --- /dev/null +++ b/Makefile @@ -0,0 +1,17 @@ + +PYTHON ?= python +NOSETESTS ?= nosetests + + +clean: + #$(PYTHON) setup.py clean + find . -name '*.pyc' -delete + rm -rf coverage .coverage + rm -rf *.egg-info +test: + $(NOSETESTS) -s -v gerber + +test-coverage: + rm -rf coverage .coverage + $(NOSETESTS) -s -v --with-coverage gerber + -- cgit From 3a5dbcf1e13704b7352d5fb3c4777d7df3fed081 Mon Sep 17 00:00:00 2001 From: Hamilton Kibbe Date: Sun, 28 Sep 2014 21:17:13 -0400 Subject: added ExcellonFile class --- Makefile | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 3a5e411..162094c 100644 --- a/Makefile +++ b/Makefile @@ -2,6 +2,7 @@ PYTHON ?= python NOSETESTS ?= nosetests +DOC_ROOT = doc clean: #$(PYTHON) setup.py clean @@ -15,3 +16,11 @@ test-coverage: rm -rf coverage .coverage $(NOSETESTS) -s -v --with-coverage gerber +doc-html: + (cd $(DOC_ROOT); make html) + + +doc-clean: + (cd $(DOC_ROOT); make clean) + + -- cgit From ae4047b2600c5ff6be3a1d0ab8e8573f49107c7f Mon Sep 17 00:00:00 2001 From: Hamilton Kibbe Date: Tue, 30 Sep 2014 17:49:04 -0400 Subject: add coveralls --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 162094c..cec5b6a 100644 --- a/Makefile +++ b/Makefile @@ -14,7 +14,7 @@ test: test-coverage: rm -rf coverage .coverage - $(NOSETESTS) -s -v --with-coverage gerber + $(NOSETESTS) -s -v --with-coverage --cover-package=gerber doc-html: (cd $(DOC_ROOT); make html) -- cgit From a9059df190be0238ce0e6fca8c59700e92ddf205 Mon Sep 17 00:00:00 2001 From: Hamilton Kibbe Date: Fri, 10 Oct 2014 09:35:06 -0400 Subject: doc update --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index cec5b6a..7de5b4a 100644 --- a/Makefile +++ b/Makefile @@ -4,11 +4,12 @@ NOSETESTS ?= nosetests DOC_ROOT = doc -clean: +clean: doc-clean #$(PYTHON) setup.py clean find . -name '*.pyc' -delete rm -rf coverage .coverage rm -rf *.egg-info + test: $(NOSETESTS) -s -v gerber -- cgit From bfe14841604b6be403e7123e8b6667b1f0aff6f6 Mon Sep 17 00:00:00 2001 From: Hamilton Kibbe Date: Sun, 15 Feb 2015 03:29:47 -0500 Subject: Add cairo example code, and use example-generated image in readme --- Makefile | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 7de5b4a..8d3fd33 100644 --- a/Makefile +++ b/Makefile @@ -3,25 +3,32 @@ PYTHON ?= python NOSETESTS ?= nosetests DOC_ROOT = doc +EXAMPLES = examples +.PHONY: clean clean: doc-clean - #$(PYTHON) setup.py clean find . -name '*.pyc' -delete rm -rf coverage .coverage rm -rf *.egg-info +.PHONY: test test: $(NOSETESTS) -s -v gerber - + +.PHONY: test-coverage test-coverage: rm -rf coverage .coverage $(NOSETESTS) -s -v --with-coverage --cover-package=gerber - + +.PHONY: doc-html doc-html: (cd $(DOC_ROOT); make html) - +.PHONY: doc-clean doc-clean: (cd $(DOC_ROOT); make clean) - + +.PHONY: examples +examples: + PYTHONPATH=. $(PYTHON) examples/cairo_example.py -- cgit From 6f876edd09d9b81649691e529f85653f14b8fd1c Mon Sep 17 00:00:00 2001 From: Hamilton Kibbe Date: Tue, 22 Dec 2015 02:45:48 -0500 Subject: Add PCB interface this incorporates some of @chintal's layers.py changes PCB.from_directory() simplifies loading of multiple gerbers the PCB() class should be pretty helpful going forward... the context classes could use some cleaning up, although I'd like to wait until the freecad stuff gets merged, that way we can try to refactor the context base to support more use cases --- Makefile | 1 + 1 file changed, 1 insertion(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 8d3fd33..87f0124 100644 --- a/Makefile +++ b/Makefile @@ -31,4 +31,5 @@ doc-clean: .PHONY: examples examples: PYTHONPATH=. $(PYTHON) examples/cairo_example.py + PYTHONPATH=. $(PYTHON) examples/pcb_example.py -- cgit From 5df38c014fd09792995b2b12b1982c535c962c9a Mon Sep 17 00:00:00 2001 From: Hamilton Kibbe Date: Thu, 28 Jan 2016 12:19:03 -0500 Subject: Cleanup, rendering fixes. fixed rendering of tented vias fixed rendering of semi-transparent layers fixed file type detection issues added some examples --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 87f0124..a1a88ea 100644 --- a/Makefile +++ b/Makefile @@ -20,6 +20,10 @@ test-coverage: rm -rf coverage .coverage $(NOSETESTS) -s -v --with-coverage --cover-package=gerber +.PHONY: install +install: + PYTHONPATH=. $(PYTHON) setup.py install + .PHONY: doc-html doc-html: (cd $(DOC_ROOT); make html) -- cgit From ef589a064015de3a1ce6487dbb56b99332673e9d Mon Sep 17 00:00:00 2001 From: Paulo Henrique Silva Date: Tue, 26 Nov 2019 00:37:41 -0300 Subject: Migrate to pytest (#111) * Migrate to pytest All tests were update to use pytest. Tests were alse black formatted. Eventually all code will be black formatted but need to merge some PRs first. --- Makefile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index a1a88ea..96df768 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ PYTHON ?= python -NOSETESTS ?= nosetests +PYTEST ?= pytest DOC_ROOT = doc EXAMPLES = examples @@ -8,17 +8,17 @@ EXAMPLES = examples .PHONY: clean clean: doc-clean find . -name '*.pyc' -delete - rm -rf coverage .coverage rm -rf *.egg-info + rm -f coverage.xml .PHONY: test test: - $(NOSETESTS) -s -v gerber + $(PYTEST) .PHONY: test-coverage test-coverage: - rm -rf coverage .coverage - $(NOSETESTS) -s -v --with-coverage --cover-package=gerber + rm -rf coverage.xml + $(PYTEST) --cov=./ --cov-report=xml .PHONY: install install: -- cgit From 39d77665782a9a116ce502b04b03fc7ee6821608 Mon Sep 17 00:00:00 2001 From: Paulo Henrique Silva Date: Tue, 26 Nov 2019 23:24:18 -0300 Subject: Add .coveragerc --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 96df768..8ecbf86 100644 --- a/Makefile +++ b/Makefile @@ -9,6 +9,7 @@ EXAMPLES = examples clean: doc-clean find . -name '*.pyc' -delete rm -rf *.egg-info + rm -f .coverage rm -f coverage.xml .PHONY: test @@ -17,7 +18,8 @@ test: .PHONY: test-coverage test-coverage: - rm -rf coverage.xml + rm -f .coverage + rm -f coverage.xml $(PYTEST) --cov=./ --cov-report=xml .PHONY: install -- cgit