From 30cfbf58e4502fa2d5b84da175e5f7766ded3205 Mon Sep 17 00:00:00 2001 From: Alex Shen Date: Mon, 15 Jan 2024 12:28:24 +0800 Subject: [PATCH] first commit --- .gitignore | 2 ++ __init__.py | 1 + math/__pycache__/__init__.cpython-311.pyc | Bin 0 -> 214 bytes math/add.py | 2 ++ setup.py | 28 ++++++++++++++++++++++ 5 files changed, 33 insertions(+) create mode 100644 .gitignore create mode 100644 __init__.py create mode 100644 math/__pycache__/__init__.cpython-311.pyc create mode 100644 math/add.py create mode 100644 setup.py 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 0000000000000000000000000000000000000000..e395a874591247950390ae65689879e95307f8b1 GIT binary patch literal 214 zcmZ3^%ge<81gsmEq>2FP#~=<2FhLogg@BCd3@HpLj5!Rs3{eb>3@J>(44TX@K?+tf z-eOKnN%1RU25}fZgT#J0>xUMn78UC!=A>2>XQbxo7vv;X>K7Lz7G>w8>X)Pzm*^H$ zmSp7T=@uj=XD6m-=B4ZBCYEIA$H!;pWtPOp>lIY~;;_lhPbtkwwJYKPn#l;n#j-%+ T12ZEd;|&Jk3)oN*8&CxRj|?_{ literal 0 HcmV?d00001 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