Skip to content
GitLab
Explore
Projects
Groups
Snippets
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
1 year ago
by
Wei Shoulin
Browse files
Options
Download
Email Patches
Plain Diff
fix ver and deps
parent
1353f622
main
1.0.2
No related merge requests found
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
README.md
+0
-1
README.md
csst_dfs_api_local/mbi/__init__.py
+0
-0
csst_dfs_api_local/mbi/__init__.py
csst_dfs_api_local/mbi/level2.py
+0
-0
csst_dfs_api_local/mbi/level2.py
csst_dfs_api_local/mbi/level2co.py
+0
-0
csst_dfs_api_local/mbi/level2co.py
csst_dfs_api_local/version.py
+1
-0
csst_dfs_api_local/version.py
requirements.txt
+9
-2
requirements.txt
setup.cfg
+15
-11
setup.cfg
setup.py
+65
-1
setup.py
tests/test_msc_level2_catalog.py
+1
-1
tests/test_msc_level2_catalog.py
with
91 additions
and
16 deletions
+91
-16
README.md
+
0
-
1
View file @
6568b83f
...
...
@@ -11,7 +11,6 @@ This library can be installed with the following command:
```
bash
git clone https://github.com/astronomical-data-processing/csst-dfs-api-local.git
cd
csst-dfs-api-local
pip
install
-r
requirements.txt
python setup.py
install
```
...
...
This diff is collapsed.
Click to expand it.
csst_dfs_api_local/m
sc
/__init__.py
→
csst_dfs_api_local/m
bi
/__init__.py
+
0
-
0
View file @
6568b83f
File moved
This diff is collapsed.
Click to expand it.
csst_dfs_api_local/m
sc
/level2.py
→
csst_dfs_api_local/m
bi
/level2.py
+
0
-
0
View file @
6568b83f
File moved
This diff is collapsed.
Click to expand it.
csst_dfs_api_local/m
sc
/level2co.py
→
csst_dfs_api_local/m
bi
/level2co.py
+
0
-
0
View file @
6568b83f
File moved
This diff is collapsed.
Click to expand it.
csst_dfs_api_local/version.py
0 → 100644
+
1
-
0
View file @
6568b83f
__version__
=
"1.0.0"
\ No newline at end of file
This diff is collapsed.
Click to expand it.
requirements.txt
+
9
-
2
View file @
6568b83f
DBUtils
==1.3
astropy
>=4.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
\ No newline at end of file
This diff is collapsed.
Click to expand it.
setup.cfg
+
15
-
11
View file @
6568b83f
...
...
@@ -7,21 +7,25 @@ description = CSST DFS Local APIs 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-api-local
project_urls =
Bug Tracker = https://github.com/astronomical-data-processing/csst-dfs-api-local/issues
classifiers =
Programming Language :: Python :: 3
License :: OSI Approved :: MIT License
Operating System :: OS Independent
url = https://csst-tb.bao.ac.cn/code/csst-dfs/csst-dfs-api-local
[bumpver]
current_version = "1.0.0"
version_pattern = "MAJOR.MINOR.PATCH[PYTAGNUM]"
commit_message = "Release {new_version}"
commit = True
tag = True
push = True
[bumpver:file_patterns]
setup.cfg =
current_version = "{version}"
csst_dfs_api/version.py =
__version__ = "{version}"
[options]
packages = find:
python_requires = >=3.7
zip_safe = False
setup_requires = setuptools_scm
install_requires =
DBUtils==1.3
[options.package_data]
csst_dfs_api_local.common = *.sql
[options.entry_points]
...
...
This diff is collapsed.
Click to expand it.
setup.py
+
65
-
1
View file @
6568b83f
# coding: utf-8
import
os
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'
)})
This diff is collapsed.
Click to expand it.
tests/test_msc_level2_catalog.py
+
1
-
1
View file @
6568b83f
...
...
@@ -2,7 +2,7 @@ import os
import
unittest
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
):
...
...
This diff is collapsed.
Click to expand it.
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
Menu
Explore
Projects
Groups
Snippets