Skip to content

Commit

Permalink
Update python-dephell_changelogs to rev 4 via SR 787828
Browse files Browse the repository at this point in the history
https://build.opensuse.org/request/show/787828
by user mcepl + dimstar_suse
- Add macro %dephell_genspec to generate setup.py (temporarily switched of because of gh#dephell/dephell_changelogs#5)
  • Loading branch information
bmwiedemann committed Mar 25, 2020
1 parent 6f56500 commit 4e11bca
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Mar 23 18:13:44 UTC 2020 - Matej Cepl <[email protected]>

- Add macro %dephell_genspec to generate setup.py

-------------------------------------------------------------------
Tue Mar 10 12:29:31 UTC 2020 - Tomáš Chvátal <[email protected]>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Summary: Pathlib for changelogss
License: MIT
URL: https://github.com/dephell/dephell_changelogs
Source0: https://github.com/dephell/%{modname}/archive/v.%{version}.tar.gz#/%{modname}-%{version}.tar.gz
# Temporary measure, until dephell in %%prep actually works
# Temporary measure, until dephell in %%prep actually works gh#dephell/dephell_changelogs#5
Source1: setup.py
# PATCH-FIX-UPSTREAM add_network_markers.patch gh#dephell/dephell_changelogs#4 [email protected]
# add markers for test cases requiring network connection
Expand All @@ -37,10 +37,12 @@ BuildRequires: %{python_module requests}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-dephell-rpm-macros
BuildRequires: python-rpm-macros
Requires: python-attrs
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module pytest-xdist}
BuildRequires: %{python_module pytest}
# /SECTION
%python_subpackages
Expand All @@ -50,8 +52,10 @@ Dephell library providing pathlib for changelogss.

%prep
%autosetup -p1 -n %{modname}-v.%{version}
# Doesn’t work ATM
# dephell deps convert --traceback --level=DEBUG --from pyproject.toml --to setup.py

%define dephell_loglevel DEBUG
# Temporarily switched off because of gh#dephell/dephell_changelogs#5
# %%dephell_gensetup
cp -p %{SOURCE1} .

%build
Expand Down
13 changes: 8 additions & 5 deletions packages/p/python-dephell_changelogs/setup.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

# -*- coding: utf-8 -*-

# DO NOT EDIT THIS FILE!
Expand All @@ -9,6 +10,7 @@
except ImportError:
from distutils.core import setup


import os.path

readme = ''
Expand All @@ -18,6 +20,7 @@
with open(readme_path, 'rb') as stream:
readme = stream.read().decode('utf8')


setup(
long_description=readme,
name='dephell_changelogs',
Expand All @@ -28,15 +31,15 @@
author='Gram (@orsinium)',
author_email='[email protected]',
classifiers=[
'Development Status :: 5 - Production/Stable', 'Environment :: Console',
'Intended Audience :: Developers',
'Development Status :: 5 - Production/Stable',
'Environment :: Console', 'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3', 'Programming Language :: Python',
'Topic :: Software Development :: Libraries :: Python Modules'
],
'Programming Language :: Python :: 3',
'Programming Language :: Python',
'Topic :: Software Development :: Libraries :: Python Modules'],
packages=['dephell_changelogs'],
package_dir={"": "."},
package_data={},
Expand Down

0 comments on commit 4e11bca

Please sign in to comment.