diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000000000000000000000000000000000000..fa9deeab525678ab5bde08a816d1d6aec813d413 --- /dev/null +++ b/setup.cfg @@ -0,0 +1,24 @@ +[metadata] +name = csst_dfs_proto +author =CSST DFS Team. +author_email = weishoulin@astrolab.cn +description = CSST DFS Protocol Library. +long_description = file: README.md +long_description_content_type = text/markdown +keywords = astronomy, astrophysics, cosmology, space, CSST +url = https://github.com/astronomical-data-processing/csst-dfs-proto-py +project_urls = + Bug Tracker = https://github.com/astronomical-data-processing/csst-dfs-proto-py/issues +classifiers = + Programming Language :: Python :: 3 + License :: OSI Approved :: MIT License + Operating System :: OS Independent + +[options] +packages = find: +python_requires = >=3.7 +zip_safe = False +setup_requires = setuptools_scm +install_requires = + grpcio==1.28.1 + protobuf==3.9.0 \ No newline at end of file diff --git a/setup.py b/setup.py index 5d839b15777a524fd19172ebb7b13dc05efd979c..3ec5e5c26271dd4b85aca0259ffbbe91a4b1f625 100644 --- a/setup.py +++ b/setup.py @@ -1,38 +1,5 @@ # coding: utf-8 -"""Setup config file to package the configuration database.""" -from os import walk, listdir -from setuptools import find_packages -from os.path import join +import os from setuptools import setup - -def package_files(directory): - """Get list of data files to add to the package.""" - paths = [] - for (path, _, file_names) in walk(directory): - for filename in file_names: - paths.append(join('..', path, filename)) - return paths - - -with open('README.md', 'r') as file: - LONG_DESCRIPTION = file.read() - -setup(name='csst_dfs_proto', - version='0.0.1', - author='CSST DFS team.', - description='CSST DFS Base Proto library.', - long_description=LONG_DESCRIPTION, - long_description_content_type='text/markdown', - url='', - packages=find_packages(exclude=('test', 'test.*', 'fabfile')), - install_requires=[ - 'grpcio==1.28.1' - ], - zip_safe=False, - classifiers=[ - "Programming Language :: Python :: 3 :: Only", - "Development Status :: 1 - Planning", - "License :: OSI Approved :: BSD License" - ] -) +setup(use_scm_version={'write_to': os.path.join('csst_dfs_proto', '_version.py')})