Skip to content

Instantly share code, notes, and snippets.

@frankShih
Created October 29, 2019 00:55
Show Gist options
  • Save frankShih/40e032d9a883732e3a348e929c869078 to your computer and use it in GitHub Desktop.
Save frankShih/40e032d9a883732e3a348e929c869078 to your computer and use it in GitHub Desktop.
import setuptools
'''
If you created a requirements.txt file and your project spans multiple files,
you can get rid of the requirements.txt file and instead, add all packages
contained in requirements.txt to the install_requires field of the setup call.
'''
REQUIRED_PACKAGES = [
'google-cloud-error-reporting==0.30.0',
# 'lib',
'sqlalchemy',
'pandas',
'numpy',
'PyMySQL',
'cloudstorage',
'gcsfs',
'google-cloud-storage',
]
PACKAGE_NAME = 'my_package'
PACKAGE_VERSION = '0.0.1'
setuptools.setup(
name=PACKAGE_NAME,
version=PACKAGE_VERSION,
description='Example project',
install_requires=REQUIRED_PACKAGES,
packages=setuptools.find_packages(),
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment