From 1d87ae0c56308b27c6621ff2ad73b2094a754c30 Mon Sep 17 00:00:00 2001 From: rohangupta Date: Thu, 17 Jun 2021 15:15:15 +0530 Subject: [PATCH] Switch to PEP 517 build Updated setup.cfg, deleted setup.py and added build time requirements in pyproject.toml to shift the build process to PEP 517. --- pyproject.toml | 2 ++ setup.cfg | 33 ++++++++++++++++++++++++++++++++- setup.py | 35 ----------------------------------- 3 files changed, 34 insertions(+), 36 deletions(-) create mode 100644 pyproject.toml delete mode 100644 setup.py diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..c753eee --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,2 @@ +[build-system] +requires = ["cython", "setuptools", "wheel"] diff --git a/setup.cfg b/setup.cfg index ebdbfbf..b664bc2 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,3 +1,34 @@ # Changes required for PyPI [metadata]: -description-file = README.md \ No newline at end of file +name = vcf2fhir +version = 0.0.17 +description = Convert .vcf files to HL7 FHIR standard +long_description = file: README.md +long_description_content_type = text/markdown +license = Apache Software License +author = "" +author_email = info@elimu.io +url = https://github.com/elimuinformatics/vcf2fhir +classifiers = + Programming Language :: Python :: 3 + Operating System :: OS Independent + License :: OSI Approved :: Apache Software License + +[options] +test_suite = vcf2fhir.test.test_vcf2fhir.suite +setup_requires = + setuptools +packages = + vcf2fhir + vcf2fhir.test +python_version = >=3.6 +install_requires = + Cython>=0.29.21 + fhirclient==3.2.0 + pysam + pandas + pytz>=2019.3 + pyVCF>=0.6.8 + pyranges>=0.0.96 +tests_require = + unittest diff --git a/setup.py b/setup.py deleted file mode 100644 index 786d7dd..0000000 --- a/setup.py +++ /dev/null @@ -1,35 +0,0 @@ -import setuptools - -with open("README.md", "r") as fh: - long_description = fh.read() - -setuptools.setup( - name="vcf2fhir", - version="0.0.17", - author="", - test_suite='vcf2fhir.test.test_vcf2fhir.suite', - author_email="info@elimu.io", - description="Convert .vcf files to HL7 FHIR standard", - long_description=long_description, - long_description_content_type="text/markdown", - url="https://github.com/elimuinformatics/vcf2fhir", - packages=['vcf2fhir', 'vcf2fhir.test'], - classifiers=[ - "Programming Language :: Python :: 3", - "Operating System :: OS Independent", - "License :: OSI Approved :: Apache Software License" - ], - tests_require=[ - 'unittest', - ], - install_requires=[ - 'Cython >=0.29.21', - 'fhirclient==3.2.0', - 'pysam', - 'pandas', - 'pytz >= 2019.3', - 'pyVCF >=0.6.8', - 'pyranges >= 0.0.96' - ], - python_requires='>=3.6', -)