Skip to content

Commit

Permalink
add .checkignore
Browse files Browse the repository at this point in the history
  • Loading branch information
MrLeeh authored and MrLeeh committed Aug 31, 2015
1 parent dd16534 commit cdb16e8
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .checkignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
versioneer.py
pdftools/_version.py
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,7 @@ MANIFEST
build/
*.egg-info/
venv/

*.tox
tox.ini
deploy.py
2 changes: 1 addition & 1 deletion doc/make.bat
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

REM Command file for Sphinx documentation

set SPHINXBUILD="c:\Python27\Scripts\sphinx-build"
set SPHINXBUILD="c:\Python34\Scripts\sphinx-build"

if "%SPHINXBUILD%" == "" (
set SPHINXBUILD=sphinx-build
Expand Down
27 changes: 25 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,31 @@
#! /usr/bin/env python2
#! /usr/bin/env python
# -*-coding: utf-8 -*-
import os
import sys
from setuptools import setup
from setuptools.command.test import test as TestCommand
import versioneer

class PyTest(TestCommand):
user_options = [('pytest-args=', 'a', "Arguments to pass to py.test")]

def initialize_options(self):
TestCommand.initialize_options(self)
self.pytest_args=[]

def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True

def run_tests(self):
import pytest
errno = pytest.main(self.pytest_args)
sys.exit(errno)

cmdclass = versioneer.get_cmdclass()
cmdclass.update({'test': PyTest})

setup(
name = "pyads",
version = versioneer.get_version(),
Expand All @@ -24,5 +47,5 @@
'Operating System :: Microsoft :: Windows',
'Operating System :: Microsoft :: Windows :: Windows 7'
],
cmdclass=versioneer.get_cmdclass()
cmdclass=cmdclass
)

0 comments on commit cdb16e8

Please sign in to comment.