diff --git a/pyproject.toml b/pyproject.toml index 66ddafd..4bbb465 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -2,4 +2,46 @@ requires = ["setuptools>=44", "wheel", "setuptools_scm[toml]>=3.4.3"] build-backend = "setuptools.build_meta" +[project] +name = "esprima" +authors = [{name = "German M. Bravo (Kronuz)", email = "german.mb@gmail.com"}] +license = {text = "BSD-2-Clause"} +description = "ECMAScript parsing infrastructure for multipurpose analysis in Python" +readme = "README.rst" +keywords = [ + "esprima", + "ecmascript", + "javascript", + "parser", + "ast", +] +classifiers = [ + "Development Status :: 5 - Production/Stable", + "Intended Audience :: Developers", + "License :: OSI Approved :: BSD License", + "Operating System :: OS Independent", + "Topic :: Software Development :: Code Generators", + "Topic :: Software Development :: Compilers", + "Topic :: Software Development :: Libraries :: Python Modules", + "Topic :: Text Processing :: General", + "Programming Language :: Python", + "Programming Language :: Python :: 2", + "Programming Language :: Python :: 2.7", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.3", + "Programming Language :: Python :: 3.4", + "Programming Language :: Python :: 3.5", + "Programming Language :: Python :: 3.6", +] +urls = {Homepage = "https://github.com/Kronuz/esprima-python"} +dynamic = ["version"] + +[project.scripts] +esprima = "esprima.__main__:main" + +[tool.setuptools] +packages = ["esprima"] +license-files = ["LICENSE.BSD"] +include-package-data = false + [tool.setuptools_scm] diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index 1a99fe3..0000000 --- a/setup.cfg +++ /dev/null @@ -1,41 +0,0 @@ -[metadata] -name = esprima -version = 4.0.1 -author = German M. Bravo (Kronuz) -author_email = german.mb@gmail.com -license = BSD-2-Clause -license_files = LICENSE.BSD -description = ECMAScript parsing infrastructure for multipurpose analysis in Python -keywords = - esprima - ecmascript - javascript - parser - ast -url = https://github.com/Kronuz/esprima-python -long_description = file: README.rst -long_description_content_type = text/x-rst -classifiers = - Development Status :: 5 - Production/Stable - Intended Audience :: Developers - License :: OSI Approved :: BSD License - Operating System :: OS Independent - Topic :: Software Development :: Code Generators - Topic :: Software Development :: Compilers - Topic :: Software Development :: Libraries :: Python Modules - Topic :: Text Processing :: General - Programming Language :: Python - Programming Language :: Python :: 2 - Programming Language :: Python :: 2.7 - Programming Language :: Python :: 3 - Programming Language :: Python :: 3.3 - Programming Language :: Python :: 3.4 - Programming Language :: Python :: 3.5 - Programming Language :: Python :: 3.6 - -[options] -packages = esprima -setup_requires = setuptools>=44; wheel; setuptools_scm[toml]>=3.4.3 - -[options.entry_points] -console_scripts = esprima = esprima.__main__:main diff --git a/setup.py b/setup.py deleted file mode 100644 index 1314683..0000000 --- a/setup.py +++ /dev/null @@ -1,6 +0,0 @@ -# -*- coding: utf-8 -*- - -from setuptools import setup - -if __name__ == "__main__": - setup()