Skip to content

Commit 100a48a

Browse files
committed
Moved all the metadata into setup.cfg.
Added pyproject.toml. Version info within package metadata is now maintained via setuptools_scm. Fixed the obsolete way of providing binaries. `scripts` must not be used, it is not Windows-compatible. The `console-scripts` entry point is (`pip` will generate a real PE exe on installation triggering right package importing and execution when the exe is launched).
1 parent 1dfe6e8 commit 100a48a

File tree

4 files changed

+32
-28
lines changed

4 files changed

+32
-28
lines changed

crudini renamed to crudini.py

File renamed without changes.

pyproject.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[build-system]
2+
requires = ["setuptools>=44", "wheel", "setuptools_scm[toml]>=3.4.3"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[tool.setuptools_scm]

setup.cfg

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
[metadata]
2+
name = crudini
3+
author = Pádraig Brady
4+
author_email = [email protected]
5+
license = GPLv2
6+
description = A utility for manipulating ini files
7+
keywords = ini, config, edit
8+
url = http://github.com/pixelb/crudini
9+
long_description = file: README
10+
long_description_content_type = text/markdown
11+
classifiers =
12+
Development Status :: 5 - Production/Stable
13+
Topic :: Utilities
14+
Topic :: System :: Systems Administration
15+
License :: OSI Approved :: GNU General Public License v2 (GPLv2)
16+
Programming Language :: Python :: 2
17+
Programming Language :: Python :: 3
18+
19+
[options]
20+
install_requires = iniparse>=0.5
21+
py_modules = crudini
22+
setup_requires = setuptools>=44; wheel; setuptools_scm[toml]>=3.4.3
23+
24+
[options.entry_points]
25+
console_scripts = crudini = crudini:main

setup.py

Lines changed: 2 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,6 @@
11
# -*- coding: utf-8 -*-
22

3-
import os
43
from setuptools import setup
54

6-
7-
def read(fname):
8-
return open(os.path.join(os.path.dirname(__file__), fname)).read()
9-
10-
11-
setup(
12-
name="crudini",
13-
version="0.9.3",
14-
author="Pádraig Brady",
15-
author_email="[email protected]",
16-
description=("A utility for manipulating ini files"),
17-
license="GPLv2",
18-
keywords="ini config edit",
19-
url="http://github.com/pixelb/crudini",
20-
long_description="```\n" + read('README') + "```\n",
21-
long_description_content_type="text/markdown",
22-
classifiers=[
23-
"Development Status :: 5 - Production/Stable",
24-
"Topic :: Utilities",
25-
"Topic :: System :: Systems Administration",
26-
"License :: OSI Approved :: GNU General Public License v2 (GPLv2)",
27-
"Programming Language :: Python :: 2",
28-
"Programming Language :: Python :: 3",
29-
],
30-
install_requires=['iniparse>=0.5'],
31-
scripts=["crudini"]
32-
)
5+
if __name__ == "__main__":
6+
setup()

0 commit comments

Comments
 (0)