From a080c9d4d5d9e6cf534b7e348ccdb03201a5d3de Mon Sep 17 00:00:00 2001 From: Chun Ly Date: Tue, 5 Jan 2021 09:20:09 -0700 Subject: [PATCH 1/3] Minimum version requirements for install_requires - Add classifiers and python_requires --- setup.py | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 5515f2e4..92cc4715 100644 --- a/setup.py +++ b/setup.py @@ -14,5 +14,20 @@ description='Set of common codes used in metallicity studies that use stacking techniques', long_description=long_description, long_description_content_type="text/markdown", - install_requires=['numpy', 'astropy', 'matplotlib', 'scipy', 'requests', 'pytest'] + install_requires=[ + 'numpy>=1.18.4', + 'astropy>=3.2.2', + 'matplotlib>=3.1.1', + 'scipy>=1.3.1', + 'requests>=2.22.0', + 'pytest' + ], + python_requires='>=3.7', + classifiers=[ + 'Development Status :: 4 - Beta', + 'Programming Language :: Python :: 3 :: Only', + 'Programming Language :: Python :: 3.7', + 'Programming Language :: Python :: 3.8', + 'Programming Language :: Python :: 3.9' + ] ) From b8951c73363f436ac17f87d82905dcd353370d7a Mon Sep 17 00:00:00 2001 From: Chun Ly Date: Tue, 5 Jan 2021 09:20:28 -0700 Subject: [PATCH 2/3] Add MANIFEST.in --- MANIFEST.in | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 MANIFEST.in diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 00000000..c1a7121c --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1,2 @@ +include LICENSE +include README.md From 1210d3bea13aa1f589f458f9259479d4b0ff150c Mon Sep 17 00:00:00 2001 From: Chun Ly Date: Thu, 11 Mar 2021 22:52:00 -0700 Subject: [PATCH 3/3] Use find_namespace_packages for full code PyPI packaging --- setup.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/setup.py b/setup.py index 92cc4715..35af84bd 100644 --- a/setup.py +++ b/setup.py @@ -1,12 +1,12 @@ -from setuptools import setup +from setuptools import setup, find_namespace_packages with open("README.md", "r") as fh: long_description = fh.read() setup( - name='Metallicity_Stack_Commons', - version='1.2.0', - packages=['Metallicity_Stack_Commons'], + name='msc-astro', + version='1.4.4', + packages=find_namespace_packages(), url='https://github.com/astrochun/Metallicity_Stack_Commons', license='MIT License', author='Chun Ly',