Skip to content

Commit ff550e0

Browse files
committed
adding 3d step models
1 parent d6d4b1e commit ff550e0

File tree

7 files changed

+11
-7
lines changed

7 files changed

+11
-7
lines changed

MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ global-exclude *.swp
99

1010
recursive-exclude * __pycache__
1111
recursive-exclude * *.py[co]
12+
recursive-include easyeda2ato *.py
1213

1314
exclude .bumpversion.cfg
1415
exclude .coveragerc

easyeda2kicad/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
__version__ = "0.7.0"
1+
__version__ = "0.2.4"
22
__author__ = "uPesy"
33
__email__ = "[email protected]"

easyeda2kicad/atopile/__init__.py

Whitespace-only changes.

easyeda2kicad/kicad/export_kicad_footprint.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -511,9 +511,11 @@ def export(self, footprint_full_path: str, model_3d_path: str) -> None:
511511
for text in ki.texts:
512512
ki_lib += KI_TEXT.format(**vars(text))
513513

514+
## models will be automatically copied to ato build directory ##
515+
model_3d_path = "${KIPRJMOD}/../../../build/footprints/footprints.3dshapes"
514516
if ki.model_3d is not None:
515517
ki_lib += KI_MODEL_3D.format(
516-
file_3d=f"{model_3d_path}/{ki.model_3d.name}.wrl",
518+
file_3d=f"{model_3d_path}/{ki.model_3d.name}.step",
517519
pos_x=ki.model_3d.translation.x,
518520
pos_y=ki.model_3d.translation.y,
519521
pos_z=ki.model_3d.translation.z,

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
pre-commit>=2.17.0
21
pydantic>=2.0.0
32
requests>2.0.0
3+
pre-commit>=2.17.0

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[bumpversion]
2-
current_version = 0.7.0
2+
current_version = 0.2.1
33
commit = True
44
tag = True
55

setup.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@
1313
f.write("\n".join(production_dependencies + development_dependencies))
1414

1515
setup(
16-
name="easyeda2kicad",
16+
name="easyeda2ato",
1717
description=(
1818
"A Python script that convert any electronic components from LCSC or EasyEDA to"
1919
" a Kicad library"
2020
),
2121
long_description=long_description,
2222
long_description_content_type="text/markdown",
23-
version="0.7.0",
23+
version="0.2.4",
2424
author="uPesy",
2525
author_email="[email protected]",
2626
url="https://github.com/uPesy/easyeda2kicad.py",
@@ -31,10 +31,11 @@
3131
license="AGPL-3.0",
3232
py_modules=["easyeda2kicad"],
3333
platforms="any",
34-
packages=find_packages(exclude=["tests", "utils"]),
34+
packages=find_packages(),
3535
package_dir={"easyeda2kicad": "easyeda2kicad"},
3636
entry_points={"console_scripts": ["easyeda2kicad = easyeda2kicad.__main__:main"]},
3737
python_requires=">=3.6",
38+
include_package_data=True,
3839
install_requires=production_dependencies,
3940
extras_require={"dev": development_dependencies},
4041
zip_safe=False,

0 commit comments

Comments
 (0)