Skip to content

Commit

Permalink
Removed .zip sdist format
Browse files Browse the repository at this point in the history
  • Loading branch information
theriverman committed Dec 12, 2020
1 parent c0397c1 commit d184186
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
1 change: 0 additions & 1 deletion .github/workflows/publish-to-test-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ jobs:
setup.py
bdist_wheel
sdist
--formats=gztar,zip
- name: Publish distribution 📦 to Test PyPI
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@master
Expand Down
6 changes: 0 additions & 6 deletions version.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,34 +91,28 @@ def write_release_version(version):

def get_git_version():
# Read in the version that's currently in RELEASE-VERSION.

release_version = read_release_version()

# First try to get the current version using “git describe”.

version = call_git_describe()
if is_dirty():
version += "-dirty"

# If that doesn't work, fall back on the value that's in
# RELEASE-VERSION.

if version is None:
version = release_version

# If we still don't have anything, that's an error.

if version is None:
raise ValueError("Cannot find the version number!")

# If the current version is different from what's in the
# RELEASE-VERSION file, update the file to be current.

if version != release_version:
write_release_version(version)

# Finally, return the current version.

return version


Expand Down

0 comments on commit d184186

Please sign in to comment.