import os from setuptools import setup from setuptools import find_packages def requirements(): with open("requirements.txt", "r") as f: return [ req.strip() for req in f.readlines() if not req.startswith("#") and req.__contains__("==") ] def version(): __version = {} version_path = os.path.join(os.path.dirname(__file__), "csst_dfs_proto", "version.py") with open(version_path, "r") as file: exec(file.read(), __version) return __version["__version__"] setup( name="csst_dfs_proto", version=version(), description="CSST DFS Base Protobuf library", long_description=open('README.md').read(), license="MIT", python_requires=">=3.7", install_requires=requirements(), zip_safe=False, classifiers=[ "Development Status :: 4 - Beta", "Intended Audience :: Science/Research", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3", "Topic :: Scientific/Engineering :: Physics", "Topic :: Scientific/Engineering :: Astronomy", ], include_package_data=False, project_urls={ 'Source': 'https://csst-tb.bao.ac.cn/code/csst-dfs/csst-dfs-proto-py', }, packages=find_packages(exclude=('test', 'test.*', 'fabfile')), )