Skip to content

Commit

Permalink
Return to manual versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
offbyone committed Apr 18, 2023
1 parent a93f9f5 commit afc4593
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 16 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,6 @@ jobs:
steps:
- name: Check out the repository
uses: actions/checkout@v3
with:
# We want our tags here
fetch-depth: 0

- name: Setup Python
uses: actions/setup-python@v4.2.0
Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,3 @@ t.py
*.pem
/.python-version
/.tool-versions
src/github3/_version.py
12 changes: 1 addition & 11 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -50,17 +50,7 @@ dev = [
]

[tool.hatch.version]
source = "vcs"

[tool.hatch.build.hooks.vcs]
version-file = "src/github3/_version.py"
template = """\
# coding: utf-8
# file generated by hatch VCS
# don't change, don't track in version control
__version__ = {version!r} # pragma: no mutate
__version_info__ = {version_tuple!r} # pragma: no mutate
"""
path = "src/github3/__about__.py"

[tool.hatch.build.targets.wheel]
packages = [
Expand Down
5 changes: 4 additions & 1 deletion src/github3/__about__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,11 @@
__author_email__ = "graffatcolmingov@gmail.com"
__license__ = "Modified BSD"
__copyright__ = "Copyright 2012-2022 Ian Stapleton Cordasco"
__version__ = "3.2.0"
__version_info__ = tuple(
int(i) for i in __version__.split(".") if i.isdigit()
)
__url__ = "https://github3.readthedocs.io"
from ._version import __version__, __version_info__

__all__ = (
"__package_name__",
Expand Down

0 comments on commit afc4593

Please sign in to comment.