diff --git a/VERSION b/VERSION deleted file mode 100644 index b1d7abc..0000000 --- a/VERSION +++ /dev/null @@ -1 +0,0 @@ -0.6.2 \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..d938e09 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,49 @@ +[build-system] +requires = ["setuptools>=42", "wheel"] +build-backend = "setuptools.build_meta" + +[project] +name = "jqfpy" +version = "0.6.2" +description = "jq for pythonista" +authors = [ + {name = "podhmo", email = "ababjam61+github@gmail.com"}, +] +keywords = ["jq"] +classifiers = [ + "Programming Language :: Python", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.5", + "Programming Language :: Python :: 3.6", + "Programming Language :: Python :: Implementation :: CPython", + "Programming Language :: Python :: Implementation :: PyPy", +] +dependencies = [ + "magicalimport", +] +license = {file = "LICENSE"} +urls = {Homepage = "https://github.com/podhmo/jqfpy"} + +# readme is dynamic and configured in [tool.setuptools.dynamic.readme] +dynamic = ["readme"] + +[project.optional-dependencies] +yaml = ["PyYAML"] +dev = ["black"] + +[project.scripts] +jqfpy = "jqfpy.__main__:main" + +[tool.setuptools] +include-package-data = true +zip-safe = false + +[tool.setuptools.packages.find] +where = ["."] +include = ["jqfpy*"] +exclude = ["jqfpy.tests*"] +namespaces = false + +[tool.setuptools.dynamic.readme] +file = ["README.md", "CHANGES.txt"] +content-type = "text/markdown" diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index 3480374..0000000 --- a/setup.cfg +++ /dev/null @@ -1,2 +0,0 @@ -[bdist_wheel] -universal=1 \ No newline at end of file diff --git a/setup.py b/setup.py deleted file mode 100644 index 3efa9d7..0000000 --- a/setup.py +++ /dev/null @@ -1,57 +0,0 @@ -import os -from setuptools import setup, find_packages - -here = os.path.abspath(os.path.dirname(__file__)) -try: - with open(os.path.join(here, "README.md")) as f: - README = f.read() - with open(os.path.join(here, "CHANGES.txt")) as f: - CHANGES = f.read() -except IOError: - README = CHANGES = "" - -install_requires = ["magicalimport"] - -docs_extras = [] - -yaml_extras = ["PyYAML"] - -tests_require = [] - -testing_extras = tests_require + [] - -setup( - name="jqfpy", - version=open("VERSION").read().strip(), - description="jq for pythonista", - long_description=README + "\n\n" + CHANGES, - long_description_content_type="text/markdown", - classifiers=[ - "Programming Language :: Python", - "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.5", - "Programming Language :: Python :: 3.6", - "Programming Language :: Python :: Implementation :: CPython", - "Programming Language :: Python :: Implementation :: PyPy", - ], - keywords="jq", - author="podhmo", - author_email="ababjam61+github@gmail.com", - url="https://github.com/podhmo/jqfpy", - packages=find_packages(exclude=["jqfpy.tests"]), - include_package_data=True, - zip_safe=False, - install_requires=install_requires, - extras_require={ - "testing": testing_extras, - "yaml": yaml_extras, - "docs": docs_extras, - "dev": ["black"], - }, - tests_require=tests_require, - test_suite="jqfpy.tests", - entry_points=""" - [console_scripts] - jqfpy=jqfpy.__main__:main -""", -)