ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Andrey Cherepanov <cas@altlinux.org>
To: devel@lists.altlinux.org
Subject: Re: [devel] pyproject.toml and new rpm macroses
Date: Sat, 23 Jul 2022 15:06:11 +0300
Message-ID: <c708bc9a-a335-179e-bbb1-814b9222729b@altlinux.org> (raw)
In-Reply-To: <f63cd2e1-83b3-f4c1-b1ae-55772e7bc712@basealt.ru>

20.07.2022 18:08, Grigory Ustinov пишет:
> 20.06.2022 17:40, Stanislav Levin пишет:
>> Здравствуйте,
>>
>> в сборочном задании 301407 [0] предложены RPM макросы и их реализация 
>> для поддержки сборки и установки современных Python проектов 
>> (setup.py-less).
>>
>> Больше информации на соответствующей wiki странице [1].
>>
>>
>> Замечания и предложения приветствуются.
> Если кому-нибудь удастся собрать пакет с этими макросами, поделитесь 
> примером, пожалуйста. У меня пока что не получается.

https://git.altlinux.org/gears/p/python3-module-jaraco.functools.git?p=python3-module-jaraco.functools.git;a=commitdiff;h=001fa7b164a25f8cbd663fb5c225f8c67accd505

...
-BuildRequires: pip
-BuildRequires: python3-dev python3-module-setuptools_scm
-BuildRequires: python3-module-build
-BuildRequires: python3-module-toml
+BuildRequires: python3-dev
+BuildRequires: python3-module-pyproject-installer
+BuildRequires: python3-module-setuptools_scm
  BuildRequires: python3-module-wheel

  BuildArch: noarch
@@ -34,17 +33,20 @@ Source:  %modulename-%version.tar

  %build
  export SETUPTOOLS_SCM_PRETEND_VERSION=%version
-%__python3 -m build -n
+%pyproject_build

  %install
  export SETUPTOOLS_SCM_PRETEND_VERSION=%version
-pip3 install --root=%buildroot --no-deps dist/*.whl
+%pyproject_install

-- 
Andrey Cherepanov
cas@altlinux.org



      parent reply	other threads:[~2022-07-23 12:06 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-20 14:40 Stanislav Levin
2022-06-20 16:03 ` Grigory Ustinov
2022-06-21 10:54   ` Stanislav Levin
2022-06-21 15:22     ` Vladimir D. Seleznev
2022-06-20 17:52 ` Yuri Sedunov
2022-06-21 12:14 ` Ivan Zakharyaschev
2022-06-23  5:34 ` Michael Shigorin
2022-06-23 14:23 ` Stanislav Levin
2022-06-23 16:08 ` Dmitry V. Levin
2022-06-24 14:05   ` Stanislav Levin
2022-06-29 11:48 ` Stanislav Levin
2022-07-18  8:06 ` Stanislav Levin
2022-07-19 10:21   ` Ivan Zakharyaschev
2022-07-19 10:28     ` Anton Farygin
2022-07-19 10:57     ` Stanislav Levin
2022-07-19 11:09       ` Arseny Maslennikov
2022-07-19 12:30         ` Stanislav Levin
2022-07-19 11:12       ` Ivan Zakharyaschev
2022-07-20  8:00         ` Stanislav Levin
2022-07-20 15:08 ` Grigory Ustinov
2022-07-20 15:15   ` Stanislav Levin
2022-07-20 16:03     ` Grigory Ustinov
2022-07-20 20:13       ` Stanislav Levin
2022-07-20 21:43         ` Grigory Ustinov
2022-07-21  9:12           ` Stanislav Levin
2022-08-11 18:01     ` Vitaly Lipatov
2022-08-11 18:15       ` Yuri Sedunov
2022-08-12  7:22       ` Stanislav Levin
2022-07-23 12:06   ` Andrey Cherepanov [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=c708bc9a-a335-179e-bbb1-814b9222729b@altlinux.org \
    --to=cas@altlinux.org \
    --cc=devel@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git