Skip to content

Commit 6a893bd

Browse files
authored
Merge pull request #446 from openSUSE-Python/setup_cfg
switch from setup.py to setup.cfg
2 parents c39dd07 + 1bcf288 commit 6a893bd

File tree

4 files changed

+42
-27
lines changed

4 files changed

+42
-27
lines changed

.releaserc.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@
1818
{
1919
"replacements": [
2020
{
21-
"files": ["setup.py"],
22-
"from": "version=\".*\"",
23-
"to": "version=\"${nextRelease.version}\"",
21+
"files": ["passgithelper.py"],
22+
"from": "__version__ = \".*\"",
23+
"to": "__version__ = \"${nextRelease.version}\"",
2424
"results": [
2525
{
26-
"file": "setup.py",
26+
"file": "passgithelper.py",
2727
"hasChanged": true,
2828
"numMatches": 1,
2929
"numReplacements": 1
@@ -37,7 +37,7 @@
3737
[
3838
"@semantic-release/git",
3939
{
40-
"assets": ["setup.py"]
40+
"assets": ["passgithelper.py"]
4141
}
4242
],
4343
"@semantic-release/github"

passgithelper.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222
import xdg.BaseDirectory
2323

2424

25+
__version__ = "3.1.0"
26+
2527
LOGGER = logging.getLogger()
2628
CONFIG_FILE_NAME = "git-pass-mapping.ini"
2729
DEFAULT_CONFIG_FILE = (

setup.cfg

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,37 @@
1+
[metadata]
2+
name = pass-git-helper
3+
version = attr: passgithelper.__version__
4+
author = Johannes Wienke
5+
author_email = [email protected]
6+
description = A git credential helper interfacing with pass, the standard Unix password manager
7+
license = LGPLv3+
8+
keywords =
9+
git
10+
passwords
11+
pass
12+
credentials
13+
password store
14+
classifiers =
15+
Programming Language :: Python :: 3
16+
Topic :: Utilities
17+
License :: OSI Approved ::
18+
GNU Lesser General Public License v3 or later (LGPLv3+)
19+
project_urls =
20+
home_page = https://github.com/languitar/pass-git-helper
21+
22+
[options]
23+
install_requires =
24+
pyxdg
25+
py_modules =
26+
passgithelper
27+
28+
[options.extras_require]
29+
test = pytest; pytest-coverage; pytest-mock
30+
31+
[options.entry_points]
32+
console_scripts =
33+
pass-git-helper = passgithelper:main
34+
135
[tool:pytest]
236
log_level = DEBUG
337
addopts =

setup.py

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,3 @@
11
from setuptools import setup
22

3-
4-
setup(
5-
name="pass-git-helper",
6-
version="3.1.0",
7-
install_requires=["pyxdg"],
8-
extras_require={"test": ["pytest", "pytest-coverage", "pytest-mock"]},
9-
py_modules=["passgithelper"],
10-
entry_points={"console_scripts": ["pass-git-helper = passgithelper:main"]},
11-
author="Johannes Wienke",
12-
author_email="[email protected]",
13-
url="https://github.com/languitar/pass-git-helper",
14-
description="A git credential helper interfacing with pass, "
15-
"the standard unix password manager.",
16-
license="LGPLv3+",
17-
keywords=["git", "passwords", "pass", "credentials", "password store"],
18-
classifiers=[
19-
"Programming Language :: Python :: 3",
20-
"Topic :: Utilities",
21-
"License :: OSI Approved :: "
22-
"GNU Lesser General Public License v3 or later (LGPLv3+)",
23-
],
24-
)
3+
setup()

0 commit comments

Comments
 (0)