Skip to content

Commit 5e01708

Browse files
committed
move to declarative metadata
1 parent e49adf4 commit 5e01708

File tree

3 files changed

+59
-52
lines changed

3 files changed

+59
-52
lines changed

.pre-commit-config.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ repos:
1212
rev: v1.6.0
1313
hooks:
1414
- id: autopep8
15+
- repo: https://github.com/asottile/setup-cfg-fmt
16+
rev: v1.20.0
17+
hooks:
18+
- id: setup-cfg-fmt
1519
- repo: https://github.com/pycqa/flake8
1620
rev: 4.0.1
1721
hooks:

setup.cfg

+53
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,56 @@
1+
[metadata]
2+
name = refactorlib
3+
version = attr: refactorlib.__version__
4+
description = A library to help automate refactoring
5+
long_description = file: README.markdown
6+
long_description_content_type = text/markdown
7+
url = http://github.com/bukzor/RefactorLib/
8+
author = Buck Golemon
9+
author_email = [email protected]
10+
license = BSD
11+
platforms = any
12+
classifiers =
13+
Development Status :: 1 - Planning
14+
Intended Audience :: Developers
15+
License :: OSI Approved :: BSD License
16+
Natural Language :: English
17+
Operating System :: OS Independent
18+
Programming Language :: Python
19+
Programming Language :: Python :: 3
20+
Programming Language :: Python :: 3 :: Only
21+
Programming Language :: Python :: 3.7
22+
Programming Language :: Python :: 3.8
23+
Programming Language :: Python :: 3.9
24+
Programming Language :: Python :: 3.10
25+
Programming Language :: Python :: Implementation :: CPython
26+
Topic :: Software Development :: Libraries :: Python Modules
27+
28+
[options]
29+
packages = find:
30+
install_requires =
31+
cached-property
32+
lxml>=2.2
33+
six
34+
python_requires = >=3.7
35+
36+
[options.packages.find]
37+
exclude =
38+
tests*
39+
testing*
40+
41+
[options.entry_points]
42+
console_scripts =
43+
xmlfrom = refactorlib.cli.xmlfrom:cli
44+
xmlstrip = refactorlib.cli.xmlstrip:cli
45+
46+
[options.extras_require]
47+
cheetah =
48+
yelp-cheetah>=0.19.0,<=0.19.999
49+
50+
[options.package_data]
51+
refactorlib =
52+
javascript/reflectjs.js
53+
154
[bdist_wheel]
255
universal = True
356

setup.py

+2-52
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,2 @@
1-
import setuptools
2-
3-
from refactorlib import __version__
4-
5-
6-
setuptools.setup(
7-
name='refactorlib',
8-
version=__version__,
9-
author='Buck Golemon',
10-
author_email='[email protected]',
11-
description='A library to help automate refactoring',
12-
long_description=open('README.markdown').read(),
13-
url='http://github.com/bukzor/RefactorLib/',
14-
packages=setuptools.find_packages(exclude=('tests*', 'testing*')),
15-
platforms='any',
16-
license='BSD',
17-
18-
python_requires='>= 3.7',
19-
install_requires=[
20-
'cached-property',
21-
'lxml>=2.2', # We run with 2.2.4.0
22-
'six',
23-
],
24-
extras_require={
25-
'cheetah': ['yelp_cheetah>=0.19.0,<=0.19.999'],
26-
},
27-
28-
entry_points={
29-
'console_scripts': [
30-
'xmlfrom = refactorlib.cli.xmlfrom:cli',
31-
'xmlstrip = refactorlib.cli.xmlstrip:cli',
32-
],
33-
},
34-
package_data={
35-
'refactorlib': [
36-
'javascript/reflectjs.js',
37-
],
38-
},
39-
40-
# See http://pypi.python.org/pypi?%3Aaction==list_classifiers
41-
classifiers=[
42-
'Development Status :: 1 - Planning',
43-
'Intended Audience :: Developers',
44-
'License :: OSI Approved :: BSD License',
45-
'Natural Language :: English',
46-
'Operating System :: OS Independent',
47-
'Programming Language :: Python',
48-
'Programming Language :: Python :: 3',
49-
'Programming Language :: Python :: 3 :: Only',
50-
'Topic :: Software Development :: Libraries :: Python Modules',
51-
],
52-
)
1+
from setuptools import setup
2+
setup()

0 commit comments

Comments
 (0)