Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:jayvdb:branches:devel:languages:python:misc
python-hgdistver
python-hgdistver.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File python-hgdistver.spec of Package python-hgdistver
# # spec file for package python-hgdistver # # Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany. # # 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 http://bugs.opensuse.org/ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-hgdistver Version: 0.25 Release: 0 License: MIT Summary: Utility lib to generate python package version infos from mercurial tags Url: http://bitbucket.org/RonnyPfannschmidt/hgdistver/ Group: Development/Languages/Python Source: https://files.pythonhosted.org/packages/source/h/hgdistver/hgdistver-%{version}.tar.gz BuildRequires: python-rpm-macros BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildArch: noarch %python_subpackages %description Utility to generate python package version infos from mercurial/git tags. This module is a simple drop-in to support setup.py in mercurial based projects. Alternatively it can be a setup time requirement. Its supposed to generate version numbers from mercurials meta-data. It tries to use the current tag and falls back to the next reachable tagged ancestor and using the distance to it as .post marker. It uses 4 strategies to archive its task: 1. try to directly ask hg for the tag/distance 2. try to infer it from the `.hg_archival.txt` file 3. try to use the cache file if it exists 4. try to read the version from the 'PKG-INFO' file sdists contain (this is a nasty abuse) It has been replaced by setuptools_scm for most projects. %prep %setup -q -n hgdistver-%{version} %build %python_build %install %python_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check %pytest %files %{python_files} %doc CHANGELOG.rst README.rst %license LICENSE %{python_sitelib}/* %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor