diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..1ff4d63 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,65 @@ +[build-system] +requires = ["setuptools>=69.1", "wheel", "setuptools_scm[toml]>=6.2"] +build-backend = "setuptools.build_meta" + +[project] +name = "pubmed_parser" +description = "A python parser for Pubmed Open-Access Subset and MEDLINE XML repository" +readme = "README.md" +license = {text = "MIT (c) 2015 - 2024 Titipat Achakulvisut, Daniel E. Acuna"} +authors = [ + {name = "Titipat Achakulvisut", email = "my.titipat@gmail.com"} +] +maintainers = [ + {name = "Titipat Achakulvisut", email = "my.titipat@gmail.com"}, + {name = "Michael E. Rose", email = "Michael.Ernst.Rose@gmail.com"} +] +classifiers = [ + "Intended Audience :: Science/Research", + "Intended Audience :: Developers", + "License :: OSI Approved :: MIT License", + "Programming Language :: Python", + "Natural Language :: English", + "Topic :: Software Development", + "Topic :: Software Development :: Libraries :: Python Modules", + "Topic :: Scientific/Engineering", + "Topic :: Scientific/Engineering :: Information Analysis", + "Operating System :: Microsoft :: Windows", + "Operating System :: Unix", + "Operating System :: MacOS", + "Programming Language :: Python :: 3.6", + "Programming Language :: Python :: 3.7", + "Programming Language :: Python :: 3.8", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11" +] +keywords = [ + "Python", + "MEDLINE", + "PubMed", + "Biomedical corpus", + "Natural Language Processing" +] +dependencies = [ + "lxml", + "unidecode", + "requests", + "six", + "numpy" +] +dynamic = ["version"] + +[project.urls] +homepage = "https://github.com/titipata/pubmed_parser" +download = "https://github.com/titipata/pubmed_parser.git" +documentation = "http://titipata.github.io/pubmed_parser" +bug_tracker = "https://github.com/titipata/pubmed_parser/issues" + +[tool.setuptools.package-data] +"pubmed_parser.data" = ["*.xml.gz", "*.nxml", "*.txt"] + +[tool.setuptools.packages.find] +where = ["pubmed_parser"] + +[tool.setuptools_scm] diff --git a/requirements.txt b/requirements.txt deleted file mode 100644 index b9183a7..0000000 --- a/requirements.txt +++ /dev/null @@ -1,7 +0,0 @@ -lxml -unidecode -requests -six -numpy -pytest -pytest-cov \ No newline at end of file diff --git a/setup.py b/setup.py deleted file mode 100644 index 5c20f3c..0000000 --- a/setup.py +++ /dev/null @@ -1,59 +0,0 @@ -#! /usr/bin/env python -from setuptools import setup - -with open("README.md", "r", encoding="utf-8") as fh: - long_description = fh.read() - -if __name__ == "__main__": - setup( - name="pubmed_parser", - version="0.4.0", - description="A python parser for Pubmed Open-Access Subset and MEDLINE XML repository", - long_description=long_description, - long_description_content_type='text/markdown', - url="https://github.com/titipata/pubmed_parser", - download_url="https://github.com/titipata/pubmed_parser.git", - author="Titipat Achakulvisut", - author_email="my.titipat@gmail.com", - license="MIT (c) 2015 - 2019 Titipat Achakulvisut, Daniel E. Acuna", - install_requires=[ - "lxml", - "unidecode", - "requests", - "six", - "numpy", - "pytest", - "pytest-cov", - ], - packages=["pubmed_parser"], - package_data={"pubmed_parser.data": ["*.xml.gz", "*.nxml", "*.txt"],}, - keywords=[ - 'Python', - 'MEDLINE', - 'PubMed', - 'Biomedical corpus', - 'Natural Language Processing' - ], - classifiers=[ - "Intended Audience :: Science/Research", - "Intended Audience :: Developers", - "License :: OSI Approved :: MIT License", - "Programming Language :: Python", - "Topic :: Software Development", - "Topic :: Scientific/Engineering", - "Operating System :: Microsoft :: Windows", - "Operating System :: Unix", - "Operating System :: MacOS", - "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.5", - "Programming Language :: Python :: 3.6", - "Programming Language :: Python :: 3.7", - "Programming Language :: Python :: 3.8", - ], - platforms="any", - project_urls={ - "Source": "https://github.com/titipata/pubmed_parser", - "Documentation": "http://titipata.github.io/pubmed_parser", - "Bug Reports": "https://github.com/titipata/pubmed_parser/issues", - }, - )