diff --git a/README.md b/README.md index f4f04ee74d15abad7299bf1c88238c2eea8a2401..174aa5c34cae3c40d7b93413989e655f4f261af7 100644 --- a/README.md +++ b/README.md @@ -1,37 +1,36 @@ -# python-neotime - -#### 介绍 -Nanosecond resolution temporal types - -#### 软件架构 -软件架构说明 - - -#### 安装教程 - -1. xxxx -2. xxxx -3. xxxx - -#### 使用说明 - -1. xxxx -2. xxxx -3. xxxx - -#### 参与贡献 - -1. Fork 本仓库 -2. 新建 Feat_xxx 分支 -3. 提交代码 -4. 新建 Pull Request - - -#### 码云特技 - -1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md -2. 码云官方博客 [blog.gitee.com](https://blog.gitee.com) -3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解码云上的优秀开源项目 -4. [GVP](https://gitee.com/gvp) 全称是码云最有价值开源项目,是码云综合评定出的优秀开源项目 -5. 码云官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help) -6. 码云封面人物是一档用来展示码云会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/) + **Project description** + +The neotime module defines classes for working with temporal data to nanosecond precision. +These classes comprise a similar set to that provided by the standard library datetime module. +Inspiration has also been drawn from ISO-8601. + + **Overview** + +The classes are listed below: + +Duration + +Date + +Time + +DateTime + +TODO + + + **Installation** + +To install the latest stable version of neotime, simply use pip: + +$ pip install --pre neotime + +Or to install the latest bleeding edge code directly from GitHub, use: + +$ pip install git+https://github.com/technige/neotime.git#egg=neotime + +Note that code installed directly from GitHub is likely to be unstable. Your mileage may vary. + + **More Information** + +For more information, read the docs. \ No newline at end of file diff --git a/neotime-1.7.4.tar.gz b/neotime-1.7.4.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..69a5c7f215ceb9a7578d6e1e3347713bdf387c54 Binary files /dev/null and b/neotime-1.7.4.tar.gz differ diff --git a/python-neotime.spec b/python-neotime.spec new file mode 100644 index 0000000000000000000000000000000000000000..34397c207604734f2e6f8f3268778733bcd06fec --- /dev/null +++ b/python-neotime.spec @@ -0,0 +1,55 @@ +%global srcname neotime +%global sum Nanosecond resolution temporal types +%global desc %{sum} +%global debug_package %{nil} +# Disable Python 2 +%bcond_with python2 +# Enable Python 3 +%bcond_without python3 + +Name: python-%{srcname} +Version: 1.7.4 +Release: 1 +Summary: %{sum} + +License: ASL 2.0 +URL: https://pypi.python.org/pypi/%{srcname} +Source0: https://files.pythonhosted.org/packages/0b/7e/ca368a8d8e288be1352d4e2df35da1e01f8aaffbf526695df71630bcb8a6/neotime-1.7.4.tar.gz + +BuildArch: noarch +BuildRequires: python%{python3_pkgversion}-devel +BuildRequires: python%{python3_pkgversion}-setuptools + +%description +The neotime module defines classes for working with temporal data to nanosecond precision. +These classes comprise a similar set to that provided by the standard library datetime module. +Inspiration has also been drawn from ISO-8601. + +%if %{with python3} +%package -n python%{python3_pkgversion}-%{srcname} +Summary: %{sum} +%{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}} +Requires: python3-pytz +Requires: python3-six + +%description -n python%{python3_pkgversion}-%{srcname} +%{desc} +%endif + +%prep +%autosetup -n %{srcname}-%{version} +find ./ -name '*.py' -exec sed -i '/^#!\/usr\/bin\/env python$/d' '{}' ';' + +%build +%py3_build + +%install +%py3_install + +%files -n python%{python3_pkgversion}-%{srcname} +%doc README.rst +%{python3_sitelib}/* + +%changelog +* Fri Jul 9 2021 liuzhaoyang - 1.7.4-1 +- Package init