Skip to content

Commit

Permalink
refactor: Switch to a single file module.
Browse files Browse the repository at this point in the history
  • Loading branch information
ravener committed Sep 4, 2022
1 parent 9a487aa commit 2b5a895
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 16 deletions.
6 changes: 3 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
dist
dist/
stopwatch.py.egg-info
build
stopwatch/__pycache__
build/
__pycache__/
13 changes: 6 additions & 7 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,23 +1,22 @@
from setuptools import setup
from pathlib import Path

description = "A simple stopwatch for python"
import stopwatch

description = "A simple stopwatch for python"
long_description = Path("README.rst").read_text("utf-8")
version = "2.0.0"
packages = ["stopwatch"]

setup(
name="stopwatch.py",
version=version,
version=stopwatch.__version__,
description=description,
long_description=long_description,
long_description_content_type="text/x-rst",
url="https://github.com/ravener/stopwatch.py",
author="Ravener",
author=stopwatch.__author__,
author_email="ravener.anime@gmail.com",
license="MIT",
packages=packages,
license=stopwatch.__license__,
py_modules=["stopwatch"],
python_requires=">=3.5",
classifiers=[
"Programming Language :: Python :: 3",
Expand Down
6 changes: 6 additions & 0 deletions stopwatch/stopwatch.py → stopwatch.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
"""
MIT License
Expand All @@ -21,6 +22,11 @@
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
"""

__author__ = "Ravener"
__version__ = "2.0.1"
__license__ = "MIT"

import time


Expand Down
6 changes: 0 additions & 6 deletions stopwatch/__init__.py

This file was deleted.

0 comments on commit 2b5a895

Please sign in to comment.