diff --git a/example.py b/example.py index 4d90dbd..2854c73 100644 --- a/example.py +++ b/example.py @@ -1,5 +1,5 @@ from threading import Thread -from mux import RWLock +from rwmutex import RWLock from time import sleep lock = RWLock() diff --git a/rwmutex/__init__.py b/rwmutex/__init__.py new file mode 100644 index 0000000..63bb883 --- /dev/null +++ b/rwmutex/__init__.py @@ -0,0 +1 @@ +from .mux import RWLock diff --git a/mux.py b/rwmutex/mux.py similarity index 100% rename from mux.py rename to rwmutex/mux.py diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..4722b06 --- /dev/null +++ b/setup.py @@ -0,0 +1,22 @@ +import setuptools + +with open("README.md", "r", encoding="utf-8") as fh: + long_description = fh.read() + +setuptools.setup( + name="rwmutex", # Replace with your own username + version="1.0", + author="Ben Godfrey", + author_email="BenJetson@users.noreply.github.com", + description="Provides a read/write mutex lock usable with context managers.", + long_description=long_description, + long_description_content_type="text/markdown", + url="https://github.com/BenJetson/py-rwmutex", + packages=setuptools.find_packages(), + classifiers=[ + "Programming Language :: Python :: 3", + "License :: OSI Approved :: MIT License", + "Operating System :: OS Independent", + ], + python_requires=">=3.6", +) diff --git a/tests/.gitkeep b/tests/.gitkeep new file mode 100644 index 0000000..e69de29