Group :: Development/Python3
RPM: python3-module-nulltype
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
%define _unpackaged_files_terminate_build 1
%define oname nulltype
Name: python3-module-%oname
Version: 2.2.11
Release: alt2
Summary: Null values and sentinels like, but not, None
License: Apache-2.0
Group: Development/Python3
BuildArch: noarch
Url: https://pypi.python.org/pypi/nulltype
Source: %oname-%version.tar
BuildRequires(pre): rpm-build-python3
BuildRequires: python3-devel python3-module-setuptools
BuildRequires: python3-module-tox python3-module-virtualenv
BuildRequires: python3-module-pytest
%description
Helps define "null" values and sentinels parallel to, but different
from, None.
None is a great sentinel value and a classic implementation of the null
object pattern.
But there are times that you need more than one nullish value to
represent different aspects of emptiness. "Nothing there" is logically
different from "undefined," "prohibited," "end of data" and other kinds
of null.
The core function of nulltype is representing emptiness and falsity in a
way that doesn't overload None (or False, 0, {}, [], "", or any of the
other possible "there's nothing here!" values). It helps create
designated identifiers with specific meanings such as Passthrough,
Prohibited, and Undefined.
%prep
%setup -n %oname-%version
%build
%python3_build_debug
%install
%python3_install
%check
export PYTHONPATH=$PWD
py.test3 --assert=plain -vv
%files
%doc *.rst
%python3_sitelibdir/*
%changelog
…
Full changelog you can see here
%define oname nulltype
Name: python3-module-%oname
Version: 2.2.11
Release: alt2
Summary: Null values and sentinels like, but not, None
License: Apache-2.0
Group: Development/Python3
BuildArch: noarch
Url: https://pypi.python.org/pypi/nulltype
Source: %oname-%version.tar
BuildRequires(pre): rpm-build-python3
BuildRequires: python3-devel python3-module-setuptools
BuildRequires: python3-module-tox python3-module-virtualenv
BuildRequires: python3-module-pytest
%description
Helps define "null" values and sentinels parallel to, but different
from, None.
None is a great sentinel value and a classic implementation of the null
object pattern.
But there are times that you need more than one nullish value to
represent different aspects of emptiness. "Nothing there" is logically
different from "undefined," "prohibited," "end of data" and other kinds
of null.
The core function of nulltype is representing emptiness and falsity in a
way that doesn't overload None (or False, 0, {}, [], "", or any of the
other possible "there's nothing here!" values). It helps create
designated identifiers with specific meanings such as Passthrough,
Prohibited, and Undefined.
%prep
%setup -n %oname-%version
%build
%python3_build_debug
%install
%python3_install
%check
export PYTHONPATH=$PWD
py.test3 --assert=plain -vv
%files
%doc *.rst
%python3_sitelibdir/*
%changelog
…
Full changelog you can see here