Built and distribute your own Python package
hello-package
hello-package
from setuptools import setup, find_packages
import codecs
import os
here = os.path.abspath(os.path.dirname(__file__))
with codecs.open(os.path.join(here, "README.md"), encoding="utf-8") as fh:
long_description = "\n" + fh.read()
VERSION = '0.0.1'
DESCRIPTION = 'Short Description'
# Setting up
setup(
name = "hello-package",
version = VERSION,
author = "Abdul Fathah KA",
author_email = "[email protected]",
description = DESCRIPTION,
long_description=long_description,
long_description_content_type = "text/markdown",
url = "https://github.com/fathah/py-package-starter",
classifiers = ["Programming Language :: Python :: 3", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent"],
keywords=['nlp', 'fathah', 'hello'],
packages = find_packages()
)
pip install .
python setup.py sdist bdist_wheel
pip install twine
twine upload dist/*