summaryrefslogtreecommitdiff
path: root/testing/test_basic_api.py
Commit message (Collapse)AuthorAgeFilesLines
* Allow getting the version from the parent directory suffix.Antony Lee2020-05-011-0/+12
| | | | | | | | | | | | | | | | | | 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.
* update pre-commit setup to modern practices and ensure flake8 is in line as ↵Ronny Pfannschmidt2019-11-251-1/+0
| | | | well (#369)
* Don't pass entrypoing name around anymore and allow passing fallback_root to ↵Ionel Cristian Mărieș2019-05-101-1/+2
| | | | get_version.
* Allow setting a fallback version in case everything else fails.Antony Lee2019-03-031-0/+13
|
* fix #297 - correct the invocation in version_from_scmRonny Pfannschmidt2018-08-081-0/+5
|
* Merge pull request #276 from punkadiddle/masterRonny Pfannschmidt2018-07-171-2/+2
|\ | | | | configurable version number extraction from tag strings
| * working draft using configuration instance classpunkadiddle2018-07-091-2/+2
| |
* | Add some pretned testsJonathan Piron2018-07-021-4/+6
|/
* breaking change - no longer accept plain strings from parseRonny Pfannschmidt2018-05-211-7/+3
| | | | its deprecated since 1.x
* inflict black on the codebase :)Ronny Pfannschmidt2018-05-131-25/+29
|
* acceptance test and changelog for issue #167Ronny Pfannschmidt2017-04-081-0/+3
|
* fix tests for windows pathsRonny Pfannschmidt2017-02-081-6/+6
|
* troughly pass all versions trough parsed versionsRonny Pfannschmidt2016-10-051-1/+3
|
* introduce parse_scm_fallback concept and fix parse hooksRonny Pfannschmidt2015-12-071-2/+2
| | | | | before parse hooks would just break if the scm they would use was not availiable now after parse, setuptools-scm runs the fallbacks
* coding and documentation style cleanupsRonny Pfannschmidt2015-12-071-1/+1
|
* introduce scm parser overriding fixes #70 and #71Ronny Pfannschmidt2015-12-061-0/+6
|
* support enforcing version numbers via the envRonny Pfannschmidt2015-12-011-0/+6
|
* remove forgotten testsRonny Pfannschmidt2015-11-281-34/+0
| | | | due to git missuse the file cahnge was not added in the previous commit
* finish extracting mercurial tests into own fileRonny Pfannschmidt2015-11-281-94/+3
|
* simplify data from mime testRonny Pfannschmidt2015-11-281-4/+3
|
* move hg archival testRonny Pfannschmidt2015-11-281-25/+0
|
* Now that /tmp is no longer hard-coded, supply a more interesting root.Jason R. Coombs2015-11-141-2/+2
|
* Extend the extraction of the root assertion so that it's re-used by all ↵Jason R. Coombs2015-11-141-12/+14
| | | | test_root functions
* It seems the cache parameter is unused and needs not be suppliedJason R. Coombs2015-11-141-1/+1
|
* Add relative_to parameter to get_version. Fixes #44 and fixes #45.Jason R. Coombs2015-11-121-0/+5
|
* Extract assert_root_tmp fixtureJason R. Coombs2015-11-121-1/+5
|
* restructure root finding, fixes #43 and #45Ronny Pfannschmidt2015-09-171-1/+1
| | | | | | * PKG-INFO is no longer a scm, instead the version is substituted directly * git root folder is verified * simplicistic acceptance test for the root finding
* fix win32+python27 failure.Gabi Davar2015-06-131-1/+1
| | | | | * for the above environment must be byte strings - not unicode * fix test windows - /tmp is not an absolute path.
* fix and test dumping to filesv1.5.1Ronny Pfannschmidt2015-05-301-0/+13
|
* restructure codebase, move setuptools integration code to own fileRonny Pfannschmidt2015-05-301-7/+6
|
* fix various minor issues with versin numberingRonny Pfannschmidt2015-02-211-3/+3
|
* pluggable versioning schemesRonny Pfannschmidt2015-02-211-36/+9
|
* create a package, return to self-use, split moduleRonny Pfannschmidt2015-02-171-0/+223