Browse Source

Introduced new structuring and a somewhat-legit packaging of sorts

issue15
Ben Nahill 9 years ago
parent
commit
87b81fcb43
  1. 1
      MANIFEST.in
  2. 0
      cmdebug/__init__.py
  3. 0
      cmdebug/svd.py
  4. 2
      cmdebug/svd_gdb.py
  5. 24
      scripts/gdb.py
  6. 33
      setup.py

1
MANIFEST.in

@ -0,0 +1 @@
include scripts/gdb.py

0
cmdebug/__init__.py

0
SVD/pysvd.py → cmdebug/svd.py

2
SVD/gdb_svd.py → cmdebug/svd_gdb.py

@ -21,7 +21,7 @@ import re
import math
import sys
sys.path.append('.')
from pysvd import SVDFile
from svd import SVDFile
#from svd_test import *

24
scripts/gdb.py

@ -0,0 +1,24 @@
""" Simple script to load from GDB to import all components
===============================================================================
This file is part of PyCortexMDebug
PyCortexMDebug is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
PyCortexMDebug is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with PyCortexMDebug. If not, see <http://www.gnu.org/licenses/>.
"""
from cmdebug.svd_gdb import LoadSVD
LoadSVD()

33
setup.py

@ -0,0 +1,33 @@
#!/usr/bin/env python
from setuptools import setup
setup(
name='cmdebug',
version='0.1',
packages = ['cmdebug'],
description='Debug utilities for ARM Cortex-M microprocessors',
author='Ben Nahill',
author_email='bnahill@gmail.com',
url='https://github.com/bnahill/PyCortexMDebug',
long_description="""\
PyCortexMDebug provides basic facilities for interacting with
Cortex-M microprocessors, primarily using GDB. This project aims
to offer small-project developers the powerful capabilities
generally reserved for costly commercial tools.
""",
classifiers=[
"License :: OSI Approved :: " \
"GNU General Public License v3 (GPLv3) ",
"Programming Language :: Python",
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Topic :: Software Development",
],
keywords='arm gdb cortex cortex-m svd trace microcontroller',
license='GPL',
install_requires=[
'setuptools',
'lxml',
],
)
Loading…
Cancel
Save