Nv7-GitHub / googlesearch

A Python library for scraping the Google search engine.
https://pypi.org/project/googlesearch-python/
MIT License
480 stars 117 forks source link

Build file error (with fix) #47

Closed SBGit-2019 closed 1 year ago

SBGit-2019 commented 1 year ago

I think your build file for building the wheel is not fully correct. To build the wheel using python -m build . you should do

  1. Add a MANIFEST.in file in the root directory containing
    include requirements.txt
  2. Change your setup.py slightly to
    
    from setuptools import setup

with open("README.md", "r", encoding='UTF-8') as fh: long_description = fh.read()

with open("requirements.txt", "r", encoding='UTF-8') as fh: requirements = fh.read().split("\n")

setup( name="googlesearch-python", version="1.2.0", author="Nishant Vikramaditya", author_email="junk4Nv7@gmail.com", description="A Python library for scraping the Google search engine.", long_description=long_description, long_description_content_type="text/markdown", url="https://github.com/Nv7-GitHub/googlesearch", packages=["googlesearch"], classifiers=[ "Programming Language :: Python :: 3", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", ], python_requires=">=3.6", install_requires=requirements, include_package_data=True, # Include additional files specified in MANIFEST.in )



Tested with python >=3.9 it builds the wheel and the source dist.
Nv7-GitHub commented 1 year ago

Finished! Thanks for the help, I didn't know that this change occurred