pypa / setuptools-scm

the blessed package to manage your versions by scm tags
https://setuptools-scm.readthedocs.io/en/latest/
MIT License
862 stars 212 forks source link

tag consideration fails when write_to file is accidentially part of the history (when converting from versioneer) #528

Open this-josh opened 3 years ago

this-josh commented 3 years ago

I am trying to use setuptools_scm version my package, felling.

From how I understand the 'Default versioning scheme' in the README.md I don't understand how it can give .dev0 as 0 implies the branch is clean and that I shouldn't have .dYYYYMMDD in my version, hence, me raising this issue.

It is also worth pointing out I was expecting the version to be felling-v0.1.2.

RonnyPfannschmidt commented 3 years ago

whats the output of git status

whats implementing the build module

it gives a dev0 when its on a tag but detects local changes

git describe --dirty should help

this-josh commented 3 years ago
>>> git status
On branch issue-6-Switch_from_versioneer_to_setuptools-scm
Your branch is up to date with 'origin/issue-6-Switch_from_versioneer_to_setuptools-scm'.

nothing to commit, working tree clean

Sorry I'm not sure what you mean by what is implementing the build module. I have it installed via python3 -m pip install --upgrade build as per https://packaging.python.org/tutorials/packaging-projects/#generating-distribution-archives.

Wouldn't being on a tag that is dirty give 'no distance and not clean:' {tag}+dYYYYMMDD?

>>> git describe --dirty
felling-v0.1.2

Thanks, Josh

RonnyPfannschmidt commented 3 years ago

Looks like there is a a problem within build

Ill investigate later today

RonnyPfannschmidt commented 3 years ago

@this-josh i starte to debug removed, i had a local env issue

RonnyPfannschmidt commented 3 years ago

@this-josh your _version.py is not removed from git

 [rpfannsc@ronny-t490-local felling]$ git tag felling-v2.0
[rpfannsc@ronny-t490-local felling]$ python setup.py --version
2.1.dev0+g41b1319.d20210311
[rpfannsc@ronny-t490-local felling]$ git diff
diff --git a/felling/_version.py b/felling/_version.py
index 28e6bc8..cf96c6e 100644
--- a/felling/_version.py
+++ b/felling/_version.py
@@ -1,5 +1,5 @@
 # coding: utf-8
 # file generated by setuptools_scm
 # don't change, don't track in version control
-version = '0.1.2.dev8+g4314be8.d20210309'
-version_tuple = (0, 1, 2, 'dev8+g4314be8', 'd20210309')
+version = '2.1.dev0+g41b1319.d20210311'
+version_tuple = (2, 1, 'dev0+g41b1319', 'd20210311')
[rpfannsc@ronny-t490-local felling]$ git rm -f felling/_version.py 
rm 'felling/_version.py'
[rpfannsc@ronny-t490-local felling]$ git status
Auf Branch issue-6-Switch_from_versioneer_to_setuptools-scm
Ihr Branch ist auf demselben Stand wie 'origin/issue-6-Switch_from_versioneer_to_setuptools-scm'.

Zum Commit vorgemerkte Änderungen:
  (benutzen Sie "git restore --staged <Datei>..." zum Entfernen aus der Staging-Area)
    gelöscht:       felling/_version.py

[rpfannsc@ronny-t490-local felling]$ git commit -m drop
[issue-6-Switch_from_versioneer_to_setuptools-scm 1be2467] kill
 1 file changed, 5 deletions(-)
 delete mode 100644 felling/_version.py
[rpfannsc@ronny-t490-local felling]$ git tag felling-v3.0.0
[rpfannsc@ronny-t490-local felling]$ python -m build 
Collecting setuptools_scm_git_archive
  Downloading setuptools_scm_git_archive-1.1-py2.py3-none-any.whl (3.3 kB)
Collecting setuptools_scm[toml]>=3.4
  Using cached setuptools_scm-5.0.2-py2.py3-none-any.whl (29 kB)
Collecting setuptools>=42
  Using cached setuptools-54.1.1-py3-none-any.whl (784 kB)
Collecting wheel
  Using cached wheel-0.36.2-py2.py3-none-any.whl (35 kB)
Collecting toml
  Using cached toml-0.10.2-py2.py3-none-any.whl (16 kB)
Installing collected packages: setuptools, toml, setuptools-scm, wheel, setuptools-scm-git-archive
Successfully installed setuptools-54.1.1 setuptools-scm-5.0.2 setuptools-scm-git-archive-1.1 toml-0.10.2 wheel-0.36.2
running egg_info
writing felling.egg-info/PKG-INFO
writing dependency_links to felling.egg-info/dependency_links.txt
writing top-level names to felling.egg-info/top_level.txt
reading manifest template 'MANIFEST.in'
writing manifest file 'felling.egg-info/SOURCES.txt'
running sdist
running egg_info
writing felling.egg-info/PKG-INFO
writing dependency_links to felling.egg-info/dependency_links.txt
writing top-level names to felling.egg-info/top_level.txt
reading manifest template 'MANIFEST.in'
writing manifest file 'felling.egg-info/SOURCES.txt'
running check
creating felling-3.0.0
creating felling-3.0.0/.github
creating felling-3.0.0/.github/workflows
creating felling-3.0.0/felling
creating felling-3.0.0/felling.egg-info
creating felling-3.0.0/felling/resources
creating felling-3.0.0/felling/src
creating felling-3.0.0/tests
creating felling-3.0.0/tests/sample_logs
copying files to felling-3.0.0...
copying .git_archival.txt -> felling-3.0.0
copying .gitattributes -> felling-3.0.0
copying .gitignore -> felling-3.0.0
copying .lgtm.yml -> felling-3.0.0
copying LICENSE -> felling-3.0.0
copying MANIFEST.in -> felling-3.0.0
copying README.md -> felling-3.0.0
copying codecov.yml -> felling-3.0.0
copying design_philosophy.md -> felling-3.0.0
copying pyproject.toml -> felling-3.0.0
copying setup.cfg -> felling-3.0.0
copying setup.py -> felling-3.0.0
copying .github/workflows/label.yml -> felling-3.0.0/.github/workflows
copying .github/workflows/python-package.yml -> felling-3.0.0/.github/workflows
copying .github/workflows/python-publish.yml -> felling-3.0.0/.github/workflows
copying felling/README.md -> felling-3.0.0/felling
copying felling/__init__.py -> felling-3.0.0/felling
copying felling/__main__.py -> felling-3.0.0/felling
copying felling/_version.py -> felling-3.0.0/felling
copying felling.egg-info/PKG-INFO -> felling-3.0.0/felling.egg-info
copying felling.egg-info/SOURCES.txt -> felling-3.0.0/felling.egg-info
copying felling.egg-info/dependency_links.txt -> felling-3.0.0/felling.egg-info
copying felling.egg-info/top_level.txt -> felling-3.0.0/felling.egg-info
copying felling/resources/logger.json -> felling-3.0.0/felling/resources
copying felling/src/__init__.py -> felling-3.0.0/felling/src
copying felling/src/compare_logs.py -> felling-3.0.0/felling/src
copying felling/src/configure_felling.py -> felling-3.0.0/felling/src
copying tests/__init__.py -> felling-3.0.0/tests
copying tests/create_sample_logs.py -> felling-3.0.0/tests
copying tests/test_compare_logs.py -> felling-3.0.0/tests
copying tests/test_configure_felling.py -> felling-3.0.0/tests
copying tests/sample_logs/19700101-0000_create_sample_logs.log -> felling-3.0.0/tests/sample_logs
copying tests/sample_logs/19700101-0001_create_sample_logs.log -> felling-3.0.0/tests/sample_logs
Writing felling-3.0.0/setup.cfg
Creating tar archive
removing 'felling-3.0.0' (and everything under it)
Collecting setuptools_scm_git_archive
  Using cached setuptools_scm_git_archive-1.1-py2.py3-none-any.whl (3.3 kB)
Collecting setuptools_scm[toml]>=3.4
  Using cached setuptools_scm-5.0.2-py2.py3-none-any.whl (29 kB)
Collecting setuptools>=42
  Using cached setuptools-54.1.1-py3-none-any.whl (784 kB)
Collecting wheel
  Using cached wheel-0.36.2-py2.py3-none-any.whl (35 kB)
Collecting toml
  Using cached toml-0.10.2-py2.py3-none-any.whl (16 kB)
Installing collected packages: setuptools, toml, setuptools-scm, wheel, setuptools-scm-git-archive
Successfully installed setuptools-54.1.1 setuptools-scm-5.0.2 setuptools-scm-git-archive-1.1 toml-0.10.2 wheel-0.36.2
running egg_info
writing felling.egg-info/PKG-INFO
writing dependency_links to felling.egg-info/dependency_links.txt
writing top-level names to felling.egg-info/top_level.txt
reading manifest template 'MANIFEST.in'
writing manifest file 'felling.egg-info/SOURCES.txt'
Requirement already satisfied: wheel in /tmp/build-env-via6_2uk/lib/python3.9/site-packages (from -r /tmp/build-reqs-3ztkqou3.txt (line 1)) (0.36.2)
running bdist_wheel
running build
running build_py
copying felling/__init__.py -> build/lib/felling
copying felling/_version.py -> build/lib/felling
running egg_info
writing felling.egg-info/PKG-INFO
writing dependency_links to felling.egg-info/dependency_links.txt
writing top-level names to felling.egg-info/top_level.txt
reading manifest template 'MANIFEST.in'
writing manifest file 'felling.egg-info/SOURCES.txt'
copying felling/README.md -> build/lib/felling
creating build/lib/felling/resources
copying felling/resources/logger.json -> build/lib/felling/resources
creating build/lib/tests/sample_logs
copying tests/sample_logs/19700101-0000_create_sample_logs.log -> build/lib/tests/sample_logs
copying tests/sample_logs/19700101-0001_create_sample_logs.log -> build/lib/tests/sample_logs
installing to build/bdist.linux-x86_64/wheel
running install
running install_lib
creating build/bdist.linux-x86_64/wheel
creating build/bdist.linux-x86_64/wheel/felling
copying build/lib/felling/__main__.py -> build/bdist.linux-x86_64/wheel/felling
creating build/bdist.linux-x86_64/wheel/felling/src
copying build/lib/felling/src/__init__.py -> build/bdist.linux-x86_64/wheel/felling/src
copying build/lib/felling/src/compare_logs.py -> build/bdist.linux-x86_64/wheel/felling/src
copying build/lib/felling/src/configure_felling.py -> build/bdist.linux-x86_64/wheel/felling/src
copying build/lib/felling/__init__.py -> build/bdist.linux-x86_64/wheel/felling
copying build/lib/felling/_version.py -> build/bdist.linux-x86_64/wheel/felling
copying build/lib/felling/README.md -> build/bdist.linux-x86_64/wheel/felling
creating build/bdist.linux-x86_64/wheel/felling/resources
copying build/lib/felling/resources/logger.json -> build/bdist.linux-x86_64/wheel/felling/resources
creating build/bdist.linux-x86_64/wheel/tests
copying build/lib/tests/__init__.py -> build/bdist.linux-x86_64/wheel/tests
copying build/lib/tests/create_sample_logs.py -> build/bdist.linux-x86_64/wheel/tests
copying build/lib/tests/test_compare_logs.py -> build/bdist.linux-x86_64/wheel/tests
copying build/lib/tests/test_configure_felling.py -> build/bdist.linux-x86_64/wheel/tests
creating build/bdist.linux-x86_64/wheel/tests/sample_logs
copying build/lib/tests/sample_logs/19700101-0000_create_sample_logs.log -> build/bdist.linux-x86_64/wheel/tests/sample_logs
copying build/lib/tests/sample_logs/19700101-0001_create_sample_logs.log -> build/bdist.linux-x86_64/wheel/tests/sample_logs
running install_egg_info
Copying felling.egg-info to build/bdist.linux-x86_64/wheel/felling-3.0.0-py3.9.egg-info
running install_scripts
adding license file "LICENSE" (matched pattern "LICEN[CS]E*")
creating build/bdist.linux-x86_64/wheel/felling-3.0.0.dist-info/WHEEL
creating '/home/rpfannsc/Projects/mess/felling/dist/tmpa3su98us/felling-3.0.0-py3-none-any.whl' and adding 'build/bdist.linux-x86_64/wheel' to it
adding 'felling/README.md'
adding 'felling/__init__.py'
adding 'felling/__main__.py'
adding 'felling/_version.py'
adding 'felling/resources/logger.json'
adding 'felling/src/__init__.py'
adding 'felling/src/compare_logs.py'
adding 'felling/src/configure_felling.py'
adding 'tests/__init__.py'
adding 'tests/create_sample_logs.py'
adding 'tests/test_compare_logs.py'
adding 'tests/test_configure_felling.py'
adding 'tests/sample_logs/19700101-0000_create_sample_logs.log'
adding 'tests/sample_logs/19700101-0001_create_sample_logs.log'
adding 'felling-3.0.0.dist-info/LICENSE'
adding 'felling-3.0.0.dist-info/METADATA'
adding 'felling-3.0.0.dist-info/WHEEL'
adding 'felling-3.0.0.dist-info/top_level.txt'
adding 'felling-3.0.0.dist-info/RECORD'
removing build/bdist.linux-x86_64/wheel
RonnyPfannschmidt commented 3 years ago

@this-josh i#ll leave this open until we do a warning or add better docs

this-josh commented 3 years ago

Just looking at the top of _version.py it says # don't change, don't track in version control which is a pretty strong hint I should have realised. Will correct this and check it works as planned

RonnyPfannschmidt commented 3 years ago

@this-josh its a classic "didn't see the woods cause all of the trees moment" (its a german proverb very roughly translated)

this-josh commented 3 years ago

Aha! Ignoring that file has worked, thank you for your help. You are not the first person to say that about me, maybe its a sign! Out of interest what is it in German? :)

RonnyPfannschmidt commented 3 years ago

"den wald vor lauter bäumen nicht sehen"

sometimes when we dig deep into something, its just easy to miss something right under our noses, i had a fair number of those for myself as well ^^

haccks commented 2 years ago

@this-josh your _version.py is not removed from git

 [rpfannsc@ronny-t490-local felling]$ git tag felling-v2.0
[rpfannsc@ronny-t490-local felling]$ python setup.py --version
2.1.dev0+g41b1319.d20210311
[rpfannsc@ronny-t490-local felling]$ git diff
diff --git a/felling/_version.py b/felling/_version.py
index 28e6bc8..cf96c6e 100644
--- a/felling/_version.py
+++ b/felling/_version.py
@@ -1,5 +1,5 @@
 # coding: utf-8
 # file generated by setuptools_scm
 # don't change, don't track in version control
-version = '0.1.2.dev8+g4314be8.d20210309'
-version_tuple = (0, 1, 2, 'dev8+g4314be8', 'd20210309')
+version = '2.1.dev0+g41b1319.d20210311'
+version_tuple = (2, 1, 'dev0+g41b1319', 'd20210311')
[rpfannsc@ronny-t490-local felling]$ git rm -f felling/_version.py 
rm 'felling/_version.py'
[rpfannsc@ronny-t490-local felling]$ git status
Auf Branch issue-6-Switch_from_versioneer_to_setuptools-scm
Ihr Branch ist auf demselben Stand wie 'origin/issue-6-Switch_from_versioneer_to_setuptools-scm'.

Zum Commit vorgemerkte Änderungen:
  (benutzen Sie "git restore --staged <Datei>..." zum Entfernen aus der Staging-Area)
  gelöscht:       felling/_version.py

[rpfannsc@ronny-t490-local felling]$ git commit -m drop
[issue-6-Switch_from_versioneer_to_setuptools-scm 1be2467] kill
 1 file changed, 5 deletions(-)
 delete mode 100644 felling/_version.py
[rpfannsc@ronny-t490-local felling]$ git tag felling-v3.0.0
[rpfannsc@ronny-t490-local felling]$ python -m build 
Collecting setuptools_scm_git_archive
  Downloading setuptools_scm_git_archive-1.1-py2.py3-none-any.whl (3.3 kB)
Collecting setuptools_scm[toml]>=3.4
  Using cached setuptools_scm-5.0.2-py2.py3-none-any.whl (29 kB)
Collecting setuptools>=42
  Using cached setuptools-54.1.1-py3-none-any.whl (784 kB)
Collecting wheel
  Using cached wheel-0.36.2-py2.py3-none-any.whl (35 kB)
Collecting toml
  Using cached toml-0.10.2-py2.py3-none-any.whl (16 kB)
Installing collected packages: setuptools, toml, setuptools-scm, wheel, setuptools-scm-git-archive
Successfully installed setuptools-54.1.1 setuptools-scm-5.0.2 setuptools-scm-git-archive-1.1 toml-0.10.2 wheel-0.36.2
running egg_info
writing felling.egg-info/PKG-INFO
writing dependency_links to felling.egg-info/dependency_links.txt
writing top-level names to felling.egg-info/top_level.txt
reading manifest template 'MANIFEST.in'
writing manifest file 'felling.egg-info/SOURCES.txt'
running sdist
running egg_info
writing felling.egg-info/PKG-INFO
writing dependency_links to felling.egg-info/dependency_links.txt
writing top-level names to felling.egg-info/top_level.txt
reading manifest template 'MANIFEST.in'
writing manifest file 'felling.egg-info/SOURCES.txt'
running check
creating felling-3.0.0
creating felling-3.0.0/.github
creating felling-3.0.0/.github/workflows
creating felling-3.0.0/felling
creating felling-3.0.0/felling.egg-info
creating felling-3.0.0/felling/resources
creating felling-3.0.0/felling/src
creating felling-3.0.0/tests
creating felling-3.0.0/tests/sample_logs
copying files to felling-3.0.0...
copying .git_archival.txt -> felling-3.0.0
copying .gitattributes -> felling-3.0.0
copying .gitignore -> felling-3.0.0
copying .lgtm.yml -> felling-3.0.0
copying LICENSE -> felling-3.0.0
copying MANIFEST.in -> felling-3.0.0
copying README.md -> felling-3.0.0
copying codecov.yml -> felling-3.0.0
copying design_philosophy.md -> felling-3.0.0
copying pyproject.toml -> felling-3.0.0
copying setup.cfg -> felling-3.0.0
copying setup.py -> felling-3.0.0
copying .github/workflows/label.yml -> felling-3.0.0/.github/workflows
copying .github/workflows/python-package.yml -> felling-3.0.0/.github/workflows
copying .github/workflows/python-publish.yml -> felling-3.0.0/.github/workflows
copying felling/README.md -> felling-3.0.0/felling
copying felling/__init__.py -> felling-3.0.0/felling
copying felling/__main__.py -> felling-3.0.0/felling
copying felling/_version.py -> felling-3.0.0/felling
copying felling.egg-info/PKG-INFO -> felling-3.0.0/felling.egg-info
copying felling.egg-info/SOURCES.txt -> felling-3.0.0/felling.egg-info
copying felling.egg-info/dependency_links.txt -> felling-3.0.0/felling.egg-info
copying felling.egg-info/top_level.txt -> felling-3.0.0/felling.egg-info
copying felling/resources/logger.json -> felling-3.0.0/felling/resources
copying felling/src/__init__.py -> felling-3.0.0/felling/src
copying felling/src/compare_logs.py -> felling-3.0.0/felling/src
copying felling/src/configure_felling.py -> felling-3.0.0/felling/src
copying tests/__init__.py -> felling-3.0.0/tests
copying tests/create_sample_logs.py -> felling-3.0.0/tests
copying tests/test_compare_logs.py -> felling-3.0.0/tests
copying tests/test_configure_felling.py -> felling-3.0.0/tests
copying tests/sample_logs/19700101-0000_create_sample_logs.log -> felling-3.0.0/tests/sample_logs
copying tests/sample_logs/19700101-0001_create_sample_logs.log -> felling-3.0.0/tests/sample_logs
Writing felling-3.0.0/setup.cfg
Creating tar archive
removing 'felling-3.0.0' (and everything under it)
Collecting setuptools_scm_git_archive
  Using cached setuptools_scm_git_archive-1.1-py2.py3-none-any.whl (3.3 kB)
Collecting setuptools_scm[toml]>=3.4
  Using cached setuptools_scm-5.0.2-py2.py3-none-any.whl (29 kB)
Collecting setuptools>=42
  Using cached setuptools-54.1.1-py3-none-any.whl (784 kB)
Collecting wheel
  Using cached wheel-0.36.2-py2.py3-none-any.whl (35 kB)
Collecting toml
  Using cached toml-0.10.2-py2.py3-none-any.whl (16 kB)
Installing collected packages: setuptools, toml, setuptools-scm, wheel, setuptools-scm-git-archive
Successfully installed setuptools-54.1.1 setuptools-scm-5.0.2 setuptools-scm-git-archive-1.1 toml-0.10.2 wheel-0.36.2
running egg_info
writing felling.egg-info/PKG-INFO
writing dependency_links to felling.egg-info/dependency_links.txt
writing top-level names to felling.egg-info/top_level.txt
reading manifest template 'MANIFEST.in'
writing manifest file 'felling.egg-info/SOURCES.txt'
Requirement already satisfied: wheel in /tmp/build-env-via6_2uk/lib/python3.9/site-packages (from -r /tmp/build-reqs-3ztkqou3.txt (line 1)) (0.36.2)
running bdist_wheel
running build
running build_py
copying felling/__init__.py -> build/lib/felling
copying felling/_version.py -> build/lib/felling
running egg_info
writing felling.egg-info/PKG-INFO
writing dependency_links to felling.egg-info/dependency_links.txt
writing top-level names to felling.egg-info/top_level.txt
reading manifest template 'MANIFEST.in'
writing manifest file 'felling.egg-info/SOURCES.txt'
copying felling/README.md -> build/lib/felling
creating build/lib/felling/resources
copying felling/resources/logger.json -> build/lib/felling/resources
creating build/lib/tests/sample_logs
copying tests/sample_logs/19700101-0000_create_sample_logs.log -> build/lib/tests/sample_logs
copying tests/sample_logs/19700101-0001_create_sample_logs.log -> build/lib/tests/sample_logs
installing to build/bdist.linux-x86_64/wheel
running install
running install_lib
creating build/bdist.linux-x86_64/wheel
creating build/bdist.linux-x86_64/wheel/felling
copying build/lib/felling/__main__.py -> build/bdist.linux-x86_64/wheel/felling
creating build/bdist.linux-x86_64/wheel/felling/src
copying build/lib/felling/src/__init__.py -> build/bdist.linux-x86_64/wheel/felling/src
copying build/lib/felling/src/compare_logs.py -> build/bdist.linux-x86_64/wheel/felling/src
copying build/lib/felling/src/configure_felling.py -> build/bdist.linux-x86_64/wheel/felling/src
copying build/lib/felling/__init__.py -> build/bdist.linux-x86_64/wheel/felling
copying build/lib/felling/_version.py -> build/bdist.linux-x86_64/wheel/felling
copying build/lib/felling/README.md -> build/bdist.linux-x86_64/wheel/felling
creating build/bdist.linux-x86_64/wheel/felling/resources
copying build/lib/felling/resources/logger.json -> build/bdist.linux-x86_64/wheel/felling/resources
creating build/bdist.linux-x86_64/wheel/tests
copying build/lib/tests/__init__.py -> build/bdist.linux-x86_64/wheel/tests
copying build/lib/tests/create_sample_logs.py -> build/bdist.linux-x86_64/wheel/tests
copying build/lib/tests/test_compare_logs.py -> build/bdist.linux-x86_64/wheel/tests
copying build/lib/tests/test_configure_felling.py -> build/bdist.linux-x86_64/wheel/tests
creating build/bdist.linux-x86_64/wheel/tests/sample_logs
copying build/lib/tests/sample_logs/19700101-0000_create_sample_logs.log -> build/bdist.linux-x86_64/wheel/tests/sample_logs
copying build/lib/tests/sample_logs/19700101-0001_create_sample_logs.log -> build/bdist.linux-x86_64/wheel/tests/sample_logs
running install_egg_info
Copying felling.egg-info to build/bdist.linux-x86_64/wheel/felling-3.0.0-py3.9.egg-info
running install_scripts
adding license file "LICENSE" (matched pattern "LICEN[CS]E*")
creating build/bdist.linux-x86_64/wheel/felling-3.0.0.dist-info/WHEEL
creating '/home/rpfannsc/Projects/mess/felling/dist/tmpa3su98us/felling-3.0.0-py3-none-any.whl' and adding 'build/bdist.linux-x86_64/wheel' to it
adding 'felling/README.md'
adding 'felling/__init__.py'
adding 'felling/__main__.py'
adding 'felling/_version.py'
adding 'felling/resources/logger.json'
adding 'felling/src/__init__.py'
adding 'felling/src/compare_logs.py'
adding 'felling/src/configure_felling.py'
adding 'tests/__init__.py'
adding 'tests/create_sample_logs.py'
adding 'tests/test_compare_logs.py'
adding 'tests/test_configure_felling.py'
adding 'tests/sample_logs/19700101-0000_create_sample_logs.log'
adding 'tests/sample_logs/19700101-0001_create_sample_logs.log'
adding 'felling-3.0.0.dist-info/LICENSE'
adding 'felling-3.0.0.dist-info/METADATA'
adding 'felling-3.0.0.dist-info/WHEEL'
adding 'felling-3.0.0.dist-info/top_level.txt'
adding 'felling-3.0.0.dist-info/RECORD'
removing build/bdist.linux-x86_64/wheel

@RonnyPfannschmidt Thanks a ton! This helped a lot. I used __init.py__ file to write_to and it was giving me the same problem as OP. Finally created _version.py and untracked in VC and worked like a charm. Thanks again.