Skip to content

Commit

Permalink
Bump Version to v1.0.0-Beta.2
Browse files Browse the repository at this point in the history
  • Loading branch information
akshayaurora committed Jul 16, 2022
1 parent 0334503 commit 81f3acd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 56 deletions.
36 changes: 1 addition & 35 deletions py-lfk-mp-benchmark/pylfk_benchmark.pyx
Original file line number Diff line number Diff line change
@@ -1,37 +1,3 @@
# Copyright (c) 2022 Waverian Team

# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:

# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.

# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.

'''This is the python module for interfacing with lfk-mp-benchmark.
Usage::
import lfkbenchmark
benchmark = lfkbenchmark.lfk_benchmark()
benchmark.console_run_benchmark()
Repository: https://github.com/waverian/py-lfk-mp-benchmark
For details of the C module look at https://github.com/waverian/lfk-mp-benchmark
'''

import os
import logging

Expand All @@ -48,7 +14,7 @@ CPU_COUNT = 0
0: is auto # os.cpu_count()
'''

__version__ = '1.0.0-beta2'
__version__ = 'v1.0.0-Beta.2'

ctypedef void (*benchmark_progress_callback_t)(void *data, int progress,
const char *message)
Expand Down
29 changes: 8 additions & 21 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,23 +1,3 @@
# Copyright (c) 2022 Waverian Team

# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:

# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.

# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.

from distutils.core import setup, Extension
import sys
from os import environ
Expand Down Expand Up @@ -49,6 +29,13 @@
use_embed_signature = use_embed_signature or bool(
platform not in ('ios', 'android'))



with open(join(dirname(__file__), 'py-lfk-mp-benchmark', 'pylfk_benchmark.pyx')) as f:
for line in f.readline():
if line.startswith('__version__'):
__version__ == line.split('=')[-1].strip()[1:-1]

class CythonExtension(Extension):

def __init__(self, *args, **kwargs):
Expand Down Expand Up @@ -95,5 +82,5 @@ def __init__(self, *args, **kwargs):
package_dir={'lfkbenchmark': 'py-lfk-mp-benchmark'},
options={'bdist_wheel':{'universal':'1'}},
ext_modules=[ext],
version='0.1.0.dev0'
version='v1.0.0-Beta.2'
)

0 comments on commit 81f3acd

Please sign in to comment.