"flake8", "black", "rope", ] if os.name == "nt": install_reqs.append("pywin32") with open("README.rst", "rb") as f: long_description = f.read().decode("utf-8") packages = [x for x in find_packages() if x.startswith("gphotos")] setup( name=module_name, cmdclass=get_cmdclass(), version=__version__, python_requires=">=3.6", license="MIT", platforms=["Linux", "Windows", "Mac"], description="Google Photos and Albums backup tool", packages=packages, entry_points={"console_scripts": ["gphotos-sync = gphotos.Main:main"]}, long_description=long_description, install_requires=install_reqs, extras_require={"dev": develop_reqs}, package_data={"": ["gphotos/sql/gphotos_create.sql", "LICENSE"]}, include_package_data=True, author="Giles Knap", author_email="*****@*****.**", url="https://github.com/gilesknap/gphotos-sync",
import os import sys from setuptools import setup # Place the directory containing _version_git on the path for path, _, filenames in os.walk(os.path.dirname(os.path.abspath(__file__))): if "_version_git.py" in filenames: sys.path.append(path) break from _version_git import __version__, get_cmdclass # noqa # Setup information is stored in setup.cfg but this function call # is still necessary. setup(cmdclass=get_cmdclass(), version=__version__)
define_macros=get_config_var('CPPFLAGS'), extra_compile_args=get_config_var('CFLAGS') + ["-std=c99"], extra_link_args=get_config_var('LDFLAGS'), ) # Add custom develop to add soft link to epicscorelibs in . class Develop(develop): def install_for_development(self): develop.install_for_development(self) # Make a link here to epicscorelibs so `pip install -e .` works # If we don't do this dbCore can't be found when _extension is # built into . link = os.path.join(self.egg_path, "epicscorelibs") if not os.path.exists(link): os.symlink(os.path.join(self.install_dir, "epicscorelibs"), link) setup( cmdclass=dict(develop=Develop, **get_cmdclass()), version=__version__, ext_modules=[ext], install_requires=[ # Dependency version declared in pyproject.toml epicscorelibs.version.abi_requires(), "numpy", "epicsdbbuilder>=1.4" ], zip_safe=False, # setuptools_dso is not compatible with eggs! )