Skip to content

Commit 5da1e8f

Browse files
removed hatch and sdist building.
1 parent 1b1e563 commit 5da1e8f

File tree

5 files changed

+9
-79
lines changed

5 files changed

+9
-79
lines changed

.github/workflows/sdist.yml

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

MANIFEST.in

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
recursive-include include *.h
2-
include extract_icsneo40_defines.py
3-
include generate_icsneo40_structs.py
4-
include ics_utility.py
2+
include *.py
3+
graft include
4+
graft src

generate_icsneo40_structs.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -746,12 +746,12 @@ def generate(filename="include/ics/icsnVC40.h"):
746746
import_line = "from ics.structures import {}".format(
747747
re.sub(r'(\.py)', '', file_name))
748748
try:
749-
print(f"Importing / Verifying {output_dir / file_name}...")
749+
print(f"Importing / Verifying {output_dir / file_name}...{' '*20}", end="\r")
750750
exec(import_line)
751751
except Exception as ex:
752-
print(f"""ERROR: {ex} IMPORT LINE: '{import_line}'""")
752+
print(f"""\nERROR: {ex} IMPORT LINE: '{import_line}'""")
753753
raise ex
754-
print("Done.")
754+
print("\nDone.")
755755

756756

757757
def _write_c_object(f, c_object):

pyproject.toml

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ description = "Python wrapper for interfacing to IntrepidCS Hardware."
77
keywords = ["intrepidcs", "CAN", "Ethernet", "Automotive", "ICS"]
88
readme = { file = "README.md", content-type = "text/markdown" }
99
requires-python = ">=3.9"
10+
license = "MIT"
1011
classifiers = [
1112
"Development Status :: 5 - Production/Stable",
1213
"Intended Audience :: Developers",
13-
"License :: OSI Approved :: MIT License",
1414
"Operating System :: OS Independent",
1515
"Topic :: Software Development :: Libraries :: Python Modules",
1616
"Programming Language :: Python",
@@ -36,28 +36,8 @@ requires = [
3636
"setuptools",
3737
"wheel",
3838
"dunamai",
39-
"hatchling",
40-
"uv-dynamic-versioning",
4139
]
42-
build-backend = "hatchling.build"
4340

44-
[tool.hatch.metadata]
45-
allow-direct-references = true
46-
47-
[tool.hatch.version]
48-
source = "uv-dynamic-versioning"
49-
50-
[tool.hatch.build.hooks.version]
51-
path = "gen/_version.py"
52-
template = '''
53-
version = "{version}"
54-
'''
55-
56-
[tool.uv-dynamic-versioning]
57-
metadata = false # I couldn't get pypi to upload with this enabled.
58-
strict = true
59-
style = "pep440"
60-
dirty = true
6141

6242
[tool.cibuildwheel]
6343
build = "{*-win32,*-win_amd64,*-macosx_universal2,*-manylinux_x86_64,*-manylinux_aarch64}"

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,9 @@ def run(self):
6060
if pathlib.Path(name).suffix == ".py" and 'icsdebug' not in name:
6161
src = (dirpath / name)
6262
dest = (gen_path / dirpath.relative_to(src_path) / name)
63-
print(f"Copying {src} to {dest}")
63+
print(f"Copying {src} to {dest}{' '*20}", end="")
6464
shutil.copy(src, dest)
65+
print("")
6566
self.run_command("build_libicsneo")
6667
super().run()
6768

0 commit comments

Comments
 (0)