Skip to content

Commit

Permalink
Remove name == main block
Browse files Browse the repository at this point in the history
  • Loading branch information
rogerbinns committed Sep 13, 2023
1 parent 8ae9395 commit 5707933
Showing 1 changed file with 39 additions and 40 deletions.
79 changes: 39 additions & 40 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -805,43 +805,42 @@ def get_icu_config() -> IcuConfig | None:
# We depend on every .[ch] file in src
depends = [f for f in glob.glob("src/*.[ch]") if f != "src/apsw.c"]

if __name__ == '__main__':
setup(name="apsw",
version=version,
python_requires=">=3.8",
description="Another Python SQLite Wrapper",
long_description=pathlib.Path("README.rst").read_text(encoding="utf8"),
long_description_content_type="text/x-rst",
author="Roger Binns",
author_email="[email protected]",
url="https://github.com/rogerbinns/apsw/",
project_urls=project_urls,
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved",
"Programming Language :: C",
"Programming Language :: Python :: 3",
"Topic :: Database :: Front-Ends",
],
keywords=["database", "sqlite"],
license="OSI Approved",
platforms="any",
ext_modules=[
Extension("apsw.__init__", ["src/apsw.c"],
include_dirs=include_dirs,
library_dirs=library_dirs,
libraries=libraries,
define_macros=define_macros,
depends=depends)
],
packages=["apsw"],
package_data={"apsw": ["__init__.pyi", "py.typed"]},
cmdclass={
'test': run_tests,
'build_test_extension': build_test_extension,
'fetch': fetch,
'build_ext': apsw_build_ext,
'build': apsw_build,
'sdist': apsw_sdist,
})
setup(name="apsw",
version=version,
python_requires=">=3.8",
description="Another Python SQLite Wrapper",
long_description=pathlib.Path("README.rst").read_text(encoding="utf8"),
long_description_content_type="text/x-rst",
author="Roger Binns",
author_email="[email protected]",
url="https://github.com/rogerbinns/apsw/",
project_urls=project_urls,
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved",
"Programming Language :: C",
"Programming Language :: Python :: 3",
"Topic :: Database :: Front-Ends",
],
keywords=["database", "sqlite"],
license="OSI Approved",
platforms="any",
ext_modules=[
Extension("apsw.__init__", ["src/apsw.c"],
include_dirs=include_dirs,
library_dirs=library_dirs,
libraries=libraries,
define_macros=define_macros,
depends=depends)
],
packages=["apsw"],
package_data={"apsw": ["__init__.pyi", "py.typed"]},
cmdclass={
'test': run_tests,
'build_test_extension': build_test_extension,
'fetch': fetch,
'build_ext': apsw_build_ext,
'build': apsw_build,
'sdist': apsw_sdist,
})

0 comments on commit 5707933

Please sign in to comment.