From 5fc70cd6e45d3bb9aa02c301a75b68cb1c7e75a4 Mon Sep 17 00:00:00 2001 From: Nils Philippsen Date: Aug 19 2021 15:58:05 +0000 Subject: Specify which files should be distributed Primarily, don't ship test_data/ which contains large tarballs. It's sufficient if these tests are run from a cloned git repository. This adds etuptools-scm as a build dependency. Signed-off-by: Nils Philippsen --- diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 0000000..9ca4a89 --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1,3 @@ +exclude .zuul.yaml +prune ci +prune test_data diff --git a/mirrors-countme.spec b/mirrors-countme.spec index b214ee0..eb0fb0f 100644 --- a/mirrors-countme.spec +++ b/mirrors-countme.spec @@ -27,7 +27,9 @@ system arch, etc.} # This section defines the python3-mirrors-countme subpackage. %package -n python3-%{srcname} Summary: %{summary} -BuildRequires: python3-devel python3-setuptools +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-setuptools_scm #Recommends: python3-%%{srcname}+fancy_progress # NOTE: in F33+ %%python_extras_subpkg can be used to automatically generate # a 'python3-mirrors-countme+fancy_progress' subpackage that would pull in the diff --git a/pyproject.toml b/pyproject.toml index 2096b4c..27e118f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,2 +1,4 @@ +[build-system] + requires = ["setuptools", "setuptools-scm", "wheel"] [tool.black] line_length = 100