Skip to content

Commit

Permalink
Create packaging structure.
Browse files Browse the repository at this point in the history
  • Loading branch information
BenJetson committed Jan 5, 2021
1 parent febbb67 commit 22c402d
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 1 deletion.
2 changes: 1 addition & 1 deletion example.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from threading import Thread
from mux import RWLock
from rwmutex import RWLock
from time import sleep

lock = RWLock()
Expand Down
1 change: 1 addition & 0 deletions rwmutex/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from .mux import RWLock
File renamed without changes.
22 changes: 22 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -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",
)
Empty file added tests/.gitkeep
Empty file.

0 comments on commit 22c402d

Please sign in to comment.