summaryrefslogtreecommitdiff
path: root/testing
Commit message (Collapse)AuthorAgeFilesLines
* typing fixupRonny Pfannschmidt2023-05-091-1/+1
|
* move setuptools integration to private subpackageRonny Pfannschmidt2023-05-091-1/+1
|
* restore logging functionalityRonny Pfannschmidt2023-04-271-0/+15
| | | | there was an unintended misconfiguration in the logging setup enforcing always warning levels
* chore: bump min setuptools version to 61Ronny Pfannschmidt2023-04-271-3/+3
| | | | required for pyproject.toml support in setuptools
* fix #838: handle incorrectly passed empty tag regex as defaultRonny Pfannschmidt2023-04-271-0/+7
|
* chore: remove test formatted writeRonny Pfannschmidt2023-04-101-5/+2
|
* chore: test cleanup - drop wd.versionRonny Pfannschmidt2023-04-105-56/+51
| | | | always use the explicit get_version method
* fixup: hg_git tests for the wd versionRonny Pfannschmidt2023-04-051-2/+2
|
* refactor: introduce a own CompletedProcess subclass with parse_success methodRonny Pfannschmidt2023-04-051-3/+2
|
* breaking: unify version.distance to intRonny Pfannschmidt2023-04-034-28/+30
| | | | the difference between distance=0 and distance=None was hiding issues
* introduce a parse_success helper to parse command outputRonny Pfannschmidt2023-03-291-1/+3
| | | | | apply it to git also turn imports to run helpers private
* switch command for run to avoid pytohn 3.7 windows bugRonny Pfannschmidt2023-03-291-1/+1
|
* make scmworkdir.path always a PathRonny Pfannschmidt2023-03-292-5/+5
|
* remove the utils moduleRonny Pfannschmidt2023-03-295-7/+6
| | | | | move command utils to _run_cmd move data_from_mime to integration
* breaking: purge do/do_exRonny Pfannschmidt2023-03-294-17/+22
|
* bugfix - add rich extra to regression testRonny Pfannschmidt2023-03-291-1/+1
|
* breaking: replace trace with loggingRonny Pfannschmidt2023-03-292-34/+24
|
* refactor/breaking: move file finders to private moduleRonny Pfannschmidt2023-03-133-10/+12
|
* refactor: command running - migrate more code to itRonny Pfannschmidt2023-03-114-16/+16
|
* refactor: unify command running apisRonny Pfannschmidt2023-03-113-22/+21
| | | | | | | introduces the _run_cmd private module which is used across the board starts to remove use of the do/do_ex which predate
* refactor: split tracing and command running into own modulesRonny Pfannschmidt2023-03-111-1/+1
|
* use non-default testSpencer Chang2023-02-241-2/+3
|
* Merge branch 'main' into feature/custom_version_scheme_outside_setuppySpencer Chang2023-02-241-8/+0
|\
| * define own build backendRonny Pfannschmidt2023-02-241-8/+0
| | | | | | | | this removes setup.py altogether in turn preventing legacy usage
* | add test for custom version using function pathSpencer Chang2023-02-211-0/+9
|/
* drop testing for old setuptools versionsRonny Pfannschmidt2023-02-121-201/+0
|
* migrate setuptools config to pyproject.tomlRonny Pfannschmidt2023-02-121-0/+22
|
* pre-commit updatesRonny Pfannschmidt2023-02-128-11/+4
|
* correct git workdir passover and setuptools double call inRonny Pfannschmidt2023-01-313-20/+14
|
* private configruation moduleRonny Pfannschmidt2023-01-315-6/+6
|
* introduce config overriesRonny Pfannschmidt2023-01-181-0/+23
| | | | toml based env vars
* potential breaking: Configuration as dataclassRonny Pfannschmidt2023-01-181-2/+2
|
* remove the legacy version parser apiRonny Pfannschmidt2023-01-182-3/+6
| | | | config is no longer optional
* drop the deprecated version_from_scm helperRonny Pfannschmidt2023-01-181-5/+0
|
* scmversion: stricter typing for tagRonny Pfannschmidt2023-01-171-1/+1
|
* git tests: expect main as possible default branchRonny Pfannschmidt2023-01-171-1/+1
|
* Fix parsing .git_archival.txt for archives made from tagged commits.Darsey Litzenberger2022-10-141-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Merge pull request #752 from abravalheri/fallback-files-commandRonny Pfannschmidt2022-08-201-0/+30
|\ | | | | Add fallback for `find_files` on git/hg archives
| * Fix tests for windowsAnderson Bravalheri2022-07-151-1/+7
| |
| * Add integrations and tests for fallback file findersAnderson Bravalheri2022-07-151-0/+24
| |
* | [pre-commit.ci] auto fixes from pre-commit.com hookspre-commit-ci[bot]2022-08-191-2/+2
| | | | | | | | for more information, see https://pre-commit.ci
* | Force encoding when reading setup.cfg. Fixes #760.Jason R. Coombs2022-08-191-1/+0
| |
* | Add test capturing failed expectation. Ref #760.Jason R. Coombs2022-08-191-0/+19
| |
* | tests: Fix test_git_archhival_from_unfiltered assumptionsStanislav Levin2022-08-051-6/+2
|/ | | | | | | | | | | | | This test relied on several things: - editable installation and thereby, '.git_archival.txt' is always accessible. But some Linux distros (e.g. Debian) run tests out of a git tree. - no expansion happens for '.git_archival.txt' (see .gitattributes), i.e. the packaged sources are not produced by git archive. Fixes: https://github.com/pypa/setuptools_scm/issues/750 Signed-off-by: Stanislav Levin <slev@altlinux.org>
* Use stdlib tomllib instead of tomli for Python 3.11+Hugo van Kemenade2022-07-111-2/+4
|
* ignore unexported git archivalsRonny Pfannschmidt2022-07-101-0/+12
| | | | | fixes #742 fixes #745
* fix #738: protect relative_to of Configuration.from_fileRonny Pfannschmidt2022-07-011-0/+23
| | | | | 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-8/+15
|
* cleanup pyproject loading and allow cli relative roots to be specifiedRonny Pfannschmidt2022-06-281-2/+5
| | | | 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-0/+8
|