1+
12.. image :: https://raw.githubusercontent.com/Argmaster/pygerber/main/docs/_static/pygerber_logo.png
3+ :height: 400px
4+ :align: center
25
36========
47Overview
58========
69
710.. start-badges
811
9- |docs | |travis | |codecov | |version | |wheel | |supported-versions | |supported-implementations | |commits-since |
12+ |docs | |tests | |codecov | |version | |wheel | |supported-versions | |supported-implementations | |commits-since |
1013
1114.. |docs | image :: https://readthedocs.org/projects/pygerber/badge/?style=flat
1215 :target: https://pygerber.readthedocs.io/
1316 :alt: Documentation Status
1417
15- .. |travis | image :: https://app.travis-ci. com/Argmaster/pygerber. svg?branch=main
16- :alt: Travis-CI Build Status
17- :target: https://travis-ci.com/github/Argmaster/pygerber
18+ .. |tests | image :: https://github. com/Argmaster/pygerber/actions/workflows/main.yml/badge. svg
19+ :target: https://github.com/Argmaster/pygerber
20+ :alt: Workflow Status
1821
19- .. |codecov | image :: https://codecov.io/gh/ Argmaster/pygerber/branch/main/graphs/badge .svg?branch=main
22+ .. |codecov | image :: https://api.travis-ci.com/ Argmaster/pygerber.svg?branch=v1.0.0
2023 :alt: Coverage Status
2124 :target: https://codecov.io/github/Argmaster/pygerber
2225
@@ -36,17 +39,15 @@ Overview
3639 :alt: Supported implementations
3740 :target: https://pypi.org/project/pygerber
3841
39- .. |commits-since | image :: https://img.shields.io/github/commits-since/Argmaster/pygerber/v0 .0.1 .svg
42+ .. |commits-since | image :: https://img.shields.io/github/commits-since/Argmaster/pygerber/v1 .0.0 .svg
4043 :alt: Commits since latest release
41- :target: https://github.com/Argmaster/pygerber/compare/v0 .0.1 ...main
44+ :target: https://github.com/Argmaster/pygerber/compare/v1 .0.0 ...main
4245
4346.. end-badges
4447
4548 PyGerber is a Python library for 2D and 3D rendering of Gerber X3 files.
4649It is completely written in Python, and only dependencies are limiting its portability.
4750
48- *3D rendering is still under development, it will arrive at next major release. (v1.0.0) *
49-
5051**This package is a Free Software; it is released under MIT license **. Be aware that dependencies might be using different licenses.
5152
5253PyGerber offers a CLI and API for Python to allow easy rendering of Gerber files.
@@ -68,26 +69,29 @@ PyGerber is available on PyPI and can be obtained via pip
6869
6970 pip install pygerber
7071
71- Be aware that this will **only install general and 2D rendering dependencies **, as
72- **bpy (Blender) is not officially released as Python package **. You have to obtain
73- it yourself, which, for example, you can archive with help of guides contained in
74- this `repository <https://github.com/Argmaster/pyr3 >`_.
75-
76-
7772 You can also install the in-development version from github with
7873
7974.. code :: bash
8075
8176 pip install https://github.com/Argmaster/pygerber/archive/main.zip
8277
83- Same Blender dependency issue applies to this installation method.
78+ Blender dependency issue mentioned in previous releases was resolved by using
79+ `PyR3 package <https://pypi.org/project/PyR3/ >`_ which provides Blender.
80+ **However, blender has to be installed independently from package by calling PyR3.install_bpy script **::
81+
82+ python -m PyR3.install_bpy
83+
84+ Before You try to use 3D rendering.
8485
8586Compatibility
8687=============
8788
88- PyGerber officially supports only Python 3.9, but 2D rendering should be also available for
89- 3.8 and 3.7, as long as Pillow provides support for those versions. 3D rendering is not
90- possible on those versions of Python due to compatibility issues of Blender binaries and Blender's API changes.
89+ PyGerber officially runs on Python 3.9.* and only on this version.
90+ However it may be possible to run 2D rendering on other Python versions
91+ that are supported by Pillow.
92+
93+ I'll consider bringing Python 3.8 3D rendering support, but no sooner than
94+ after implementation of full set of 3D rendering features and macros support.
9195
9296Documentation
9397=============
@@ -101,28 +105,10 @@ To run all the tests, just run::
101105
102106 tox
103107
104- To see all the tox environments::
105-
106- tox -l
107-
108108To only build the docs::
109109
110110 tox -e docs
111111
112112To build and verify that the built package is proper and other code QA checks::
113113
114114 tox -e check
115-
116- To build sdist, and bdist_wheel::
117-
118- python setup.py clean --all sdist bdist_wheel
119-
120- To make a release of the project on PyPI, assuming you got some distributions in dist/, the most simple usage is::
121-
122- twine upload --skip-existing dist/*.whl dist/*.gz dist/*.zip
123-
124- Credits
125- =======
126-
127- Structure of this project was created using cookiecutter template `cookiecutter-pylibrary <https://github.com/ionelmc/cookiecutter-pylibrary >`_.
128- I'm very grateful to Ionel Cristian Mărieș for its creation.
0 commit comments