Skip to content

Commit

Permalink
Merge pull request #446 from openSUSE-Python/setup_cfg
Browse files Browse the repository at this point in the history
switch from setup.py to setup.cfg
  • Loading branch information
languitar authored Jan 27, 2025
2 parents c39dd07 + 1bcf288 commit 6a893bd
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 27 deletions.
10 changes: 5 additions & 5 deletions .releaserc.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@
{
"replacements": [
{
"files": ["setup.py"],
"from": "version=\".*\"",
"to": "version=\"${nextRelease.version}\"",
"files": ["passgithelper.py"],
"from": "__version__ = \".*\"",
"to": "__version__ = \"${nextRelease.version}\"",
"results": [
{
"file": "setup.py",
"file": "passgithelper.py",
"hasChanged": true,
"numMatches": 1,
"numReplacements": 1
Expand All @@ -37,7 +37,7 @@
[
"@semantic-release/git",
{
"assets": ["setup.py"]
"assets": ["passgithelper.py"]
}
],
"@semantic-release/github"
Expand Down
2 changes: 2 additions & 0 deletions passgithelper.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
import xdg.BaseDirectory


__version__ = "3.1.0"

LOGGER = logging.getLogger()
CONFIG_FILE_NAME = "git-pass-mapping.ini"
DEFAULT_CONFIG_FILE = (
Expand Down
34 changes: 34 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,3 +1,37 @@
[metadata]
name = pass-git-helper
version = attr: passgithelper.__version__
author = Johannes Wienke
author_email = [email protected]
description = A git credential helper interfacing with pass, the standard Unix password manager
license = LGPLv3+
keywords =
git
passwords
pass
credentials
password store
classifiers =
Programming Language :: Python :: 3
Topic :: Utilities
License :: OSI Approved ::
GNU Lesser General Public License v3 or later (LGPLv3+)
project_urls =
home_page = https://github.com/languitar/pass-git-helper

[options]
install_requires =
pyxdg
py_modules =
passgithelper

[options.extras_require]
test = pytest; pytest-coverage; pytest-mock

[options.entry_points]
console_scripts =
pass-git-helper = passgithelper:main

[tool:pytest]
log_level = DEBUG
addopts =
Expand Down
23 changes: 1 addition & 22 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,24 +1,3 @@
from setuptools import setup


setup(
name="pass-git-helper",
version="3.1.0",
install_requires=["pyxdg"],
extras_require={"test": ["pytest", "pytest-coverage", "pytest-mock"]},
py_modules=["passgithelper"],
entry_points={"console_scripts": ["pass-git-helper = passgithelper:main"]},
author="Johannes Wienke",
author_email="[email protected]",
url="https://github.com/languitar/pass-git-helper",
description="A git credential helper interfacing with pass, "
"the standard unix password manager.",
license="LGPLv3+",
keywords=["git", "passwords", "pass", "credentials", "password store"],
classifiers=[
"Programming Language :: Python :: 3",
"Topic :: Utilities",
"License :: OSI Approved :: "
"GNU Lesser General Public License v3 or later (LGPLv3+)",
],
)
setup()

0 comments on commit 6a893bd

Please sign in to comment.