from setuptools import setup from auto_version import calculate_version name = 'jsonsocket' version = calculate_version() setup( name=name, version=version, description= 'This is a small Python library for sending data over sockets. ', author='github', author_email='', packages=[name], #same as name requirements=["schedule"])
#!/usr/bin/env python # Copyright (c) 2014, Michael Boyle # See LICENSE file for details: <https://github.com/moble/quaternion/blob/master/LICENSE> from auto_version import calculate_version, build_py_copy_version def configuration(parent_package='', top_path=None): import numpy from distutils.errors import DistutilsError if numpy.__dict__.get('quaternion') is not None: raise DistutilsError('The target NumPy already has a quaternion type') from numpy.distutils.misc_util import Configuration compile_args = ['-ffast-math', '-O3'] config = Configuration('quaternion', parent_package, top_path) config.add_extension('numpy_quaternion', ['quaternion.c', 'numpy_quaternion.c'], depends=['quaternion.c', 'quaternion.h', 'numpy_quaternion.c'], extra_compile_args=compile_args, ) return config if __name__ == "__main__": from numpy.distutils.core import setup setup(configuration=configuration, version=calculate_version(), cmdclass={'build_py': build_py_copy_version},)
#!/usr/bin/env python # Copyright (c) 2019, Michael Boyle # See LICENSE file for details: <https://github.com/moble/quaternion/blob/master/LICENSE> from __future__ import print_function import fileinput from auto_version import calculate_version version_string = calculate_version().replace('+dirty', '') f = fileinput.FileInput('meta.yaml', inplace=True) for line in f: print(line.replace("version: '1.0'", "version: '{0}'".format(version_string)), end='') f.close()
#!/usr/bin/env python # Copyright (c) 2016, Michael Boyle # See LICENSE file for details: <https://github.com/moble/spherical_functions/blob/master/LICENSE> from distutils.core import setup from auto_version import calculate_version, build_py_copy_version from os import getenv validate = True error_on_invalid = False if getenv('CI') is not None: if getenv('CI').lower() == 'true': error_on_invalid = True setup( name='spherical-functions', description= 'Python/numba implementation of Wigner D Matrices, spin-weighted spherical harmonics, and associated functions', url='https://github.com/moble/spherical_functions', author='Michael Boyle', author_email='', packages=[ 'spherical_functions', ], package_dir={'spherical_functions': '.'}, package_data={'spherical_functions': ['*.npy']}, version=calculate_version(validate, error_on_invalid), cmdclass={'build_py': build_py_copy_version}, )
#!/usr/bin/env python # Copyright (c) 2017, Michael Boyle # See LICENSE file for details: <https://github.com/moble/quaternion/blob/master/LICENSE> from __future__ import print_function import fileinput from auto_version import calculate_version version_string = calculate_version().replace('+dirty', '') f = fileinput.FileInput('meta.yaml', inplace=True) for line in f: print(line.replace("version: '1.0'", "version: '{0}'".format(version_string)), end='') f.close()