Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Apr 14, 2024. It is now read-only.

Commit06de91a

Browse files
committed
Merge pull request#9 from greut/travis
travis support
2 parents3f26b05 +aae7869 commit06de91a

File tree

3 files changed

+30
-10
lines changed

3 files changed

+30
-10
lines changed

‎.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ dist/
44
*.pyc
55
*.o
66
*.so
7+
.coverage

‎.travis.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
language:python
2+
3+
python:
4+
-2.6
5+
-2.7
6+
-3.3
7+
-3.4
8+
9+
install:
10+
-pip install nose coveralls
11+
12+
script:
13+
-python setup.py nosetests --with-coverage
14+
15+
after_success:
16+
-coveralls

‎setup.py

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
#!/usr/bin/env python
2-
fromdistutils.coreimportsetup,Extension
2+
fromsetuptoolsimportsetup
3+
fromdistutils.coreimportExtension
34
fromdistutils.command.build_pyimportbuild_py
45
fromdistutils.command.build_extimportbuild_ext
56

67
importos,sys
78

8-
# wow, this is a mixed bag ... I am pretty upset about all of this ...
9+
# wow, this is a mixed bag ... I am pretty upset about all of this ...
910
setuptools_build_py_module=None
1011
try:
1112
# don't pull it in if we don't have to
12-
if'setuptools'insys.modules:
13+
if'setuptools'insys.modules:
1314
importsetuptools.command.build_pyassetuptools_build_py_module
1415
fromsetuptools.command.build_extimportbuild_ext
1516
exceptImportError:
@@ -25,23 +26,23 @@ def run(self):
2526
# END ignore errors
2627

2728
defget_data_files(self):
28-
"""Can you feel the pain ? So, in python2.5 and python2.4 coming with maya,
29+
"""Can you feel the pain ? So, in python2.5 and python2.4 coming with maya,
2930
the line dealing with the ``plen`` has a bug which causes it to truncate too much.
3031
It is fixed in the system interpreters as they receive patches, and shows how
3132
bad it is if something doesn't have proper unittests.
3233
The code here is a plain copy of the python2.6 version which works for all.
33-
34+
3435
Generate list of '(package,src_dir,build_dir,filenames)' tuples"""
3536
data= []
3637
ifnotself.packages:
3738
returndata
38-
39+
3940
# this one is just for the setup tools ! They don't iniitlialize this variable
4041
# when they should, but do it on demand using this method.Its crazy
4142
ifhasattr(self,'analyze_manifest'):
4243
self.analyze_manifest()
4344
# END handle setuptools ...
44-
45+
4546
forpackageinself.packages:
4647
# Locate package source directory
4748
src_dir=self.get_package_dir(package)
@@ -60,13 +61,13 @@ def get_data_files(self):
6061
]
6162
data.append((package,src_dir,build_dir,filenames))
6263
returndata
63-
64+
6465
build_py.get_data_files=get_data_files
6566
ifsetuptools_build_py_module:
6667
setuptools_build_py_module.build_py._get_data_files=get_data_files
6768
# END apply setuptools patch too
6869

69-
70+
7071
setup(cmdclass={'build_ext':build_ext_nofail},
7172
name="async",
7273
version="0.6.1",
@@ -79,5 +80,7 @@ def get_data_files(self):
7980
ext_modules=[Extension('async.mod.zlib', ['async/mod/zlibmodule.c'],libraries=['z'])],
8081
license="BSD License",
8182
zip_safe=False,
82-
long_description="""Async is a framework to process interdependent tasks in a pool of workers"""
83+
long_description="""Async is a framework to process interdependent tasks in a pool of workers""",
84+
tests_require=('nose'),
85+
test_suite='nose.collector'
8386
)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp