Skip to content

Commit

Permalink
Removed xml version parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
leandropineda committed Oct 17, 2022
1 parent dba3dbc commit a33cedc
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions massrobotics_amr_sender_py/setup.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
from setuptools import setup, find_packages
import xml.etree.ElementTree as ET
import os
from glob import glob

# Read version from ``package.xml`` file
package_xml = ET.parse("package.xml").getroot()

package_name = "massrobotics_amr_sender"

Expand All @@ -15,7 +12,7 @@
packages=find_packages(),
package_data={"": ["schema.json"]},
include_package_data=True,
version=package_xml.find("version").text,
version="1.0.0",
data_files=[
("share/ament_index/resource_index/packages", ["resource/" + package_name]),
(share_dir, ["package.xml"]),
Expand Down

0 comments on commit a33cedc

Please sign in to comment.