Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
csst-dfs
csst-dfs-api-local
Commits
6568b83f
Commit
6568b83f
authored
Dec 08, 2023
by
Wei Shoulin
Browse files
fix ver and deps
parent
1353f622
Changes
9
Show whitespace changes
Inline
Side-by-side
README.md
View file @
6568b83f
...
@@ -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
```
```
...
...
csst_dfs_api_local/m
sc
/__init__.py
→
csst_dfs_api_local/m
bi
/__init__.py
View file @
6568b83f
File moved
csst_dfs_api_local/m
sc
/level2.py
→
csst_dfs_api_local/m
bi
/level2.py
View file @
6568b83f
File moved
csst_dfs_api_local/m
sc
/level2co.py
→
csst_dfs_api_local/m
bi
/level2co.py
View file @
6568b83f
File moved
csst_dfs_api_local/version.py
0 → 100644
View file @
6568b83f
__version__
=
"1.0.0"
\ No newline at end of file
requirements.txt
View file @
6568b83f
# 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
setup.cfg
View file @
6568b83f
...
@@ -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]
...
...
setup.py
View file @
6568b83f
# 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'
)})
tests/test_msc_level2_catalog.py
View file @
6568b83f
...
@@ -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.m
sc
.level2
import
Level2CatalogApi
from
csst_dfs_api_local.m
bi
.level2
import
Level2CatalogApi
class
MSCLevel2CatalogApiTestCase
(
unittest
.
TestCase
):
class
MSCLevel2CatalogApiTestCase
(
unittest
.
TestCase
):
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment