Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable packit #7

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions .packit.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# See the documentation for more information:
# https://packit.dev/docs/configuration/

specfile_path: python-automate-home.spec

# add or remove files that should be synced
synced_files:
- python-automate-home.spec
- .packit.yaml

# name in upstream package repository or registry (e.g. in PyPI)
upstream_package_name: automate-home
# downstream (Fedora) RPM package name
downstream_package_name: automate-home

upstream_project_url: https://github.com/majamassarini/automate-home


jobs:
- job: copr_build
trigger: pull_request
metadata:
targets: fedora-stable
owner: mmassari
project: automate-home
- job: copr_build
trigger: commit
metadata:
targets: fedora-stable
owner: mmassari
project: automate-home
5 changes: 5 additions & 0 deletions CHANGELOG.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Change Log
----------

Version 0.9.1 Sun Feb 20 2022
- first public release
52 changes: 52 additions & 0 deletions python-automate-home.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
%global pypi_name automate-home

Name: python-%{pypi_name}
Version: 0.9.1
Release: 1%{?dist}
Summary: A python3 library to automate (home) devices

License: MIT

Url: https://github.com/majamassarini/automate-home
Source0: https://github.com/majamassarini/automate-home/archive/%{version}/%{pypi_name}-%{version}.tar.gz

BuildArch: noarch

BuildRequires: python3-devel

%global _description %{expand:
Yet another home automation (iot) project because
a **smart light is more than just on or off**.
}

%description %_description

%package -n python3-%{pypi_name}
Summary: %{summary}
%py_provides python3-%{pypi_name}

%description -n python3-%{pypi_name} %_description

%prep
%autosetup -n %{pypi_name}-%{version} -p1

%generate_buildrequires
%pyproject_buildrequires -r

%build
%pyproject_wheel

%install
%pyproject_install

%check
%{python3} -m unittest

%files -n python3-%{pypi_name}
%license COPYING
%doc README.md
%{python3_sitelib}/automate_home-%{version}.dist-info/
%{python3_sitelib}/automate_home

%changelog
%autochangelog