from setuptools import setup
# reading long description from file with open('DESCRIPTION.txt') as file:
long_description = file.read()
# specify requirements of your package here
REQUIREMENTS = ['requests']
# some more details
CLASSIFIERS = [
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Topic :: Internet',
'License :: OSI Approved :: MIT License'
'Programming Language :: Python :: 3.5',
]
# calling the setup function
setup(name='mygmap',
version='1.0.0',
description='A small wrapper around google maps api',
long_description=long_description,
url='https://github.com/prakashnidhiverma/mygmap',
author='Nikhil Kumar Singh',
author_email='pnv@mindstick.com.com',
license='MIT',
packages=['geo'],
classifiers=CLASSIFIERS,
install_requires=REQUIREMENTS,
keywords='maps location address'
)
different arguments of setup function do:
-name
-version
-description
-long_description
-url
-author, author_email
-license
-classifiers
-install_requires
-keywords
__init__.py
Upload the package:
python setup.py register -r pypitest
python setup.py sdist upload -r pypitest
python setup.py register -r pypi
python setup.py sdist upload -r pypi
pip install your_package_name
Join MindStick Community
You need to log in or register to vote on answers or questions.
We use cookies to ensure you have the best browsing experience on our website. By using our site, you
acknowledge that you have read and understood our
Cookie Policy &
Privacy Policy.
Packaging and Publishing Python code :
Get the python scripts ready :
Getting the package-directory structure ready :
different arguments of setup function do:
-name
-version
-description
-long_description
-url
-author, author_email
-license
-classifiers
-install_requires
-keywords
Upload the package: