X Tutup
Skip to content

Commit f3cc220

Browse files
committed
Use declarative build config as much as possible
1 parent c115cb9 commit f3cc220

File tree

3 files changed

+45
-50
lines changed

3 files changed

+45
-50
lines changed

pyproject.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
[build-system]
2+
requires = [
3+
"setuptools >= 43",
4+
"wheel",
5+
]
6+
17
[tool.black]
28
line-length = 80
39
target_version = ["py36"]

setup.cfg

Lines changed: 39 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,43 @@
11
[metadata]
2-
license_files = LICENSE
2+
name = bpython
3+
long_description = file: README.rst
4+
license = MIT
5+
license_file = LICENSE
6+
url = https://www.bpython-interpreter.org/
7+
project_urls =
8+
GitHub = https://github.com/bpython/bpython
9+
Documentation = https://doc.bpython-interpreter.org
10+
classifiers =
11+
Programming Language :: Python :: 3
12+
13+
[options]
14+
python_requires = >=3.6
15+
packages =
16+
bpython
17+
bpython.curtsiesfrontend
18+
bpython.test
19+
bpython.test.fodder
20+
bpython.translations
21+
bpdb
22+
install_requires =
23+
pygments
24+
requests
25+
curtsies >=0.3.5
26+
greenlet
27+
cwcwidth
28+
pyxdg
29+
30+
[options.extras_require]
31+
urwid = urwid
32+
watch = watchdog
33+
jedi = jedi >= 0.16
34+
35+
[options.entry_points]
36+
console_scripts =
37+
bpython = bpython.curtsies:main
38+
bpython-curses = bpython.cli:main
39+
bpython-urwid = bpython.urwid:main [urwid]
40+
bpdb = bpdb:main
341

442
[init_catalog]
543
domain = bpython

setup.py

Lines changed: 0 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -170,43 +170,6 @@ def git_describe_to_python_version(version):
170170
]
171171
data_files.extend(man_pages)
172172

173-
classifiers = [
174-
"Programming Language :: Python :: 3",
175-
]
176-
177-
install_requires = [
178-
"pygments",
179-
"requests",
180-
"curtsies >=0.3.5",
181-
"greenlet",
182-
"cwcwidth",
183-
"pyxdg",
184-
]
185-
186-
extras_require = {
187-
"urwid": ["urwid"],
188-
"watch": ["watchdog"],
189-
"jedi": ["jedi >=0.16"],
190-
}
191-
192-
packages = [
193-
"bpython",
194-
"bpython.curtsiesfrontend",
195-
"bpython.test",
196-
"bpython.test.fodder",
197-
"bpython.translations",
198-
"bpdb",
199-
]
200-
201-
entry_points = {
202-
"console_scripts": [
203-
"bpython = bpython.curtsies:main",
204-
"bpython-curses = bpython.cli:main",
205-
"bpython-urwid = bpython.urwid:main [urwid]",
206-
"bpdb = bpdb:main",
207-
]
208-
}
209-
210173
# translations
211174
mo_files = []
212175
for language in os.listdir(translations_dir):
@@ -215,27 +178,15 @@ def git_describe_to_python_version(version):
215178
mo_files.append(mo_subpath)
216179

217180
setup(
218-
name="bpython",
219181
version=version,
220182
author=__author__,
221183
author_email="robertanthonyfarrell@gmail.com",
222-
description="Fancy Interface to the Python Interpreter",
223-
license="MIT/X",
224-
url="https://www.bpython-interpreter.org/",
225-
long_description="""bpython is a fancy interface to the Python
226-
interpreter for Unix-like operating systems.""",
227-
classifiers=classifiers,
228-
python_requires=">=3.6",
229-
install_requires=install_requires,
230-
extras_require=extras_require,
231-
packages=packages,
232184
data_files=data_files,
233185
package_data={
234186
"bpython": ["sample-config"],
235187
"bpython.translations": mo_files,
236188
"bpython.test": ["test.config", "test.theme"],
237189
},
238-
entry_points=entry_points,
239190
cmdclass=cmdclass,
240191
test_suite="bpython.test",
241192
)

0 commit comments

Comments
 (0)
X Tutup