Skip to content

Commit

Permalink
Build system refactored and moved to hatchling.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmnavarrol committed Jan 20, 2024
1 parent 61e565d commit 7b4f964
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 24 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# CHANGELOG

## Next Release
* All build config move to [pyproject.toml](./src/pyproject.toml)
* Build system moved from setuptools to hatchling.
* Dependencies fully relaxed (no versions defined).
* Preliminary support for a demonstration/development docker container.

## 0.11.5 (2023-OCT-21)
* Differences from [previous tag](/../../compare/v0.11.4-2…v0.11.5).
Expand Down
1 change: 1 addition & 0 deletions TODO.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@ Pending actions, general notes, etc. (in no particular order):
* Find the way to self-document the python dictionary that represents subrepos for easier reuse.
* Find the way for Sphinx to offer a drop-down to select git tag-tied versions of documentation.
* https://www.codingwiththomas.com/blog/my-sphinx-best-practice-for-a-multiversion-documentation-in-different-languages
* Refactor code so Makefile, pyproject.toml are at the repository's root?

## IN PROGRESS
8 changes: 4 additions & 4 deletions src/multigit/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
:source: https://github.com/jmnavarrol/python-multigit
"""

__version__ = '0.11.5'
__version__ = '0.11.5.post2'

# Import stuff
import os, sys
Expand All @@ -29,18 +29,18 @@ def main():
description="Manages git repos within git repos.",
add_help=False, # this way I can force help to be an exclusion option along the others
)

# Main options
main_parser = parser.add_mutually_exclusive_group()
main_parser.add_argument('-h', '--help', action='store_true', help="Shows this help.")
main_parser.add_argument('-V', '--version', action='store_true', help="Shows " + parser.prog + " version and quits.")
main_parser.add_argument('-r', '--run', action='store_true', help="Recursively processes '" + SUBREPOS_FILE + "' files found.")
main_parser.add_argument('-s', '--status', action='store_true', help="Shows repositories' current status.")

# Ready to parse args
args = parser.parse_args()
#print(args)

# Run on the options
if len(sys.argv) > 1:
if args.help:
Expand Down
20 changes: 0 additions & 20 deletions src/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -57,23 +57,3 @@ build-backend = "hatchling.build"

[tool.hatch.version]
path = "multigit/__init__.py"


# [build-system]
# requires = [
# "setuptools>=65.5",
# "wheel>=0.37"
# ]
# build-backend = "setuptools.build_meta"

# Other configurations from setup.cfg I still couldn't migrate
#
# # See https://packaging.python.org/tutorials/packaging-projects/
# [metadata]
# version = attr: multigit.__version__
# long_description = file: README.md
# long_description_content_type = text/markdown
#
# [options]
# packages = find:
# include_package_data = true

0 comments on commit 7b4f964

Please sign in to comment.