diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..2399f56 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +dist/ +testpythonpackaging.egg-info/ diff --git a/__init__.py b/__init__.py new file mode 100644 index 0000000..a0382a1 --- /dev/null +++ b/__init__.py @@ -0,0 +1 @@ +from math import add diff --git a/math/__pycache__/__init__.cpython-311.pyc b/math/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000..e395a87 Binary files /dev/null and b/math/__pycache__/__init__.cpython-311.pyc differ diff --git a/math/add.py b/math/add.py new file mode 100644 index 0000000..4693ad3 --- /dev/null +++ b/math/add.py @@ -0,0 +1,2 @@ +def add(a, b): + return a + b diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..90cd84a --- /dev/null +++ b/setup.py @@ -0,0 +1,28 @@ +from setuptools import find_packages, setup + +VERSION = '0.0.1' +DESCRIPTION = 'My first Python package' +LONG_DESCRIPTION = 'My first Python package with a slightly longer description' + +# Setting up +setup( + # the name must match the folder name 'verysimplemodule' + name="testpythonpackaging", + version=VERSION, + author="Alex Shen", + author_email="", + description=DESCRIPTION, + long_description=LONG_DESCRIPTION, + packages=find_packages(), + install_requires=[], # add any additional packages that + # needs to be installed along with your package. Eg: 'caer' + + keywords=['python', 'first package'], + classifiers= [ + "Development Status :: 3 - Alpha", + "Intended Audience :: Education", + "Programming Language :: Python :: 3", + "Operating System :: MacOS :: MacOS X", + "Operating System :: Microsoft :: Windows", + ] +) \ No newline at end of file