python-flit-core/python-flit-core.spec
Benjamin Greiner a7f1ef5645 - Update to Version 3.4
* Python 3.6 or above is now required, both for flit and
    flit_core.
  * Add a --setup-py option to flit build and flit publish,
    and a warning when neither this nor --no-setup-py are
    specified (PR #431). A future version will stop
    generating setup.py files in sdists by default.
  * Add support for standardised editable installs - pip
    install -e - according to PEP 660 (PR #400).
  * Add a --pypirc option for flit publish to specify an
    alternative path to a .pypirc config file describing
    package indexes (PR #434).
  * Fix installing dependencies specified in a [project]
    table (PR #433)
  * Fix building wheels when SOURCE_DATE_EPOCH (see
    Reproducible builds) is set to a date before 1980 (PR
    #448).
  * Switch to using the tomli TOML parser, in common with
    other packaging projects (PR #438). This supports TOML
    version 1.0.
  * Add a document on Bootstrapping (PR #441).
- Release Version 3.3
  * PKG-INFO files in sdists are now generated the same way
    as METADATA in wheels, fixing some issues with sdists
    (PR #410).
  * flit publish now sends SHA-256 hashes, fixing uploads
    to GitLab package repositories (PR #416).
  * The [project] metadata table from PEP 621 is now fully
    supported and documented. Projects using this can now
    specify requires = ["flit_core >=3.2,<4"] in the

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-flit-core?expand=0&rev=15
2021-10-15 17:40:12 +00:00

77 lines
2.0 KiB
RPMSpec

#
# spec file
#
# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%global flavor @BUILD_FLAVOR@%{nil}
%if "%{flavor}" == "test"
%define psuffix -test
%bcond_without test
%else
%define psuffix %{nil}
%bcond_with test
%endif
%{?!python_module:%define python_module() python3-%{**}}
%define skip_python2 1
Name: python-flit-core%{nil}
Version: 3.4.0
Release: 0
Summary: Distribution-building parts of Flit
License: BSD-3-Clause
URL: https://github.com/takluyver/flit
Source: https://files.pythonhosted.org/packages/source/f/flit-core/flit_core-%{version}.tar.gz
BuildRequires: %{python_module pip}
%if %{with test}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module testpath}
BuildRequires: %{python_module tomli}
%endif
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-tomli
BuildArch: noarch
%python_subpackages
%description
Flit is a simple way to put Python packages and modules on PyPI.
%prep
%setup -q -n flit_core-%{version}
%build
%pyproject_wheel
%if !%{with test}
%install
%pyproject_install
%{python_expand rm -r %{buildroot}%{$python_sitelib}/flit_core/tests
%fdupes %{buildroot}%{$python_sitelib}
}
%endif
%if %{with test}
%check
%pytest
%endif
%if !%{with test}
%files %{python_files}
%{python_sitelib}/flit_core
%{python_sitelib}/flit_core-%{version}*-info
%endif
%changelog