Skip to content

Commit 89d4a14

Browse files
committed
switch to flit
1 parent 998d947 commit 89d4a14

File tree

5 files changed

+33
-59
lines changed

5 files changed

+33
-59
lines changed

MANIFEST.in

Lines changed: 0 additions & 2 deletions
This file was deleted.

modernize/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
"""
2+
A hack on top of fissix (lib2to3 fork) for modernizing code for hybrid codebases.
3+
"""
4+
15
from __future__ import generator_stop
26

37
__version__ = "0.8.1.dev0"

pyproject.toml

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,33 @@
11
[build-system]
2-
requires = [ "setuptools >= 35.0.2", "wheel >= 0.29.0"]
3-
build-backend = "setuptools.build_meta"
2+
requires = ["flit_core >=2,<4"]
3+
build-backend = "flit_core.buildapi"
4+
5+
[tool.flit.metadata]
6+
module = "modernize"
7+
author = "Armin Ronacher"
8+
author-email = "[email protected]"
9+
maintainer = "PyCQA"
10+
maintainer-email = "[email protected]"
11+
home-page = "https://github.com/PyCQA/modernize"
12+
classifiers = [
13+
"License :: OSI Approved :: BSD License",
14+
"Programming Language :: Python",
15+
"Programming Language :: Python :: 3",
16+
"Programming Language :: Python :: 3.6",
17+
"Programming Language :: Python :: 3.7",
18+
"Programming Language :: Python :: 3.8",
19+
]
20+
description-file = "README.rst"
21+
requires = ["fissix"]
22+
requires-python = "~=3.6"
23+
24+
[tool.flit.metadata.requires-extra]
25+
docs = ["sphinx~=3.2"]
26+
test = ["pytest", "pytest-cov", "coverage>=5.3"]
27+
28+
[tool.flit.scripts]
29+
modernize = "modernize.main:main"
30+
python-modernize = "modernize.main:main"
431

532
[tool.isort]
633
profile = "black"

setup.cfg

Lines changed: 0 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,3 @@
1-
[metadata]
2-
name = modernize
3-
author = Armin Ronacher
4-
author_email = [email protected]
5-
maintainer = PyCQA
6-
maintainer_email = [email protected]
7-
url = https://github.com/PyCQA/modernize
8-
description = A hack on top of fissix (lib2to3 fork) for modernizing code for hybrid codebases.
9-
long_description = file: README.rst
10-
classifiers =
11-
License :: OSI Approved :: BSD License
12-
Programming Language :: Python
13-
Programming Language :: Python :: 3
14-
Programming Language :: Python :: 3.6
15-
Programming Language :: Python :: 3.7
16-
Programming Language :: Python :: 3.8
17-
18-
[options]
19-
packages = find:
20-
zip_safe = False
21-
python_requires = ~=3.6
22-
install_requires = fissix
23-
24-
[options.entry_points]
25-
console_scripts =
26-
modernize = modernize.main:main
27-
python-modernize = modernize.main:main
28-
29-
[options.extras_require]
30-
docs =
31-
sphinx~=3.2
32-
test =
33-
pytest
34-
pytest-cov
35-
coverage>=5.3
36-
37-
[bdist_wheel]
38-
universal = 1
39-
401
[zest.releaser]
412
python-file-with-version = modernize/__init__.py
423
tag-format = v{version}

setup.py

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)