Introduced new structuring and a somewhat-legit packaging of sorts

This commit is contained in:
Ben Nahill 2013-06-22 15:19:43 -04:00
parent fd583762bc
commit 87b81fcb43
6 changed files with 59 additions and 1 deletions

1
MANIFEST.in Normal file
View File

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

0
cmdebug/__init__.py Normal file
View File

View File

@ -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 Normal file
View File

@ -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 Normal file
View File

@ -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',
],
)