|
| 1 | +# Licensed under the MIT License |
| 2 | +# https://github.com/grongierisc/iris_datapipe/blob/main/LICENSE |
| 3 | + |
| 4 | +import os |
| 5 | + |
| 6 | +from setuptools import setup |
| 7 | + |
| 8 | +def package_files(directory): |
| 9 | + paths = [] |
| 10 | + for (path, directories, filenames) in os.walk(directory): |
| 11 | + for filename in filenames: |
| 12 | + paths.append(os.path.join('.', path, filename)) |
| 13 | + return paths |
| 14 | + |
| 15 | +extra_files = package_files('src/python/') |
| 16 | + |
| 17 | +def main(): |
| 18 | + # Read the readme for use as the long description |
| 19 | + with open(os.path.join(os.path.abspath(os.path.dirname(__file__)), |
| 20 | + 'README.md'), encoding='utf-8') as readme_file: |
| 21 | + long_description = readme_file.read() |
| 22 | + |
| 23 | + # Do the setup |
| 24 | + setup( |
| 25 | + name='iris_datapipe', |
| 26 | + description='iris_datapipe', |
| 27 | + long_description=long_description, |
| 28 | + long_description_content_type='text/markdown', |
| 29 | + version='0.0.2', |
| 30 | + author='grongier', |
| 31 | + author_email='guillaume.rongier@intersystems.com', |
| 32 | + keywords='iris_datapipe', |
| 33 | + url='https://github.com/grongierisc/iris-datapipe', |
| 34 | + license='MIT', |
| 35 | + classifiers=[ |
| 36 | + 'Development Status :: 5 - Production/Stable', |
| 37 | + 'Intended Audience :: Developers', |
| 38 | + 'License :: OSI Approved :: MIT License', |
| 39 | + 'Operating System :: OS Independent', |
| 40 | + 'Programming Language :: Python :: 3.6', |
| 41 | + 'Programming Language :: Python :: 3.7', |
| 42 | + 'Programming Language :: Python :: 3.8', |
| 43 | + 'Programming Language :: Python :: 3.9', |
| 44 | + 'Programming Language :: Python :: 3.10', |
| 45 | + 'Programming Language :: Python :: 3.11', |
| 46 | + 'Topic :: Utilities' |
| 47 | + ], |
| 48 | + package_dir={'': 'src/python'}, |
| 49 | + packages=['DataPipe'], |
| 50 | + |
| 51 | + python_requires='>=3.6', |
| 52 | + install_requires=[ |
| 53 | + "iris-pex-embedded-python>=2.0.0" |
| 54 | + ] |
| 55 | + ) |
| 56 | + |
| 57 | + |
| 58 | +if __name__ == '__main__': |
| 59 | + main() |
0 commit comments