Skip to content

Commit

Permalink
Try to fix version upload
Browse files Browse the repository at this point in the history
  • Loading branch information
PatrickOHara committed Mar 28, 2024
1 parent 3af79a1 commit dd3e6cb
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ jobs:

- name: Install pypa/build
run: python3 -m pip install build --user
- name: Check git works
run: git status
- name: Build a binary wheel and a source tarball
run: python3 -m build
- name: Store the distribution packages
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ __pycache__
.DSStore
.devcontainer
cache
build
build/*
dist/*

# docs
site/
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ urls = {Code = "https://github.com/PatrickOHara/tspwplib", Documentation = "http
description="Library of instances for TSP with Profits"
readme = "README.md"
requires-python = ">=3.10"
keywords = ["Distributionally Robust Optimisation"]
keywords = ["TSP"]
license = {text = "MIT"}
classifiers=[
"Programming Language :: Python",
Expand All @@ -36,3 +36,4 @@ dynamic = ["version"]
packages = ["tspwplib"]

[tool.setuptools_scm]
version_file = "tspwplib/_version.py"
17 changes: 17 additions & 0 deletions tspwplib/_version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# file generated by setuptools_scm
# don't change, don't track in version control
TYPE_CHECKING = False
if TYPE_CHECKING:
from typing import Tuple, Union

VERSION_TUPLE = Tuple[Union[int, str], ...]
else:
VERSION_TUPLE = object

version: str
__version__: str
__version_tuple__: VERSION_TUPLE
version_tuple: VERSION_TUPLE

__version__ = version = "0.7.9.dev0+g3af79a1.d20240328"
__version_tuple__ = version_tuple = (0, 7, 9, "dev0", "g3af79a1.d20240328")
2 changes: 1 addition & 1 deletion tspwplib/exception.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class NotSimplePathException(NotSimpleException):


class UnexpectedSelfLoopException(ex.NetworkXException):
"""A self loop was found where it wasn't exprected"""
"""A self loop was found where it wasn't expected"""


class GraphStructureException(ex.NetworkXException):
Expand Down

0 comments on commit dd3e6cb

Please sign in to comment.