Skip to content

Commit

Permalink
fix(packaging): use pyproject-rpm-macros (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoceppi authored Mar 16, 2023
1 parent 7dc7fac commit 3885b89
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
- name: Install Poetry
uses: snok/install-poetry@v1
with:
version: 1.3.2
version: 1.4.0
virtualenvs-create: true
virtualenvs-in-project: true
- run: |
Expand Down
7 changes: 4 additions & 3 deletions pkg/rpm.spec
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,11 @@ Source0: https://pypi.io/packages/source/y/%{modname}/%{modname}-%{versio

BuildArch: noarch

BuildRequires: python3-devel
BuildRequires: pyproject-rpm-macros
BuildRequires: poetry

%generate_buildrequires
%pyproject_buildrequires

%?python_enable_dependency_generator

Expand All @@ -28,10 +29,10 @@ Yet another first time installer
%autosetup -n %{modname}-%{version}

%build
%py3_build
%pyproject_wheel

%install
%py3_install
%pyproject_install

%check
echo "OKAY"
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,5 @@ pytest-cov = "^4.0.0"
pytest-asyncio = "^0.20.3"

[build-system]
requires = ["poetry-core"]
requires = ["poetry-core>=1.2.0"]
build-backend = "poetry.core.masonry.api"

0 comments on commit 3885b89

Please sign in to comment.