summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* drop samefile and switch to declarative metadataRonny Pfannschmidt2020-05-212-218/+1
| | | | Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
* Allow guess_next_simple_semver to ignore unneeded partschrisjbillington2020-05-111-10/+6
| | | | | | | | | | | | | | | | | guess_next_simple_semver previously would error on trying to convert the 'rc0' part of a version such as '1.2.0rc1' to an int, even if it was told to retain only the first two parts. (It would actually only error on Python 2, where the conversion to int was non-lazy) Now if it's told to retain only the first two parts, it won't try to convert anything after the first two dots to an int, so it won't error. The outcome is the same as if the bit after the second dot was a valid int (which was going to be ignored anyway, we just now don't error on it). This is useful for the release-branch-semver scheme, which wants to be able to find the next minor version even if the most recent version is a release candidate.
* Add release-branch-semver schemechrisjbillington2020-05-111-2/+32
| | | | | | | | | This is a scheme that assumes that the upcoming release for most branches is a minor release, and that only for release branches (those whose branch names parse as a version number according to current configuration) is the upcoming version a patch release. Better document the differences between the schemes in README.rst
* closes #312 - document interaction with enterprise distrosfix-312-document-enterprise-distrosRonny Pfannschmidt2020-05-021-1/+2
|
* Merge pull request #410 from anntzer/parentdir_prefix_versionRonny Pfannschmidt2020-05-023-1/+11
|\ | | | | Allow getting the version from the parent directory suffix.
| * Allow getting the version from the parent directory suffix.Antony Lee2020-05-013-1/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a `parentdir_prefix_version` config parameter which allows lets setuptools_scm get a version string from the name of the parent directory: if `parentdir_prefix_version = "foo-"` and the parent directory is named `foo-v12.34`, then the version is 12.34. This is only active if the parameter is set (it defaults to unset, i.e. the feature is opt-in), if getting the version from the SCM failed, *and* there's no metadata already present. However, this has higher priority than `fallback_version` (which remains the last-resort fallback). This feature is intended to support the tarballs that GitHub automatically creates for all releases, which have no metadata but follow the correct naming scheme for the feature to work. This feature is directly inspired from versioneer's `parentdir_prefix` setting.
* | add python testsworkflowsRonny Pfannschmidt2020-05-011-0/+3
|/ | | | | | | | | | | | | | | | | | | | | | | | | | port testsuite to pathlib, and try to resolve windows short paths trace git toplevel mismatch (observed on win32 name shortening) exclude python2 on windows remove the appveyor config, its broken drop most travis envs that we have in github workflows now add actions for creating egg artifacts/wheels/sdists WIP: experiment with act WIP: fix workflow typo WIP: add missed runs-on fix typoed excludes fixup: upload actuall wheel/sdist in the build step style fixes for the actions config
* Merge pull request #408 from con-f-use/masterRonny Pfannschmidt2020-05-012-2/+19
|\ | | | | Change ScmVersion.time to UTC
| * Make black happycon-f-use2020-03-181-0/+5
| |
| * Fix file locationscon-f-use2020-03-182-2/+14
| |
* | Select git tags based on presence of numbers, rather than dots.Diego Elio Pettenò2020-03-251-1/+1
| | | | | | | | | | | | | | | | | | | | The default `git describe` command had an undocumented `--match *.*` in it, intended to skip over tags that may represent human-readable checkpoints. Unfortunately this means it would be ignoring single-component versions. Instead look for presence of digits in the tag, it's still a heuristic, but it should cover all previous cases, and fix single component versions.
* | Extract version correctly from tags with a single digit.Diego Elio Pettenò2020-03-251-1/+1
|/ | | | | | | | | This makes sure that even if there's only a single group of digits in the version, it's correctly extracted, and any suffix ignored. Also add tests for those particular cases to avoid regressions. See Issue #411 for debugging details.
* no-local-version scheme and improved documentationcon-f-use2020-02-071-0/+4
|
* Close subprocess files descriptorTheTripleV2020-01-251-0/+1
|
* terminate process to cleanupgesslerpd2020-01-201-3/+3
|
* Fix #399gesslerpd2020-01-201-2/+2
|
* Merge pull request #396 from pypa/revert-346-first-parentRonny Pfannschmidt2020-01-191-1/+1
|\ | | | | Revert "git: DEFAULT_DESCRIBE: add --first-parent"
| * Revert "git: DEFAULT_DESCRIBE: add --first-parent"revert-346-first-parentRonny Pfannschmidt2020-01-191-1/+1
| |
* | fix #395: correctly transfer tag regex in the Configuration constructorfix-395-pass-in-tag-regexRonny Pfannschmidt2020-01-191-1/+1
|/
* Merge pull request #377 from pypa/fix-374Ronny Pfannschmidt2020-01-183-46/+49
|\ | | | | fix #374 - initialize configuration for toml integration
| * unify configruation initialization and configuration defaultsfix-374Ronny Pfannschmidt2019-11-283-47/+41
| |
| * fix #374 - initialize configuration for toml integrationRonny Pfannschmidt2019-11-281-4/+13
| |
* | fix #381 - clean out env vars from the git hook systemRonny Pfannschmidt2019-12-131-2/+23
|/
* update pre-commit setup to modern practices and ensure flake8 is in line as ↵Ronny Pfannschmidt2019-11-254-16/+19
| | | | well (#369)
* Remove 'enabled' boolean and rely on presence of 'tool.setuptools_scm' ↵Jason R. Coombs2019-11-244-15/+20
| | | | section to enable the functionality.
* Avoid file-not-found errors when pyproject.toml isn't presentJason R. Coombs2019-11-241-0/+2
|
* setuptools_scm is disabled by defaultJason R. Coombs2019-11-241-0/+1
|
* Fade to blackJason R. Coombs2019-11-241-3/+3
|
* Move section to `tool:` namespaceJason R. Coombs2019-11-231-1/+1
| | | Co-Authored-By: Ronny Pfannschmidt <opensource@ronnypfannschmidt.de>
* Illustrate how reading the config from a file might operate.feature/declarative-configJason R. Coombs2019-10-211-2/+6
|
* Illustrate how setuptools_scm could adapt to a ↵Jason R. Coombs2019-10-183-5/+28
| | | | 'setuptools.finalize_distribution_options' entry point.
* git: DEFAULT_DESCRIBE: add --first-parentDaniel Hahler2019-07-181-1/+1
| | | | This will ignore tags from merged release branches.
* trigger subprocess cleanup in case git archive interpretation went wrongRonny Pfannschmidt2019-05-261-11/+15
|
* fix #335 - use signature and add py38 to the matrixRonny Pfannschmidt2019-05-111-1/+2
|
* Fix styling.Ionel Cristian Mărieș2019-05-101-1/+3
|
* Don't pass entrypoing name around anymore and allow passing fallback_root to ↵Ionel Cristian Mărieș2019-05-102-12/+17
| | | | get_version.
* Use a different root for fallbacks. Remove old hack that merely checked ↵Ionel Cristian Mărieș2019-05-103-16/+16
| | | | entrypoint existence (and not if results are valid). Ref #333.
* Allow setting a fallback version in case everything else fails.Antony Lee2019-03-033-0/+9
|
* Add option git_describe_commandLuciano Bello2018-10-283-1/+7
| | | | | | | The option git_describe_command is added to allow the user to manipulate how `git describe` is called. Fixes #303 Fixes #283
* fix pre-commit issuesRonny Pfannschmidt2018-10-271-2/+4
|
* pass trough config everywhereRonny Pfannschmidt2018-08-084-22/+32
|
* remove extras from ScmVersion reprRonny Pfannschmidt2018-08-081-2/+1
|
* add missing config arg to hacks hooksRonny Pfannschmidt2018-08-081-2/+2
|
* repare changelog and begin warnings crackdownRonny Pfannschmidt2018-08-082-2/+12
|
* Merge pull request #299 from RonnyPfannschmidt/fix-298Ronny Pfannschmidt2018-08-081-7/+20
|\ | | | | Fix 298 - handle no commits for file listing
| * finalize error handling for git file listingRonny Pfannschmidt2018-08-081-0/+1
| |
| * turn the archive usage error into a logged exceptionRonny Pfannschmidt2018-08-081-7/+19
| |
* | fix #297 - correct the invocation in version_from_scmRonny Pfannschmidt2018-08-081-1/+7
|/
* fix #292 - support for uppercase leading v character in tag version ↵Ronny Pfannschmidt2018-07-301-1/+1
| | | | extraction regex
* introduce travis jobs and configure egg builds them (#288)v3.0.3Ronny Pfannschmidt2018-07-242-1/+4
|