-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
279 additions
and
121 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
distutils-pytest | ||
git-props | ||
pathlib ; python_version == '2.7' | ||
pytest >=3.7.0 | ||
setuptools_scm | ||
setuptools |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: Publish | ||
on: | ||
release: | ||
types: | ||
- published | ||
jobs: | ||
PyPI: | ||
name: publish release to PyPI | ||
runs-on: ubuntu-latest | ||
environment: release | ||
permissions: | ||
id-token: write | ||
env: | ||
SDIST: pytest-dependency-${{ github.event.release.tag_name }}.tar.gz | ||
steps: | ||
- name: Fetch assets | ||
uses: cb80/dlassets@latest | ||
with: | ||
tag: ${{ github.event.release.tag_name }} | ||
to: assets | ||
- name: Check assets | ||
run: | | ||
ls -la assets | ||
- name: Copy distfile to dist directory | ||
run: | | ||
mkdir -p dist | ||
cp -p assets/$SDIST dist | ||
- name: Upload distfile to PyPI | ||
uses: pypa/gh-action-pypi-publish@release/v1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,6 @@ | ||
*.pyc | ||
*~ | ||
.cache/ | ||
__pycache__/ | ||
/.version | ||
/.env | ||
/MANIFEST | ||
/_meta.py | ||
/build/ | ||
/dist/ | ||
/doc/doctest/ | ||
/doc/doctrees/ | ||
/doc/html/ | ||
/doc/latex/ | ||
/doc/linkcheck/ | ||
/pytest_dependency.egg-info/ | ||
/python2_6.patch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
/devhelp/ | ||
/dirhtml/ | ||
/doctrees/ | ||
/epub/ | ||
/gettext/ | ||
/html/ | ||
/htmlhelp/ | ||
/json/ | ||
/latex/ | ||
/linkcheck/ | ||
/man/ | ||
/pickle/ | ||
/pseudoxml/ | ||
/qthelp/ | ||
/singlehtml/ | ||
/texinfo/ | ||
/text/ | ||
/xml/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
%bcond_without tests | ||
%global distname pytest-dependency | ||
|
||
%if 0%{?sle_version} >= 150500 | ||
%global pythons python3 python311 | ||
%else | ||
%{?!python_module:%define python_module() python3-%{**}} | ||
%define skip_python2 1 | ||
%endif | ||
|
||
Name: python-%{distname} | ||
Version: $version | ||
Release: 0 | ||
Summary: $description | ||
License: Apache-2.0 | ||
URL: $url | ||
Group: Development/Languages/Python | ||
Source: https://github.com/RKrahl/pytest-dependency/releases/download/%{version}/%{distname}-%{version}.tar.gz | ||
BuildRequires: %{python_module base >= 3.4} | ||
BuildRequires: %{python_module setuptools} | ||
BuildRequires: fdupes | ||
BuildRequires: python-rpm-macros | ||
%if %{with tests} | ||
BuildRequires: %{python_module distutils-pytest} | ||
BuildRequires: %{python_module pytest >= 3.7} | ||
%endif | ||
Requires: python-pytest >= 3.7 | ||
BuildArch: noarch | ||
%python_subpackages | ||
|
||
%description | ||
$long_description | ||
|
||
|
||
%prep | ||
%setup -q -n %{distname}-%{version} | ||
|
||
|
||
%build | ||
%python_build | ||
|
||
|
||
%install | ||
%python_install | ||
%fdupes %{buildroot}%{python_sitelib} | ||
|
||
|
||
%if %{with tests} | ||
%check | ||
%python_expand $$python setup.py test | ||
%endif | ||
|
||
|
||
%files %{python_files} | ||
%license LICENSE.txt | ||
%doc README.rst | ||
%{python_sitelib}/* | ||
|
||
|
||
%changelog |
Oops, something went wrong.