Skip to content

Commit

Permalink
Merge pull request #8 from mvnmgrx/pypi_release
Browse files Browse the repository at this point in the history
Support for Python Package Index (PyPI)
  • Loading branch information
mvnmgrx authored Jun 15, 2022
2 parents 1404529 + cac59f4 commit 8d609cd
Show file tree
Hide file tree
Showing 20 changed files with 64 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,8 @@
# Other stuff
*.log

# Releases
output/
# Releases and build stuff
output/*
dist/*
build/*
src/kiutils.egg-info/*
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# kiutils - CHANGELOG

## v1.1.0 - 16.06.2022
- Added: Support for Python Package Index (PyPI)
- Changed: Source directory for development moved from `kiutils/` to `src/kiutils/`

## v1.0.1 - 15.06.2022
- Added: Dimension, DimensionStyle, DimensionFormat classes for dimensions (measurements in PCB)
- Added: Target class for board target markers
Expand Down
25 changes: 25 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,23 @@ Parsing of the files is based on the S-Expression parser found in this library:
The following is required to use `kiutils`:
- Python 3.10 or higher

## Installation and usage
KiUtils is available on [PyPI](https://pypi.org/project/kiutils/). Use Python's `pip`
to install it:
```
pip install kiutils
```

The most relevant classes can then be imported like this:
```python
from kiutils.board import Board
from kiutils.libraries import LibTable
from kiutils.schematic import Schematic
from kiutils.footprint import Footprint
from kiutils.symbol import SymbolLib
```
Check the [Structure]() section on all importable classes or the [Examples]() section for code snippets.

## Structure
The module features the following classes:
```python
Expand Down Expand Up @@ -109,6 +126,14 @@ The module features the following classes:
+ board.py
| - Board() # Board files (.kicad_pcb)
|
+ footprint.py
| - Attributes() # List of attributes of a footprint
| - Model() # 3D Model
| - DrillDefinition() # Drill mark of a footprint pad
| - PadOptions() # Settings for custom pads
| - Pad() # A footprint pad
| - Footprint() # Footprint files (.kicad_mod)
|
+ libraries.py
| - Library() # Library table entry
| - LibTable() # Library table file (fp-lib-table or sym-lib-table)
Expand Down
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["setuptools>=42"]
build-backend = "setuptools.build_meta"
27 changes: 27 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
[metadata]
name = kiutils
version = 1.1.0
author = Marvin Mager
author_email = [email protected]
description = Simple and SCM-friendly KiCad file parser for KiCad 6.0 and up
long_description = file: README.md
long_description_content_type = text/markdown
url = https://github.com/mvnmgrx/kiutils
project_urls =
Bug Tracker = https://github.com/mvnmgrx/kiutils/issues
classifiers =
Programming Language :: Python :: 3.10
License :: OSI Approved :: GNU General Public License v3 (GPLv3)
Operating System :: OS Independent
Development Status :: 5 - Production/Stable
Natural Language :: English
Topic :: Scientific/Engineering :: Electronic Design Automation (EDA)

[options]
package_dir =
= src
packages = kiutils, kiutils.items, kiutils.utils
python_requires = >=3.10

[options.packages.find]
where = src
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 8d609cd

Please sign in to comment.