-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch to pyproject.toml and hatchling and get rid of setuptools_scm_…
…git_archive (#808) Switch to pyproject.toml and hatchling and get rid of setuptools_scm_git_archive Fixes #798. Fixes #805. Reviewed-by: Jiri Popelka
- Loading branch information
Showing
9 changed files
with
93 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
node: $Format:%H$ | ||
node-date: $Format:%cI$ | ||
describe-name: $Format:%(describe:tags=true)$ | ||
ref-names: $Format:%D$ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
# Needed for setuptools-scm-git-archive | ||
# Needed for setuptools-scm | ||
.git_archival.txt export-subst |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
[build-system] | ||
requires = ["hatchling", "hatch-vcs"] | ||
build-backend = "hatchling.build" | ||
|
||
[project] | ||
name = "ogr" | ||
authors = [ | ||
{ name = "Red Hat", email = "user-cont-team@redhat.com" }, | ||
] | ||
description = "One API for multiple git forges." | ||
license = "MIT" | ||
license-files = { paths = ["LICENSE"] } | ||
requires-python = ">=3.9" | ||
classifiers = [ | ||
"Development Status :: 4 - Beta", | ||
"Intended Audience :: Developers", | ||
"License :: OSI Approved :: MIT License", | ||
"Operating System :: POSIX :: Linux", | ||
"Programming Language :: Python", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3 :: Only", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Topic :: Software Development", | ||
"Topic :: Utilities", | ||
] | ||
dynamic = ["version"] | ||
keywords = [ | ||
"git", | ||
"api", | ||
"github", | ||
"gitlab", | ||
"pagure", | ||
] | ||
dependencies = [ | ||
"cryptography", | ||
"Deprecated", | ||
"GitPython", | ||
"PyGithub", | ||
"python-gitlab", | ||
"PyYAML", | ||
"requests", | ||
"urllib3", | ||
] | ||
|
||
[project.urls] | ||
Homepage = "https://github.com/packit/ogr" | ||
|
||
[project.optional-dependencies] | ||
testing = [ | ||
"pytest", | ||
"pytest-cov", | ||
"flexmock", | ||
] | ||
|
||
[tool.hatch.version] | ||
source = "vcs" | ||
# we can't use pre-release-based version scheme because it generates versions | ||
# that are sorted higher than the last stable release by RPM | ||
# for example: | ||
# - pre-release (guess-next-dev): | ||
# 0.20.1.dev1+g0abcdef.d20230921 > 0.20.1 | ||
# - post-release (no-guess-dev): | ||
# 0.20.0.post1.dev1+g0abcdef < 0.20.1 | ||
raw-options.version_scheme = "no-guess-dev" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters