Skip to content

Commit

Permalink
adding 3d step models
Browse files Browse the repository at this point in the history
  • Loading branch information
napowderly committed Apr 11, 2024
1 parent d6d4b1e commit ff550e0
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 7 deletions.
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ global-exclude *.swp

recursive-exclude * __pycache__
recursive-exclude * *.py[co]
recursive-include easyeda2ato *.py

exclude .bumpversion.cfg
exclude .coveragerc
Expand Down
2 changes: 1 addition & 1 deletion easyeda2kicad/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
__version__ = "0.7.0"
__version__ = "0.2.4"
__author__ = "uPesy"
__email__ = "[email protected]"
Empty file.
4 changes: 3 additions & 1 deletion easyeda2kicad/kicad/export_kicad_footprint.py
Original file line number Diff line number Diff line change
Expand Up @@ -511,9 +511,11 @@ def export(self, footprint_full_path: str, model_3d_path: str) -> None:
for text in ki.texts:
ki_lib += KI_TEXT.format(**vars(text))

## models will be automatically copied to ato build directory ##
model_3d_path = "${KIPRJMOD}/../../../build/footprints/footprints.3dshapes"
if ki.model_3d is not None:
ki_lib += KI_MODEL_3D.format(
file_3d=f"{model_3d_path}/{ki.model_3d.name}.wrl",
file_3d=f"{model_3d_path}/{ki.model_3d.name}.step",
pos_x=ki.model_3d.translation.x,
pos_y=ki.model_3d.translation.y,
pos_z=ki.model_3d.translation.z,
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
pre-commit>=2.17.0
pydantic>=2.0.0
requests>2.0.0
pre-commit>=2.17.0
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 0.7.0
current_version = 0.2.1
commit = True
tag = True

Expand Down
7 changes: 4 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@
f.write("\n".join(production_dependencies + development_dependencies))

setup(
name="easyeda2kicad",
name="easyeda2ato",
description=(
"A Python script that convert any electronic components from LCSC or EasyEDA to"
" a Kicad library"
),
long_description=long_description,
long_description_content_type="text/markdown",
version="0.7.0",
version="0.2.4",
author="uPesy",
author_email="[email protected]",
url="https://github.com/uPesy/easyeda2kicad.py",
Expand All @@ -31,10 +31,11 @@
license="AGPL-3.0",
py_modules=["easyeda2kicad"],
platforms="any",
packages=find_packages(exclude=["tests", "utils"]),
packages=find_packages(),
package_dir={"easyeda2kicad": "easyeda2kicad"},
entry_points={"console_scripts": ["easyeda2kicad = easyeda2kicad.__main__:main"]},
python_requires=">=3.6",
include_package_data=True,
install_requires=production_dependencies,
extras_require={"dev": development_dependencies},
zip_safe=False,
Expand Down

0 comments on commit ff550e0

Please sign in to comment.