copr-extras-offline/python-matrix-common/python-matrix-common.spec

59 lines
1.8 KiB
RPMSpec
Raw Normal View History

2022-01-18 22:42:07 +00:00
# Created by pyp2rpm-3.3.7
2022-01-18 23:12:31 +00:00
%global pypi_name matrix_common
2022-01-18 22:42:07 +00:00
2022-01-18 23:17:56 +00:00
Name: python-matrix-common
2022-01-18 23:12:31 +00:00
Version: 1.0.0
2022-01-18 22:42:07 +00:00
Release: 1%{?dist}
Summary: Common utilities for Synapse, Sydent and Sygnal
License: None
URL: https://github.com/matrix-org/matrix-python-common
2022-01-18 23:12:31 +00:00
Source0: %{pypi_source}
2022-01-18 22:42:07 +00:00
BuildArch: noarch
BuildRequires: python3-devel
2022-01-18 23:12:31 +00:00
BuildRequires: python3dist(wheel)
2022-01-18 22:42:07 +00:00
%description
matrix-python-commonCommon utilities for Synapse, Sydent and Sygnal.
Installationshell pip install matrix-common Usageimport matrix_common
DevelopmentIn a virtual environment with pip 21.1, runpip install -e .[dev]
To run the unit tests, you can either use:tox -e pyortrial tests To run the
linters and mypy type checker, use ./scripts-dev/lint.sh. ReleasingThe exact
steps for releasing will...
2022-01-18 23:17:56 +00:00
%package -n python3-matrix-common
2022-01-18 22:42:07 +00:00
Summary: %{summary}
2022-01-18 23:17:56 +00:00
%{?python_provide:%python_provide python3-matrix-common}
2022-01-18 22:42:07 +00:00
Requires: python3dist(attrs)
2022-01-18 23:17:56 +00:00
%description -n python3-matrix-common
2022-01-18 22:42:07 +00:00
matrix-python-commonCommon utilities for Synapse, Sydent and Sygnal.
Installationshell pip install matrix-common Usageimport matrix_common
DevelopmentIn a virtual environment with pip 21.1, runpip install -e .[dev]
To run the unit tests, you can either use:tox -e pyortrial tests To run the
linters and mypy type checker, use ./scripts-dev/lint.sh. ReleasingThe exact
steps for releasing will...
%prep
2022-01-18 23:12:31 +00:00
%autosetup -n %{pypi_name}-%{version}
%generate_buildrequires
%pyproject_buildrequires
2022-01-18 22:42:07 +00:00
%build
2022-01-18 23:12:31 +00:00
%pyproject_wheel
2022-01-18 22:42:07 +00:00
%install
2022-01-18 23:12:31 +00:00
%pyproject_install
%pyproject_save_files matrix_common
2022-01-18 22:42:07 +00:00
2022-01-18 23:17:56 +00:00
%files -n python3-matrix-common -f %{pyproject_files}
2022-01-18 22:42:07 +00:00
%license LICENSE
%doc README.md
%changelog
* Tue Jan 18 2022 Alex Manning <mail@alex-m.co.uk> - 1.0.0-1
- Initial package.