Skip to content

Commit

Permalink
Rename project
Browse files Browse the repository at this point in the history
  • Loading branch information
jonashaag committed May 9, 2016
1 parent 982e326 commit 18b59dd
Show file tree
Hide file tree
Showing 11 changed files with 54 additions and 37 deletions.
11 changes: 11 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
sudo: false
language: python
python:
- "2.6"
- "2.7"
- "3.4"
- "3.5"
install:
- pip install cython
script:
- make
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
all:
cython src/_readtags.pyx
PYTHONPATH=src python setup.py test
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
*NOTE*: This a fork from the original python-ctags that adds support for Python 3. It is currently maintained by Jonas Haag.

Exuberant Ctags supports indexing of many modern programming languages. Python is a powerful scriptable dynamic language. Using Python to access Ctags index file is a natural fit in extending an application's capability to examine source code.

This project wrote a wrapper for read tags library. I have been using the package in a couple of projects and it has been shown that it could easily handle hundreds of source files.

## Requirements
* C compiler (gcc/msvc)
* Python version > 2.3
* Python version >= 2.6
* [http://prdownloads.sourceforge.net/ctags/ctags-5.7.tar.gz Install Exuberant Ctags] (need it to generate tags file).

## Installation

From Python Package Index,
```bash
easy_install python-ctags
pip install python-ctags3
```

From https://github.com/hddmet/python-ctags/archive/master.zip,
Expand Down
66 changes: 31 additions & 35 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,42 +9,38 @@
a couple of projects and it has been shown that it could easily handle hundreds
source files.
"""

classifiers = [
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Programming Language :: Python',
'Programming Language :: C',
'License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)',
'Operating System :: MacOS :: MacOS X',
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX',
'Topic :: Software Development :: Libraries :: Python Modules',
]

from distutils.core import setup
from distutils.command import build, clean
from distutils.extension import Extension
import os, sys, shutil
from setuptools import setup, Extension

doclines = __doc__.split("\n")

setup(
name='python-ctags',
version='1.0.6' ,
description=doclines[0],
long_description="\n".join(doclines[2:]),
author='Aaron H. K. Diep',
author_email='ahkdiep@gmail.com',
license = 'LGPL',
url='https://github.com/hddmet/python-ctags',
classifiers = classifiers,
packages = ['ctags'],
ext_package='ctags',
ext_modules=[Extension(
'_readtags', ['src/readtags.c', 'src/_readtags.c'],
include_dirs=['src/include']
)],
package_dir = {'ctags' : 'src/ctags'}

)
name='python-ctags3',
version='1.1.0' ,
description=doclines[0],
long_description="\n".join(doclines[2:]),
author='Aaron H. K. Diep',
author_email='ahkdiep@gmail.com',
license = 'LGPL',
url='https://github.com/jonashaag/python-ctags',
packages = ['ctags'],
ext_package='ctags',
ext_modules=[Extension('_readtags', ['src/readtags.c', 'src/_readtags.c'],
include_dirs=['src/include'])
],
package_dir = {'ctags' : 'src/ctags'},
test_suite='tests',
classifiers = [
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Programming Language :: Python',
'Programming Language :: C',
'License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)',
'Operating System :: MacOS :: MacOS X',
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX',
'Topic :: Software Development :: Libraries :: Python Modules',
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
],
)
Empty file added tests/__init__.py
Empty file.
Binary file added tests/__init__.pyc
Binary file not shown.
Binary file added tests/__pycache__/__init__.cpython-35.pyc
Binary file not shown.
Binary file added tests/__pycache__/ctags_test.cpython-35.pyc
Binary file not shown.
Binary file added tests/__pycache__/test_import.cpython-35.pyc
Binary file not shown.
5 changes: 5 additions & 0 deletions tests/test_import.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
from unittest import TestCase

class ImportTests(TestCase):
def test_import(self):
import ctags
Binary file added tests/test_import.pyc
Binary file not shown.

0 comments on commit 18b59dd

Please sign in to comment.