forked from PaddlePaddle/PaddleSpatial
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
zhoujingbo
committed
Oct 19, 2021
0 parents
commit 476dfb4
Showing
13 changed files
with
328 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
# Virtualenv | ||
/.venv/ | ||
/venv/ | ||
|
||
# Byte-compiled / optimized / DLL files | ||
__pycache__/ | ||
*.py[cod] | ||
|
||
# C extensions | ||
*.so | ||
|
||
# Distribution / packaging | ||
/bin/ | ||
/build/ | ||
/develop-eggs/ | ||
/dist/ | ||
/eggs/ | ||
/lib/ | ||
/lib64/ | ||
/output/ | ||
/parts/ | ||
/sdist/ | ||
/var/ | ||
/*.egg-info/ | ||
/.installed.cfg | ||
/*.egg | ||
/.eggs | ||
|
||
# AUTHORS and ChangeLog will be generated while packaging | ||
/AUTHORS | ||
/ChangeLog | ||
|
||
# BCloud / BuildSubmitter | ||
/build_submitter.* | ||
/logger_client_log | ||
|
||
# Installer logs | ||
pip-log.txt | ||
pip-delete-this-directory.txt | ||
|
||
# Unit test / coverage reports | ||
.tox/ | ||
.coverage | ||
.cache | ||
.pytest_cache | ||
nosetests.xml | ||
coverage.xml | ||
|
||
# Translations | ||
*.mo | ||
|
||
# Sphinx documentation | ||
/docs/_build/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
2.7.14 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
Changelog | ||
=== | ||
以下记录了项目中所有值得关注的变更内容,其格式基于[Keep a Changelog]。 | ||
|
||
本项目版本遵守[Semantic Versioning]和[PEP-440]。 | ||
|
||
[Unreleased] | ||
--- | ||
### Added | ||
- 这里记录新添加的内容 | ||
### Changed | ||
- 这里记录变更的内容 | ||
|
||
0.1.0 - 2021-10-19 | ||
--- | ||
### Added | ||
- 创建项目 | ||
|
||
|
||
[Unreleased]: http://icode.baidu.com/repos/baidu/bil-plat/PaddleSpatial/merge/0.1.0...master | ||
|
||
[Keep a Changelog]: https://keepachangelog.com/zh-CN/1.0.0/ | ||
[Semantic Versioning]: https://semver.org/lang/zh-CN/ | ||
[PEP-440]: https://www.python.org/dev/peps/pep-0440/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
PaddleSpatial | ||
=== | ||
飞桨时空大数据计算工具和平台 | ||
|
||
快速开始 | ||
--- | ||
如何构建、安装、运行 | ||
|
||
测试 | ||
--- | ||
如何执行自动化测试 | ||
|
||
如何贡献 | ||
--- | ||
贡献patch流程及质量要求 | ||
|
||
版本信息 | ||
--- | ||
本项目的各版本信息和变更历史可以在[这里][changelog]查看。 | ||
|
||
维护者 | ||
--- | ||
### owners | ||
* zhoujingbo([email protected]) | ||
|
||
### committers | ||
* zhoujingbo([email protected]) | ||
|
||
讨论 | ||
--- | ||
百度Hi交流群:群号 | ||
|
||
|
||
[changelog]: http://icode.baidu.com/repos/baidu/bil-plat/PaddleSpatial/blob/master:CHANGELOG.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
Global: | ||
tool : build_submitter | ||
|
||
Default: | ||
profile : [publish] | ||
|
||
Profiles: | ||
- profile: | ||
name : dev | ||
env: DECK_CENTOS6U3_K3 | ||
command : python setup.py bdist_wheel | ||
release : true | ||
|
||
- profile: | ||
name : publish | ||
env: DECK_CENTOS6U3_K3 | ||
command : python setup.py bdist_wheel | ||
release : true |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# -*- coding: UTF-8 -*- | ||
################################################################################ | ||
# | ||
# Copyright (c) 2021 Baidu.com, Inc. All Rights Reserved | ||
# | ||
################################################################################ | ||
""" | ||
本文件允许模块包以python -m paddlespatial方式直接执行。 | ||
Authors: zhoujingbo([email protected]) | ||
Date: 2021/10/19 10:30:45 | ||
""" | ||
|
||
from __future__ import absolute_import | ||
from __future__ import print_function | ||
from __future__ import unicode_literals | ||
|
||
|
||
import sys | ||
from paddlespatial.cmdline import main | ||
sys.exit(main()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# -*- coding: UTF-8 -*- | ||
################################################################################ | ||
# | ||
# Copyright (c) 2021 Baidu.com, Inc. All Rights Reserved | ||
# | ||
################################################################################ | ||
""" | ||
本文件提供了命令行工具的入口逻辑。 | ||
Authors: zhoujingbo([email protected]) | ||
Date: 2021/10/19 10:30:45 | ||
""" | ||
|
||
from __future__ import absolute_import | ||
from __future__ import print_function | ||
from __future__ import unicode_literals | ||
|
||
|
||
__all__ = [ | ||
'main', | ||
] | ||
|
||
|
||
def main(args=None): | ||
"""主程序入口""" | ||
from . import demo | ||
if args is None: | ||
# 如果未传入命令行参数,则直接从sys中读取,并过滤掉第0位的入口文件名 | ||
import sys | ||
args = sys.argv[1:] | ||
|
||
hello = demo.Hello() | ||
return hello.run(*args) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# -*- coding: UTF-8 -*- | ||
################################################################################ | ||
# | ||
# Copyright (c) 2021 Baidu.com, Inc. All Rights Reserved | ||
# | ||
################################################################################ | ||
""" | ||
本文件实现了一个hello world的demo类。 | ||
Authors: zhoujingbo([email protected]) | ||
Date: 2021/10/19 10:30:45 | ||
""" | ||
|
||
from __future__ import absolute_import | ||
from __future__ import print_function | ||
from __future__ import unicode_literals | ||
|
||
|
||
class Hello(object): | ||
"""hello world类""" | ||
def run(self, name="World", *args): | ||
"""主入口方法。 | ||
根据百度python编码规范,注释应当使用google风格。 | ||
可以使用sphinx配合napoleon扩展插件自动生成文档。 | ||
Args: | ||
name: 名称 | ||
Returns: | ||
int类型,执行结果,0表示成功 | ||
Raises: | ||
ValueError: 参数name的取值不合法 | ||
""" | ||
if not name: | ||
raise ValueError(name) | ||
|
||
print("Hello {0}!".format(name)) | ||
return 0 | ||
|
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
--index-url http://pip.baidu.com/root/baidu/+simple/ | ||
--trusted-host pip.baidu.com | ||
-e . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
# Here's a link about setup.cfg | ||
# https://setuptools.readthedocs.io/en/latest/setuptools.html#configuring-setup-using-setup-cfg-files | ||
[metadata] | ||
# Project name, the project name will be used while publishing and installing | ||
name = PaddleSpatial | ||
# Author's name and email address | ||
author = zhoujingbo | ||
author_email = [email protected] | ||
# Project version, versions only above than 1.0 will assumed as a released version. | ||
# When modifying project version to above than 1.0, here's the rules should be followed. | ||
# http://wiki.baidu.com/pages/viewpage.action?pageId=469686381 | ||
version = 0.1.0 | ||
# A brief introduction about the project, ANY NON-ENGLISH CHARACTER IS NOT SUPPORTED! | ||
description = project descriptions here | ||
# A longer version of introduction abouth the project, you can also include readme, change log, etc. .md or rst file is recommended. | ||
long_description = file: README.md, CHANGELOG.md | ||
long_description_content_type = text/markdown | ||
# Main page of the project, usually the project's icode page, you can set to its wiki or other documents url instead. | ||
home_page = http://icode.baidu.com/repos/baidu/bil-plat/PaddleSpatial/tree/master | ||
# License, you can ignore this if the project is not going to open source to the public. | ||
license = MIT | ||
# Project type, you can ignore this if the project is not going to open source to the public. | ||
# Choose the right field to fulfill from PyPI's official list. | ||
# https://pypi.org/pypi?%3Aaction=list_classifiers | ||
classifier = | ||
Private :: Do Not Upload | ||
Programming Language :: Python | ||
Programming Language :: Python :: 2 | ||
Programming Language :: Python :: 2.7 | ||
# keywords, used for indexing, easier to search for other users if they are interested of your project. | ||
#keywords = | ||
# baidu | ||
# demo | ||
|
||
[options] | ||
# Package name. find means search automatically, you also can have detailed configuration in options.packages.find | ||
packages = find: | ||
# Dependency management, all project's dependency is needed here. | ||
# Every single line for a specified dependency, only the dependency is need, you don't have to consider the hierarchy dependency | ||
# Versions here should be as abstract as possible, usually only specific a version range including minimum and maximum version. | ||
#install_requires = | ||
# six >= 1.10 | ||
|
||
# Test dependencies, all dependencies for tests here. The format is align to install_requires. | ||
# You can use the internal unittest, or the simplier framework such as pytest or nose. | ||
# python3 has a mock library with itself, but it's not exist in python 2, add as you need. | ||
#tests_require = | ||
# pytest | ||
# mock | ||
|
||
# directory for unit test | ||
test_suite = paddlespatial.tests | ||
# add all data files controled by git | ||
include_package_data = True | ||
# You can run zip source code for plain python project | ||
zip_safe = False | ||
|
||
# You can set this configuration to let users run directly the main entrance function | ||
#[options.entry_points] | ||
#console_scripts = | ||
# PaddleSpatial = paddlespatial.cmdline:main | ||
|
||
# You can add conf/data directory into package, the following directory will be installed under site-package | ||
# Only file is supported, but you can use wildcard instead. | ||
#[options.package_data] | ||
#paddlespatial = | ||
# conf/* | ||
# data/* | ||
|
||
[sdist] | ||
dist_dir = output/dist | ||
|
||
[bdist_wheel] | ||
# set universal=1 if this project can both run in python 2 or 3 environment. | ||
#universal=1 | ||
dist_dir = output/dist | ||
|
||
[easy_install] | ||
# using baidu's official pip source | ||
index_url = http://pip.baidu.com/root/baidu/+simple/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/usr/bin/env python | ||
# -*- coding: UTF-8 -*- | ||
################################################################################ | ||
# | ||
# Copyright (c) 2021 Baidu.com, Inc. All Rights Reserved | ||
# | ||
################################################################################ | ||
""" | ||
Setup script. | ||
Authors: zhoujingbo([email protected]) | ||
Date: 2021/10/19 10:30:45 | ||
""" | ||
|
||
import setuptools | ||
|
||
setuptools.setup() | ||
|