Skip to content

Commit 6ba7f67

Browse files
committed
Use setup.cfg instead of setup.py
Much more readable, don't you think?
1 parent 711871f commit 6ba7f67

2 files changed

Lines changed: 29 additions & 35 deletions

File tree

setup.cfg

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,29 @@
11
[pycodestyle]
22
ignore=E221,E731
3+
4+
[metadata]
5+
name = python-cli-ui
6+
version = 0.7.4
7+
long_description = file: README.rst
8+
summary = Build Nice User Interfaces In The Terminal
9+
url = https://github.com/TankerHQ/python-cli-ui
10+
author = Dimitri Merejkowsky
11+
classifiers =
12+
Programming Language :: Python :: 3.4
13+
Programming Language :: Python :: 3.5
14+
Programming Language :: Python :: 3.6
15+
Programming Language :: Python :: 3.7
16+
17+
[options]
18+
packages: find:
19+
install_requires =
20+
colorama
21+
tabulate
22+
unidecode
23+
24+
[options.extras_require]
25+
dev =
26+
sphinx
27+
ghp-import
28+
pytest
29+
pyflakes

setup.py

Lines changed: 2 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,7 @@
11
import sys
2-
from setuptools import setup, find_packages
2+
import setuptools
33

44
if sys.version_info.major < 3:
55
sys.exit("Error: Please upgrade to Python3")
66

7-
8-
def get_long_description():
9-
with open("README.rst") as fp:
10-
return fp.read()
11-
12-
13-
setup(name="python-cli-ui",
14-
version="0.7.4",
15-
description="Build Nice User Interfaces In The Terminal",
16-
long_description=get_long_description(),
17-
url="https://github.com/TankerHQ/python-cli-ui",
18-
author="Dimitri Merejkowsky",
19-
packages=find_packages(),
20-
include_package_data=True,
21-
install_requires=[
22-
"colorama",
23-
"tabulate",
24-
"unidecode",
25-
],
26-
extras_require={
27-
"dev": [
28-
"sphinx",
29-
"ghp-import",
30-
"pytest",
31-
"pyflakes",
32-
],
33-
},
34-
classifiers=[
35-
"Programming Language :: Python :: 3.4",
36-
"Programming Language :: Python :: 3.5",
37-
"Programming Language :: Python :: 3.6",
38-
"Programming Language :: Python :: 3.7",
39-
],
40-
)
7+
setuptools.setup()

0 commit comments

Comments
 (0)