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-pipeline
csst_common
Commits
ffa4a02c
Commit
ffa4a02c
authored
Dec 08, 2023
by
BO ZHANG
🏀
Browse files
update setup.py
parent
92f0f448
Pipeline
#2050
failed with stage
in 0 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
setup.py
View file @
ffa4a02c
import
setuptools
import
csst_common
with
open
(
"README.md"
,
"r"
)
as
fh
:
long_description
=
fh
.
read
()
# 读取README.md作为长描述
with
open
(
"README.md"
,
"r"
)
as
f
:
long_description
=
f
.
read
()
# 读取依赖列表requirements.txt
# 忽略#开头或者版本号不明确指定的条目
with
open
(
"requirements.txt"
,
"r"
)
as
f
:
requirements
=
[
req
.
strip
()
for
req
in
f
.
readlines
()
if
not
req
.
startswith
(
"#"
)
and
req
.
__contains__
(
"=="
)
]
setuptools
.
setup
(
name
=
'
csst_common
'
,
version
=
csst_common
.
__version__
,
author
=
'CSST Team'
,
author_email
=
'
bozhang@nao.cas.cn
'
,
description
=
'
The CSST L1 pipeline - common modules
'
,
# short description
name
=
"
csst_common
"
,
version
=
"0.0.1"
,
author
=
"Bo Zhang"
,
author_email
=
"
bozhang@nao.cas.cn
"
,
description
=
"
The CSST L1 pipeline - common modules
"
,
# short description
long_description
=
long_description
,
long_description_content_type
=
"text/markdown"
,
url
=
'
https://csst-tb.bao.ac.cn/code/csst-l1/csst_common
'
,
url
=
"
https://csst-tb.bao.ac.cn/code/csst-l1/csst_common
"
,
project_urls
=
{
'
Source
'
:
'
https://csst-tb.bao.ac.cn/code/csst-l1/csst_common
'
,
"
Source
"
:
"
https://csst-tb.bao.ac.cn/code/csst-l1/csst_common
"
,
},
packages
=
setuptools
.
find_packages
(),
license
=
'MIT'
,
classifiers
=
[
"Development Status :: 5 - Production/Stable"
,
"Intended Audience :: Science/Research"
,
"License :: OSI Approved :: MIT License"
,
"Operating System :: OS Independent"
,
"Programming Language :: Python :: 3.8"
,
"Topic :: Scientific/Engineering :: Physics"
,
"Topic :: Scientific/Engineering :: Astronomy"
],
package_dir
=
{
'csst'
:
'csst'
},
# include_package_data=True,
package_data
=
{
""
:
[
"LICENSE"
,
"README.md"
],
"csst_common"
:
[
"data/*"
]},
# install_requires=['sphinx',
# 'numpy',
# 'scipy', 'matplotlib',
# 'astropy', 'healpy', 'ccdproc', 'deepCR', 'photutils'],
python_requires
=
'>=3.8'
,
license
=
"MIT"
,
classifiers
=
[
"Development Status :: 5 - Production/Stable"
,
"Intended Audience :: Science/Research"
,
"License :: OSI Approved :: MIT License"
,
"Operating System :: OS Independent"
,
"Programming Language :: Python :: 3.8"
,
"Topic :: Scientific/Engineering :: Physics"
,
"Topic :: Scientific/Engineering :: Astronomy"
,
],
include_package_data
=
True
,
# 设置包含随包数据
package_data
=
{
# 具体随包数据路径
"csst_common"
:
[
"data/*"
],
},
install_requires
=
requirements
,
python_requires
=
">=3.11"
,
)
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