From caa1336abe633e408eb4654b2f184541104f8d0e Mon Sep 17 00:00:00 2001 From: Parashar Date: Fri, 9 Jul 2021 04:39:26 +0200 Subject: [PATCH] optimizing deployment to pypi --- MANIFEST.in | 16 ++++++++++++++++ MANIFEST.ini | 6 ------ VERSION | 2 +- pyproject.toml | 2 +- setup.py | 4 +--- 5 files changed, 19 insertions(+), 11 deletions(-) create mode 100644 MANIFEST.in delete mode 100644 MANIFEST.ini diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 0000000..e2e2038 --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1,16 @@ +recursive-exclude * __pycache__ +recursive-exclude * *.pyc +recursive-exclude * *.pyo +exclude .gitignore +exclude .gitattribute +exclude .readthedocs.yml +exclude Dockerfile +exclude push_pypi.sh +prune scarf_toolkit.egg-info +prune docs +prune scarf/tests +prune .circleci +prune .github +include requirements.txt +include VERSION +graft bin diff --git a/MANIFEST.ini b/MANIFEST.ini deleted file mode 100644 index 1b19ccc..0000000 --- a/MANIFEST.ini +++ /dev/null @@ -1,6 +0,0 @@ -recursive-exclude * __pycache__ -recursive-exclude * *.pyc -recursive-exclude * *.pyo -exclude .gitignore -exclude data -exclude docs diff --git a/VERSION b/VERSION index ee94dd8..b60d719 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.8.3 +0.8.4 diff --git a/pyproject.toml b/pyproject.toml index f02da61..260d93a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [build.system] requires = ["setuptools", "wheel"] -build-backend = "setuptools.build_meta:__legacy__" +build-backend = "setuptools.build_meta" [tool.pytest.ini_options] minversion = "6.0" diff --git a/setup.py b/setup.py index bf41ee9..2b34ee3 100644 --- a/setup.py +++ b/setup.py @@ -34,9 +34,7 @@ def run(self): "Development Status :: 4 - Beta", "License :: OSI Approved :: BSD License", "Natural Language :: English", - 'Operating System :: POSIX :: Linux', "Programming Language :: Python :: 3", - 'Programming Language :: Python :: 3.7', ] keywords = ['store'] version = open('VERSION').readline().rstrip('\n') @@ -56,7 +54,7 @@ def run(self): install_requires=install_requires, dependency_links=dependency_links, version=version, - packages=find_packages(exclude=['data']), + packages=find_packages(), include_package_data=False, cmdclass={'install': PostInstallCommand} )