From 1f8a16b462e03878fdd7b9cbaaed506c4bf05956 Mon Sep 17 00:00:00 2001 From: Joris Roovers Date: Wed, 8 Mar 2023 23:08:55 +0100 Subject: [PATCH] Remove hatch-vcs metadata hook that uses commit_hash (#461) Temporarily comment out dynamic URLs using the `commit_hash` variable in the tool.hatch.metadata.hooks.vcs.urls section in pyproject.toml. Required to fix builds from sdist. Relates to #460 --- gitlint-core/LICENSE | 23 ++++++++++++++++++++++- gitlint-core/README.md | 27 ++++++++++++++++++++++++++- gitlint-core/pyproject.toml | 3 ++- pyproject.toml | 5 +++-- 4 files changed, 53 insertions(+), 5 deletions(-) mode change 120000 => 100644 gitlint-core/LICENSE mode change 120000 => 100644 gitlint-core/README.md diff --git a/gitlint-core/LICENSE b/gitlint-core/LICENSE deleted file mode 120000 index ea5b6064..00000000 --- a/gitlint-core/LICENSE +++ /dev/null @@ -1 +0,0 @@ -../LICENSE \ No newline at end of file diff --git a/gitlint-core/LICENSE b/gitlint-core/LICENSE new file mode 100644 index 00000000..122bd282 --- /dev/null +++ b/gitlint-core/LICENSE @@ -0,0 +1,22 @@ +The MIT License (MIT) + +Copyright (c) 2015 Joris Roovers + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + diff --git a/gitlint-core/README.md b/gitlint-core/README.md deleted file mode 120000 index 32d46ee8..00000000 --- a/gitlint-core/README.md +++ /dev/null @@ -1 +0,0 @@ -../README.md \ No newline at end of file diff --git a/gitlint-core/README.md b/gitlint-core/README.md new file mode 100644 index 00000000..dfbbe7fd --- /dev/null +++ b/gitlint-core/README.md @@ -0,0 +1,26 @@ +# Gitlint-core + +# gitlint: [jorisroovers.github.io/gitlint](http://jorisroovers.github.io/gitlint/) # + +[![Tests](https://github.com/jorisroovers/gitlint/workflows/Tests%20and%20Checks/badge.svg)](https://github.com/jorisroovers/gitlint/actions?query=workflow%3A%22Tests+and+Checks%22) +[![Coverage Status](https://coveralls.io/repos/github/jorisroovers/gitlint/badge.svg?branch=fix-coveralls)](https://coveralls.io/github/jorisroovers/gitlint?branch=fix-coveralls) +[![PyPi Package](https://img.shields.io/pypi/v/gitlint.png)](https://pypi.python.org/pypi/gitlint) +![Supported Python Versions](https://img.shields.io/pypi/pyversions/gitlint.svg) + +Git commit message linter written in python, checks your commit messages for style. + +**See [jorisroovers.github.io/gitlint](http://jorisroovers.github.io/gitlint/) for full documentation.** + + + + + +## Contributing ## +All contributions are welcome and very much appreciated! + +**I'm [looking for contributors](https://github.com/jorisroovers/gitlint/issues/134) that are interested in taking a more active co-maintainer role as it's becoming increasingly difficult for me to find time to maintain gitlint. Please leave a comment in [#134](https://github.com/jorisroovers/gitlint/issues/134) if you're interested!** + +See [jorisroovers.github.io/gitlint/contributing](http://jorisroovers.github.io/gitlint/contributing) for details on +how to get started - it's easy! + +We maintain a [loose project plan on Github Projects](https://github.com/users/jorisroovers/projects/1/views/1). diff --git a/gitlint-core/pyproject.toml b/gitlint-core/pyproject.toml index 309e76db..e65b7b0b 100644 --- a/gitlint-core/pyproject.toml +++ b/gitlint-core/pyproject.toml @@ -67,4 +67,5 @@ Homepage = "https://jorisroovers.github.io/gitlint" Documentation = "https://jorisroovers.github.io/gitlint" Source = "https://github.com/jorisroovers/gitlint/tree/main/gitlint-core" Changelog = "https://github.com/jorisroovers/gitlint/blob/main/CHANGELOG.md" -'Source Commit' = "https://github.com/jorisroovers/gitlint/tree/{commit_hash}/gitlint-core" \ No newline at end of file +# TODO(jorisroovers): Temporary disable until fixed in hatch-vcs (see #460) +# 'Source Commit' = "https://github.com/jorisroovers/gitlint/tree/{commit_hash}/gitlint-core" \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index c33f5b90..7435b667 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -45,8 +45,9 @@ Homepage = "https://jorisroovers.github.io/gitlint" Documentation = "https://jorisroovers.github.io/gitlint" Source = "https://github.com/jorisroovers/gitlint" Changelog = "https://github.com/jorisroovers/gitlint/blob/main/CHANGELOG.md" -'Source Archive' = "https://github.com/jorisroovers/gitlint/archive/{commit_hash}.zip" -'Source Commit' = "https://github.com/jorisroovers/gitlint/tree/{commit_hash}" +# TODO(jorisroovers): Temporary disable until fixed in hatch-vcs (see #460) +# 'Source Archive' = "https://github.com/jorisroovers/gitlint/archive/{commit_hash}.zip" +# 'Source Commit' = "https://github.com/jorisroovers/gitlint/tree/{commit_hash}" # Use metadata hooks specified in 'hatch_build.py' # (this line is critical when building wheels, when building sdist it seems optional)