Skip to content

Commit 07f419d

Browse files
committed
update version to 1.0
1 parent b589688 commit 07f419d

File tree

1 file changed

+29
-24
lines changed

1 file changed

+29
-24
lines changed

setup.py

Lines changed: 29 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212

1313
HOMEPAGE = "https://github.com/sumerc/yappi"
1414
NAME = "yappi"
15-
VERSION = "0.99"
16-
_DEBUG = False # compile/link code for debugging
17-
_PROFILE = False # profile yappi itself
15+
VERSION = "1.0"
16+
_DEBUG = False # compile/link code for debugging
17+
_PROFILE = False # profile yappi itself
1818

1919
user_macros = []
2020
user_libraries = []
@@ -23,8 +23,8 @@
2323

2424
if os.name == 'posix' and sys.platform != 'darwin':
2525
compiler = new_compiler()
26-
if compiler.has_function('timer_create', libraries=('rt',)):
27-
user_macros.append(('LIB_RT_AVAILABLE','1'))
26+
if compiler.has_function('timer_create', libraries=('rt', )):
27+
user_macros.append(('LIB_RT_AVAILABLE', '1'))
2828
user_libraries.append('rt')
2929
if _DEBUG:
3030
if os.name == 'posix':
@@ -60,31 +60,36 @@
6060
'Topic :: Software Development :: Libraries :: Python Modules',
6161
]
6262

63-
setup(name=NAME,
63+
setup(
64+
name=NAME,
6465
version=VERSION,
6566
author="Sumer Cip",
6667
author_email="[email protected]",
67-
ext_modules = [Extension(
68-
"_yappi",
69-
sources = ["_yappi.c", "callstack.c", "hashtab.c", "mem.c", "freelist.c", "timing.c"],
70-
define_macros = user_macros,
71-
libraries = user_libraries,
72-
extra_compile_args = compile_args,
73-
extra_link_args = link_args,
74-
)],
75-
py_modules = ["yappi"],
76-
entry_points = {
77-
'console_scripts': [
78-
'yappi = yappi:main',
68+
ext_modules=[
69+
Extension(
70+
"_yappi",
71+
sources=[
72+
"_yappi.c", "callstack.c", "hashtab.c", "mem.c", "freelist.c",
73+
"timing.c"
74+
],
75+
define_macros=user_macros,
76+
libraries=user_libraries,
77+
extra_compile_args=compile_args,
78+
extra_link_args=link_args,
79+
)
80+
],
81+
py_modules=["yappi"],
82+
entry_points={
83+
'console_scripts': [
84+
'yappi = yappi:main',
7985
],
8086
},
8187
description="Yet Another Python Profiler",
82-
long_description = long_description,
88+
long_description=long_description,
8389
long_description_content_type='text/markdown',
84-
keywords = "python thread multithread profiler",
90+
keywords="python thread multithread profiler",
8591
classifiers=CLASSIFIERS,
86-
license = "MIT",
87-
url = HOMEPAGE,
92+
license="MIT",
93+
url=HOMEPAGE,
8894
# download_url = "http://bitbucket.org/sumerc/yappi/downloads/%s-%s.tar.gz" % (NAME, VERSION),
89-
test_suite = 'nose.collector'
90-
)
95+
test_suite='nose.collector')

0 commit comments

Comments
 (0)