mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 18:45:54 +02:00
- Update from 3.2.0 (Jan 2019) to 6.3.2 (Sep 2021) - Update of rootfile - Changelog 6.3.2 * fix #629: correctly convert Version data in tags_to_version parser to avoid errors 6.3.1 * fix #625: restore tomli in install_requires after the regression changes in took it out and some users never added it even tho they have pyproject.toml files 6.3.0 .. warning:: This release explicitly warns on unsupported setuptools. This unfortunately has to happen as the legacy ``setup_requires`` mechanism incorrectly configures the setuptools working-set when a more recent setuptools version than available is required. As all releases of setuptools are affected as the historic mechanism for ensuring a working setuptools setup was shipping a ``ez_setup`` file next to ``setup.py``, which would install the required version of setuptools. This mechanism has long since been deprecated and removed as most people haven't been using it * fix #612: depend on packaging to ensure version parsing parts * fix #611: correct the typo that hid away the toml extra and add it in ``setup.py`` as well * fix #615: restore support for the git_archive plugin which doesn't pass over the config * restore the ability to run on old setuptools while to avoid breaking pipelines v6.2.0 * fix #608: resolve tomli dependency issue by making it a hard dependency as all intended/supported install options use pip/wheel this is only a feature release * ensure python 3.10 works v6.1.1 * fix #605: completely disallow bdist_egg - modern enough setuptools>=45 uses pip * fix #606: re-integrate and harden toml parsing * fix #597: harden and expand support for figuring the current distribution name from `pyproject.toml` (`project.name` or `tool.setuptools_scm.dist_name`) section or `setup.cfg` (`metadata.name`) v6.1.0 * fix #587: don't fail file finders when distribution is not given * fix #524: new parameters ``normalize`` and ``version_cls`` to customize the version normalization class. * fix #585: switch from toml to tomli for toml 1.0 support * fix #591: allow to opt in for searching parent directories in the api * fix #589: handle yaml encoding using the expected defaults * fix #575: recommend storing the version_module inside of ``mypkg/_version.py`` * fix #571: accept branches starting with ``v`` as release branches * fix #557: Use ``packaging.version`` for ``version_tuple`` * fix #544: enhance errors on unsupported python/setuptools versions v6.0.1 * fix #537: drop node_date on old git to avoid errors on missing %cI v6.0.0 * fix #517: drop dead python support >3.6 required * drop dead setuptools support > 45 required (can install wheels) * drop egg building (use wheels) * add git node_date metadata to get the commit time-stamp of HEAD * allow version schemes to be priority ordered lists of version schemes * support for calendar versioning (calver) by date v5.0.2 * fix #415: use git for matching prefixes to support the windows situation v5.0.1 * fix #509: support ``SETUPTOOLS_SCM_PRETEND_VERSION_FOR_${DISTRIBUTION_NAME}`` for ``pyproject.toml`` v5.0.0 Breaking changes: * fix #339: strict errors on missing scms when parsing a scm dir to avoid false version lookups v5.0.2 * fix #415: use git for matching prefixes to support the windows situation v5.0.1 * fix #509: support ``SETUPTOOLS_SCM_PRETEND_VERSION_FOR_${DISTRIBUTION_NAME}`` for ``pyproject.toml`` v5.0.0 Breaking changes: * fix #339: strict errors on missing scms when parsing a scm dir to avoid false version lookups * fix #337: if relative_to is a directory instead of a file, consider it as direct target instead of the containing folder and print a warning Bugfixes: * fix #352: add support for generally ignoring specific vcs roots * fix #471: better error for version bump failing on complex but accepted tag * fix #479: raise indicative error when tags carry non-parsable information * Add `no-guess-dev` which does no next version guessing, just adds `.post1.devN` in case there are new commits after the tag * add python3.9 * enhance documentation * consider SOURCE_DATE_EPOCH for versioning * add a version_tuple to write_to templates * fix #321: add support for the ``SETUPTOOLS_SCM_PRETEND_VERSION_FOR_${DISTRIBUTION_NAME}`` env var to target the pretend key * fix #142: clearly list supported scm * fix #213: better error message for non-zero dev numbers in tags * fix #356: add git branch to version on describe failure v4.1.2 * disallow git tags without dots by default again - #449 v4.1.1 * drop jaraco.windows from pyproject.toml, allows for wheel builds on python2 v4.1.0 * include python 3.9 via the deadsnakes action * return release_branch_semver scheme (it got dropped in a bad rebase) * undo the devendoring of the samefile backport for python2.7 on windows * re-enable the building of universal wheels * fix handling of missing git/hg on python2.7 (python 3 exceptions where used) * correct the tox flake8 invocation * trigger builds on tags again v4.0.0 * Add ``parentdir_prefix_version`` to support installs from GitHub release tarballs. * use Coordinated Universal Time (UTC) * switch to github actions for ci * fix documentation for ``tag_regex`` and add support for single digit versions * document handling of enterprise distros with unsupported setuptools versions #312 * switch to declarative metadata * drop the internal copy of samefile and use a dependency on jaraco.windows on legacy systems * select git tags based on the presence of numbers instead of dots * enable getting a version form a parent folder prefix * add release-branch-semver version scheme * make global configuration available to version metadata * drop official support for python 3.4 v3.5.0 * add ``no-local-version`` local scheme and improve documentation for schemes v3.4.4 * fix #403: also sort out resource warnings when dealing with git file finding v3.4.3 * fix #399: ensure the git file finder terminates subprocess after reading archive v3.4.2 * fix #395: correctly transfer tag regex in the Configuration constructor * rollback --first-parent for git describe as it turns out to be a regression for some users v3.4.1 * pull in #377 to fix #374: correctly set up the default version scheme for pyproject usage. this bugfix got missed when ruushing the release. v3.4.0 * fix #181 - add support for projects built under setuptools declarative config by way of the setuptools.finalize_distribution_options hook in Setuptools 42. * fix #305 - ensure the git file finder closes filedescriptors even when errors happen * fix #381 - clean out env vars from the git hook system to ensure correct function from within * modernize docs wrt importlib.metadata *edited* * use --first-parent for git describe v3.3.3 * add eggs for python3.7 and 3.8 to the deploy v3.3.2 * fix #335 - fix python3.8 support and add builds for up to python3.8 v3.3.1 * fix #333 (regression from #198) - use a specific fallback root when calling fallbacks. Remove old hack that resets the root when fallback entrypoints are present. v3.3.0 this bugfix got missed when ruushing the release. v3.4.0 * fix #181 - add support for projects built under setuptools declarative config by way of the setuptools.finalize_distribution_options hook in Setuptools 42. * fix #305 - ensure the git file finder closes filedescriptors even when errors happen * fix #381 - clean out env vars from the git hook system to ensure correct function from within * modernize docs wrt importlib.metadata *edited* * use --first-parent for git describe v3.3.3 * add eggs for python3.7 and 3.8 to the deploy v3.3.2 * fix #335 - fix python3.8 support and add builds for up to python3.8 v3.3.1 * fix #333 (regression from #198) - use a specific fallback root when calling fallbacks. Remove old hack that resets the root when fallback entrypoints are present. v3.3.0 * fix #198 by adding the ``fallback_version`` option, which sets the version to be used when everything else fails. Signed-off-by: Adolf Belka <adolf.belka@ipfire.org> Reviewed-by: Peter Müller <peter.mueller@ipfire.org>
84 lines
3.1 KiB
Plaintext
84 lines
3.1 KiB
Plaintext
###############################################################################
|
|
# #
|
|
# IPFire.org - A linux based firewall #
|
|
# Copyright (C) 2007-2018 IPFire Team <info@ipfire.org> #
|
|
# #
|
|
# This program is free software: you can redistribute it and/or modify #
|
|
# it under the terms of the GNU General Public License as published by #
|
|
# the Free Software Foundation, either version 3 of the License, or #
|
|
# (at your option) any later version. #
|
|
# #
|
|
# This program is distributed in the hope that it will be useful, #
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of #
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
|
|
# GNU General Public License for more details. #
|
|
# #
|
|
# You should have received a copy of the GNU General Public License #
|
|
# along with this program. If not, see <http://www.gnu.org/licenses/>. #
|
|
# #
|
|
###############################################################################
|
|
|
|
###############################################################################
|
|
# Definitions
|
|
###############################################################################
|
|
|
|
include Config
|
|
|
|
VER = 6.3.2
|
|
|
|
THISAPP = setuptools_scm-$(VER)
|
|
DL_FILE = $(THISAPP).tar.gz
|
|
DL_FROM = $(URL_IPFIRE)
|
|
DIR_APP = $(DIR_SRC)/$(THISAPP)
|
|
TARGET = $(DIR_INFO)/$(THISAPP)
|
|
PROG = python3-setuptools-scm
|
|
PAK_VER = 2
|
|
|
|
DEPS =
|
|
|
|
###############################################################################
|
|
# Top-level Rules
|
|
###############################################################################
|
|
|
|
objects = $(DL_FILE)
|
|
|
|
$(DL_FILE) = $(DL_FROM)/$(DL_FILE)
|
|
|
|
$(DL_FILE)_MD5 = 32918d8ac566360c21411e0b3556c695
|
|
|
|
install : $(TARGET)
|
|
|
|
check : $(patsubst %,$(DIR_CHK)/%,$(objects))
|
|
|
|
download :$(patsubst %,$(DIR_DL)/%,$(objects))
|
|
|
|
md5 : $(subst %,%_MD5,$(objects))
|
|
|
|
dist:
|
|
@$(PAK)
|
|
|
|
###############################################################################
|
|
# Downloading, checking, md5sum
|
|
###############################################################################
|
|
|
|
$(patsubst %,$(DIR_CHK)/%,$(objects)) :
|
|
@$(CHECK)
|
|
|
|
$(patsubst %,$(DIR_DL)/%,$(objects)) :
|
|
@$(LOAD)
|
|
|
|
$(subst %,%_MD5,$(objects)) :
|
|
@$(MD5)
|
|
|
|
###############################################################################
|
|
# Installation Details
|
|
###############################################################################
|
|
|
|
$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
|
|
@$(PREBUILD)
|
|
@rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE)
|
|
cd $(DIR_APP) && python3 setup.py build
|
|
cd $(DIR_APP) && python3 setup.py install --root=/
|
|
@rm -rf $(DIR_APP)
|
|
@$(POSTBUILD)
|