Skip to content

Commit d8aad31

Browse files
committed
Set up for PyPi distribution
1 parent 3e2e443 commit d8aad31

File tree

3 files changed

+34
-22
lines changed

3 files changed

+34
-22
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ of the objects are shown in gray, while the changed parts are shown in
44
contrasting colors that stand out, illustrated by the following
55
example.
66

7-
<img src="examples/scheme1.png" width="50%">
7+
<img src="https://raw.githubusercontent.com/bdlucas1/diff3d/refs/heads/master/examples/scheme1.png" width="50%">
88

99
In this example most of the lens clamp is unchanged and is displayed
1010
in gray, while the differing parts are displayed in red for one file
@@ -29,9 +29,9 @@ can [install pipx](https://pipx.pypa.io/stable/installation/) and use
2929
`pipx` in place of `pip` in the command above.
3030

3131
Then to test the installation download two test files
32-
[lens-clamp-A.stl](https://github.com/bdlucas1/diff3d/blob/master/examples/lens-clamp-A.stl)
32+
[lens-clamp-A.stl](https://raw.githubusercontent.com/bdlucas1/diff3d/refs/heads/master/examples/lens-clamp-A.stl)
3333
and
34-
[lens-clamp-B.stl](https://github.com/bdlucas1/diff3d/blob/master/examples/lens-clamp-B.stl)
34+
[lens-clamp-B.stl](https://raw.githubusercontent.com/bdlucas1/diff3d/refs/heads/master/examples/lens-clamp-B.stl)
3535
and run the command
3636

3737
diff3d lens-clamp-A.stl lens-clamp-B.stl
@@ -52,7 +52,7 @@ simple 3d file viewer in addition to its primary function.
5252

5353
I use MacOS, but I believe this tool works on Windows and Linux
5454
as well. I have tested it with Python 3.12 and 3.13, but I think
55-
it will work on some somewhat older versions of Python as well.
55+
it will also work on some somewhat older versions of Python.
5656

5757
Out of the box `diff3d` supports STL, OBJ, and 3MF files. Support for a
5858
number of additional file types is available by installing `meshio`,
@@ -72,7 +72,7 @@ https://davidmathlogic.com/colorblind, and I have not verified
7272
this. If you have information to add please contact me by opening an
7373
issue on github.)
7474

75-
<img src="examples/scheme1.png" width="30%"><img src="examples/scheme2.png" width="30%"><img src="examples/scheme3.png" width="30%">
75+
<img src="https://raw.githubusercontent.com/bdlucas1/diff3d/refs/heads/master/examples/scheme1.png" width="30%"><img src="https://raw.githubusercontent.com/bdlucas1/diff3d/refs/heads/master/examples/scheme2.png" width="30%"><img src="https://raw.githubusercontent.com/bdlucas1/diff3d/refs/heads/master/examples/scheme3.png" width="30%">
7676

7777
You can choose a scheme using the `-s` or `--scheme` option. The
7878
above schemes are named "1", "2", and "3" respectively.

pyproject.toml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
[project]
2+
name = "diff3d"
3+
version = "0.0.0rc1"
4+
authors = [{name = "Bruce D. Lucas"}]
5+
description = "Fast visual diff for 3d files"
6+
readme = "README.md"
7+
dependencies = [
8+
"pyvista",
9+
"lib3mf",
10+
#"build123d",
11+
]
12+
requires-python = ">=3.9"
13+
classifiers = [
14+
"Programming Language :: Python :: 3",
15+
"License :: OSI Approved :: MIT License",
16+
"Operating System :: OS Independent",
17+
]
18+
19+
[project.urls]
20+
Homepage = "https://github.com/bdlucas1/diff3d"
21+
Issues = "https://github.com/bdlucas1/diff3d/issues"
22+
Discussions = "https://github.com/bdlucas1/diff3d/discussions"
23+
24+
[project.scripts]
25+
diff3d = "diff3d:cli"
26+
27+
[build-system]
28+
requires = ["hatchling"]
29+
build-backend = "hatchling.build"

setup.py

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)