Compare commits
6 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
806ff3f5b8 | ||
|
|
0cb480e776 | ||
|
|
5fab142cd3 |
||
|
|
b86848b6a9 | ||
|
|
e850e30577 | ||
|
|
8c9b727f6e |
2 changed files with 50 additions and 17 deletions
37
58a4b15852980a231a08e5a0d45e71f7fa47aa02.patch
Normal file
37
58a4b15852980a231a08e5a0d45e71f7fa47aa02.patch
Normal file
|
|
@ -0,0 +1,37 @@
|
||||||
|
From 58a4b15852980a231a08e5a0d45e71f7fa47aa02 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Artem Polishchuk <tim77@users.noreply.github.com>
|
||||||
|
Date: Mon, 25 Jan 2021 23:36:00 +0200
|
||||||
|
Subject: [PATCH] fix: Add LICENSE file
|
||||||
|
|
||||||
|
---
|
||||||
|
LICENSE | 21 +++++++++++++++++++++
|
||||||
|
1 file changed, 21 insertions(+)
|
||||||
|
create mode 100644 LICENSE
|
||||||
|
|
||||||
|
diff --git a/LICENSE b/LICENSE
|
||||||
|
new file mode 100644
|
||||||
|
index 0000000..1dd5daf
|
||||||
|
--- /dev/null
|
||||||
|
+++ b/LICENSE
|
||||||
|
@@ -0,0 +1,21 @@
|
||||||
|
+MIT License
|
||||||
|
+
|
||||||
|
+Copyright (c) 2021 gevent-eventemitter developers
|
||||||
|
+
|
||||||
|
+Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
+of this software and associated documentation files (the "Software"), to deal
|
||||||
|
+in the Software without restriction, including without limitation the rights
|
||||||
|
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
+copies of the Software, and to permit persons to whom the Software is
|
||||||
|
+furnished to do so, subject to the following conditions:
|
||||||
|
+
|
||||||
|
+The above copyright notice and this permission notice shall be included in all
|
||||||
|
+copies or substantial portions of the Software.
|
||||||
|
+
|
||||||
|
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
+SOFTWARE.
|
||||||
|
|
@ -1,6 +1,4 @@
|
||||||
%global pypi_name gevent-eventemitter
|
%global pypi_name gevent-eventemitter
|
||||||
%global modname eventemitter
|
|
||||||
%global eggname gevent_%{modname}
|
|
||||||
|
|
||||||
Name: python-%{pypi_name}
|
Name: python-%{pypi_name}
|
||||||
Version: 2.1
|
Version: 2.1
|
||||||
|
|
@ -10,18 +8,14 @@ BuildArch: noarch
|
||||||
|
|
||||||
# https://github.com/rossengeorgiev/gevent-eventemitter/pull/3
|
# https://github.com/rossengeorgiev/gevent-eventemitter/pull/3
|
||||||
License: MIT
|
License: MIT
|
||||||
|
|
||||||
URL: https://github.com/rossengeorgiev/gevent-eventemitter
|
URL: https://github.com/rossengeorgiev/gevent-eventemitter
|
||||||
|
|
||||||
# Tests works only woth GitHub sources
|
# Tests works only woth GitHub sources
|
||||||
Source0: %{url}/archive/v%{version}/%{pypi_name}-%{version}.tar.gz
|
Source: %{url}/archive/v%{version}/%{pypi_name}-%{version}.tar.gz
|
||||||
|
# Add LICENSE file
|
||||||
|
Patch: %{url}/pull/3/commits/58a4b15852980a231a08e5a0d45e71f7fa47aa02.patch
|
||||||
|
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel
|
||||||
BuildRequires: python3dist(setuptools)
|
BuildRequires: python3dist(pytest)
|
||||||
BuildRequires: python3dist(coverage) >= 4.0.3
|
|
||||||
BuildRequires: python3dist(gevent) >= 1.3
|
|
||||||
BuildRequires: python3dist(pytest-cov) >= 2.5.1
|
|
||||||
BuildRequires: python3dist(pytest) >= 3.2.1
|
|
||||||
|
|
||||||
%global _description %{expand:
|
%global _description %{expand:
|
||||||
This module implements EventEmitter with gevent.}
|
This module implements EventEmitter with gevent.}
|
||||||
|
|
@ -38,25 +32,27 @@ Summary: %{summary}
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n %{pypi_name}-%{version} -p1
|
%autosetup -n %{pypi_name}-%{version} -p1
|
||||||
|
%generate_buildrequires
|
||||||
|
%pyproject_buildrequires
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%py3_build
|
%pyproject_wheel
|
||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%py3_install
|
%pyproject_install
|
||||||
|
%pyproject_save_files -l eventemitter
|
||||||
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%{python3} -m pytest -v
|
%pyproject_check_import
|
||||||
|
%pytest
|
||||||
|
|
||||||
|
|
||||||
%files -n python3-%{pypi_name}
|
%files -n python3-%{pypi_name} -f %{pyproject_files}
|
||||||
%dnl %license LICENSE
|
|
||||||
%doc README.rst
|
%doc README.rst
|
||||||
%{python3_sitelib}/%{eggname}-%{version}-*.egg-info
|
%license LICENSE
|
||||||
%{python3_sitelib}/%{modname}/
|
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue