Skip to content

Commit 22c402d

Browse files
committed
Create packaging structure.
1 parent febbb67 commit 22c402d

File tree

5 files changed

+24
-1
lines changed

5 files changed

+24
-1
lines changed

example.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from threading import Thread
2-
from mux import RWLock
2+
from rwmutex import RWLock
33
from time import sleep
44

55
lock = RWLock()

rwmutex/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from .mux import RWLock

mux.py renamed to rwmutex/mux.py

File renamed without changes.

setup.py

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import setuptools
2+
3+
with open("README.md", "r", encoding="utf-8") as fh:
4+
long_description = fh.read()
5+
6+
setuptools.setup(
7+
name="rwmutex", # Replace with your own username
8+
version="1.0",
9+
author="Ben Godfrey",
10+
author_email="BenJetson@users.noreply.github.com",
11+
description="Provides a read/write mutex lock usable with context managers.",
12+
long_description=long_description,
13+
long_description_content_type="text/markdown",
14+
url="https://github.com/BenJetson/py-rwmutex",
15+
packages=setuptools.find_packages(),
16+
classifiers=[
17+
"Programming Language :: Python :: 3",
18+
"License :: OSI Approved :: MIT License",
19+
"Operating System :: OS Independent",
20+
],
21+
python_requires=">=3.6",
22+
)

tests/.gitkeep

Whitespace-only changes.

0 commit comments

Comments
 (0)