Commit 6568b83f authored by Wei Shoulin's avatar Wei Shoulin
Browse files

fix ver and deps

parent 1353f622
...@@ -11,7 +11,6 @@ This library can be installed with the following command: ...@@ -11,7 +11,6 @@ This library can be installed with the following command:
```bash ```bash
git clone https://github.com/astronomical-data-processing/csst-dfs-api-local.git git clone https://github.com/astronomical-data-processing/csst-dfs-api-local.git
cd csst-dfs-api-local cd csst-dfs-api-local
pip install -r requirements.txt
python setup.py install python setup.py install
``` ```
......
__version__ = "1.0.0"
\ No newline at end of file
# base
astropy==5.3.4
pandas==2.0.3
networkx==3.2.1
matplotlib==3.7.2
numpy==1.26.1
healpy==1.16.6
# specific
DBUtils==1.3 DBUtils==1.3
\ No newline at end of file
astropy>=4.0
\ No newline at end of file
...@@ -7,21 +7,25 @@ description = CSST DFS Local APIs Library. ...@@ -7,21 +7,25 @@ description = CSST DFS Local APIs Library.
long_description = file: README.md long_description = file: README.md
long_description_content_type = text/markdown long_description_content_type = text/markdown
keywords = astronomy, astrophysics, cosmology, space, CSST keywords = astronomy, astrophysics, cosmology, space, CSST
url = https://github.com/astronomical-data-processing/csst-dfs-api-local url = https://csst-tb.bao.ac.cn/code/csst-dfs/csst-dfs-api-local
project_urls =
Bug Tracker = https://github.com/astronomical-data-processing/csst-dfs-api-local/issues [bumpver]
classifiers = current_version = "1.0.0"
Programming Language :: Python :: 3 version_pattern = "MAJOR.MINOR.PATCH[PYTAGNUM]"
License :: OSI Approved :: MIT License commit_message = "Release {new_version}"
Operating System :: OS Independent commit = True
tag = True
push = True
[bumpver:file_patterns]
setup.cfg =
current_version = "{version}"
csst_dfs_api/version.py =
__version__ = "{version}"
[options] [options]
packages = find:
python_requires = >=3.7 python_requires = >=3.7
zip_safe = False zip_safe = False
setup_requires = setuptools_scm
install_requires =
DBUtils==1.3
[options.package_data] [options.package_data]
csst_dfs_api_local.common = *.sql csst_dfs_api_local.common = *.sql
[options.entry_points] [options.entry_points]
......
# coding: utf-8 # coding: utf-8
import os import os
from setuptools import setup from setuptools import setup
setup_pars = {
"packages" : [
'csst_dfs_api_local',
'csst_dfs_api_local.common',
'csst_dfs_api_local.cpic',
'csst_dfs_api_local.facility',
'csst_dfs_api_local.hstdm',
'csst_dfs_api_local.ifs',
'csst_dfs_api_local.mbi',
'csst_dfs_api_local.mci',
'csst_dfs_api_local.sls',
],
"package_dir" : {
'csst_dfs_api_local' : 'csst_dfs_api_local',
'csst_dfs_api_local.common' : 'csst_dfs_api_local/common',
'csst_dfs_api_local.cpic' : 'csst_dfs_api_local/cpic',
'csst_dfs_api_local.facility' : 'csst_dfs_api_local/facility',
'csst_dfs_api_local.hstdm' : 'csst_dfs_api_local/hstdm',
'csst_dfs_api_local.ifs' : 'csst_dfs_api_local/ifs',
'csst_dfs_api_local.mbi' : 'csst_dfs_api_local/mbi',
'csst_dfs_api_local.mci' : 'csst_dfs_api_local/mci',
'csst_dfs_api_local.sls' : 'csst_dfs_api_local/sls',
},
}
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_api_local", "version.py")
with open(version_path, "r") as file:
exec(file.read(), __version)
return __version["__version__"]
setup(
name="csst_dfs_api_local",
version=version(),
description="API's to access CSST Data Flow System (DFS)",
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-api-local',
},
**setup_pars
)
setup(use_scm_version={'write_to': os.path.join('csst_dfs_api_local', '_version.py')})
...@@ -2,7 +2,7 @@ import os ...@@ -2,7 +2,7 @@ import os
import unittest import unittest
from astropy.io import fits from astropy.io import fits
from csst_dfs_api_local.msc.level2 import Level2CatalogApi from csst_dfs_api_local.mbi.level2 import Level2CatalogApi
class MSCLevel2CatalogApiTestCase(unittest.TestCase): class MSCLevel2CatalogApiTestCase(unittest.TestCase):
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment