diff --git a/astpath/cli.py b/astpath/__main__.py similarity index 100% rename from astpath/cli.py rename to astpath/__main__.py diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..66ddafd --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,5 @@ +[build-system] +requires = ["setuptools>=44", "wheel", "setuptools_scm[toml]>=3.4.3"] +build-backend = "setuptools.build_meta" + +[tool.setuptools_scm] diff --git a/setup.cfg b/setup.cfg index beda73b..24c1a31 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,4 +1,28 @@ [metadata] -provides-extra = xpath -requires-dist = - lxml>=3.3.5; extra == 'xpath' +name = astpath +author = H. Chase Stevens +author_email = chase@chasestevens.com +license = MIT +description = A query language for Python abstract syntax trees +long_description = file: README.md +long_description_content_type = text/markdown +keywords = xpath, xml, ast, asts, syntax, query +url = https://github.com/hchasestevens/astpath +classifiers = + Development Status :: 3 - Alpha + Programming Language :: Python + Programming Language :: Python :: 2 + Programming Language :: Python :: 2.7 + Intended Audience :: Developers + Operating System :: OS Independent + License :: OSI Approved :: MIT License + Natural Language :: English + +[options] +packages = astpath + +[options.entry_points] +console_scripts = astpath = astpath.__main__:main + +[options.extras_require] +xpath = lxml>=3.3.5 diff --git a/setup.py b/setup.py deleted file mode 100644 index 69e0b71..0000000 --- a/setup.py +++ /dev/null @@ -1,33 +0,0 @@ -"""Setup for astpath, adds astpath console_script.""" - -from setuptools import setup - -setup( - name='astpath', - packages=['astpath'], - version='0.9.1', - description='A query language for Python abstract syntax trees', - license='MIT', - author='H. Chase Stevens', - author_email='chase@chasestevens.com', - url='https://github.com/hchasestevens/astpath', - extras_require={ - 'xpath': ['lxml>=3.3.5', ] - }, - entry_points={ - 'console_scripts': [ - 'astpath = astpath.cli:main', - ] - }, - keywords='xpath xml ast asts syntax query', - classifiers=[ - 'Development Status :: 3 - Alpha', - 'Programming Language :: Python', - 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 2.7', - 'Intended Audience :: Developers', - 'Operating System :: OS Independent', - 'License :: OSI Approved :: MIT License', - 'Natural Language :: English', - ] -)