summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | | move version type validation to version classRonny Pfannschmidt2023-01-183-44/+42
| | | | |
| * | | | move entrypoints helpers to the belonging moduleRonny Pfannschmidt2023-01-182-58/+61
| | | | |
| * | | | move private helpers to a private modueRonny Pfannschmidt2023-01-183-67/+82
| | | | |
| * | | | scmversion: stricter typing for tagRonny Pfannschmidt2023-01-171-1/+3
| | | | |
| * | | | Version class: turn into dataclassRonny Pfannschmidt2023-01-171-41/+24
| | | | |
| * | | | version: use precompiled regex for date_ver_matchRonny Pfannschmidt2023-01-171-8/+6
| | | | |
| * | | | typing: consolidate version schemes typesRonny Pfannschmidt2023-01-172-10/+6
| | | | |
* | | | | [pre-commit.ci] auto fixes from pre-commit.com hookspre-commit-ci[bot]2023-02-101-1/+3
| | | | | | | | | | | | | | | | | | | | for more information, see https://pre-commit.ci
* | | | | add example, split get into new functionSpencer Chang2023-02-101-11/+11
| | | | |
* | | | | use importlib_metadata.EntryPoint to try and execute qualified function pathSpencer Chang2023-02-101-1/+11
|/ / / /
* | | | update pre-commitRonny Pfannschmidt2023-01-071-2/+2
| | | |
* | | | Replace `del section[...]` with `section.pop(...)`Dimitri Papadopoulos2022-11-201-1/+1
| | | | | | | | | | | | | | | | | | | | Addresses refurb alert: [FURB131]: Replace `del x[y]` with `x.pop(y)`
* | | | Replace `int(dist)` with `dist`Dimitri Papadopoulos2022-11-201-1/+1
| |_|/ |/| | | | | | | | | | | | | | | | | Indeed, `dist` is already an `int`. Addresses refurb alert: [FURB123]: Replace `int(x)` with `x`
* | | [pre-commit.ci] auto fixes from pre-commit.com hookspre-commit-ci[bot]2022-10-141-1/+3
| | | | | | | | | | | | for more information, see https://pre-commit.ci
* | | Fix #759: Update .git_archival.txt templates to more closely match how we ↵Darsey Litzenberger2022-10-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | invoke git-describe This covers `--tags` and `--match '*[0-9]*'` (and `--dirty` is unnecessary). There is unfortunately no format-string equivalent to git-describe's `--long` option, Archives made from this repository after this change should now get versioned correctly. Fixes: https://github.com/pypa/setuptools_scm/issues/759
* | | Fix parsing .git_archival.txt for archives made from tagged commits.Darsey Litzenberger2022-10-141-3/+12
| |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Given .git_archival.txt content like this: node: 3634907645428b9542cfb4fd1ceef08f14526cb8 node-date: 2022-10-13T20:38:09-06:00 describe-name: v0.0.5 ref-names: HEAD -> main, tag: v0.0.5 we would previously fail with an exception like this: $ python3 -m setuptools_scm Traceback (most recent call last): [..snip..] File ".../setuptools_scm/git.py", line 312, in parse_archival return archival_to_version(data, config=config) File ".../setuptools_scm/git.py", line 286, in archival_to_version tag, number, node, _ = _git_parse_describe(archival_describe) File ".../setuptools_scm/git.py", line 245, in _git_parse_describe tag, number, node = describe_output.rsplit("-", 2) ValueError: not enough values to unpack (expected 3, got 1) The problem is that the describe-name field is "v0.0.5" instead of looking like "v0.0.5-0-g3634907". When we invoke git-describe ourselves, we specify the --long option, but the format-strings implemented by git-archive do not currently give us any way to force long-output in a .git_archival.txt file. This change detects this condition and returns None for the missing fields.
* | Remove default "coding: utf-8" in .py templateMike Taves2022-08-291-1/+0
| |
* | Merge pull request #752 from abravalheri/fallback-files-commandRonny Pfannschmidt2022-08-204-6/+58
|\ \ | | | | | | Add fallback for `find_files` on git/hg archives
| * | Add debuging statementsAnderson Bravalheri2022-07-152-0/+3
| | |
| * | Add integrations and tests for fallback file findersAnderson Bravalheri2022-07-151-1/+5
| | |
| * | Implement fallback file finders for git/hg archivesAnderson Bravalheri2022-07-152-0/+38
| | |
| * | Add boolean flag that allows scm_find_files to bypass SCM listingAnderson Bravalheri2022-07-151-5/+12
| |/
* | [pre-commit.ci] auto fixes from pre-commit.com hookspre-commit-ci[bot]2022-08-191-1/+1
| | | | | | | | for more information, see https://pre-commit.ci
* | Force encoding when reading setup.cfg. Fixes #760.Jason R. Coombs2022-08-191-1/+1
|/
* Use stdlib tomllib instead of tomli for Python 3.11+Hugo van Kemenade2022-07-111-3/+7
|
* ignore unexported git archivalsRonny Pfannschmidt2022-07-101-3/+6
| | | | | fixes #742 fixes #745
* fix #738: protect relative_to of Configuration.from_fileRonny Pfannschmidt2022-07-011-2/+9
| | | | | users assumed it makes sense to use in the configfile, where we actually have to use the config file name itself as ancor
* bugfix wrong condition in relative_to override and fix testsRonny Pfannschmidt2022-06-281-1/+2
|
* cleanup pyproject loading and allow cli relative roots to be specifiedRonny Pfannschmidt2022-06-286-67/+121
| | | | this also tries to address concerns by @qubidt in #691 / #702
* fix #727: correctly handle incomplete archivals from setuptools_scm_git_archivalRonny Pfannschmidt2022-06-261-2/+7
|
* Merge pull request #731 from RonnyPfannschmidt/cli-setup-root-optionRonny Pfannschmidt2022-06-262-15/+41
|\ | | | | fix #691 - support root in pyproject.toml even for cli
| * fix #691 - support root in pyproject.toml even for cliRonny Pfannschmidt2022-06-262-15/+41
| | | | | | | | | | superseeds #702 which served as inspiration adds integration tests
* | fix #728: remove git arguments that triggered wrong branch namesRonny Pfannschmidt2022-06-251-2/+2
|/ | | | also added a test that will catch this
* Improve debug logging (indent and commands can be copy/pasted)paugier2022-06-242-11/+17
|
* Clean environnent variables to avoid an incompatibility between pip isolated ↵paugier2022-06-241-1/+22
| | | | build and hg (https://github.com/pypa/pip/issues/10635)
* Improve debug logpaugier2022-06-241-7/+12
|
* changelogRonny Pfannschmidt2022-06-221-2/+0
|
* opt out of pyproject.toml for self-bootstrapRonny Pfannschmidt2022-06-223-2/+12
|
* fixup: add missed typing import guardRonny Pfannschmidt2022-06-221-1/+4
|
* minimize bootstrap - fixes #722 and #723Ronny Pfannschmidt2022-06-2212-28/+58
| | | | | | enable self-bootstrap without typing_extensions and importlib_metadata they are still install requirements however
* merge with mainlineRonny Pfannschmidt2022-06-2121-530/+789
|\
| * FIXUP: restore hg-git supportRonny Pfannschmidt2022-06-213-25/+25
| |
| * use typing.Type for python3.7Ronny Pfannschmidt2022-05-291-1/+2
| |
| * restore python3.7 supportRonny Pfannschmidt2022-05-292-8/+4
| |
| * add importlib_metadata for mypy pre-commit hookRonny Pfannschmidt2022-05-291-1/+1
| |
| * reviews part 2Ronny Pfannschmidt2022-05-293-61/+60
| |
| * Bump minimal python to 3.7Ronny Pfannschmidt2022-05-2920-159/+158
| |
| * complete mypy transformationRonny Pfannschmidt2022-05-2919-445/+670
| |
| * typing fixed in face of ongoing python 3.6 supportRonny Pfannschmidt2022-05-293-13/+16
| |
| * Prepare git archival style testingRonny Pfannschmidt2022-05-292-0/+36
| |