Skip to content

Commit

Permalink
added setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
dantownsend committed Feb 25, 2020
1 parent 21d8505 commit 7e7cbf1
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
*.pyc
.DS_Store
.vscode/settings.json
dist/
build/
*.egg-info/
3 changes: 3 additions & 0 deletions asyncio_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
import typing as t


__VERSION__ = "0.1.0"


class CompoundException(Exception):
"""
Is used to aggregate several exceptions into a single exception, with a
Expand Down
4 changes: 4 additions & 0 deletions release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash
rm ./dist/*
python setup.py sdist bdist_wheel
twine upload dist/*
39 changes: 39 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

import os
from setuptools import setup

from asyncio_tools import __VERSION__ as VERSION


directory = os.path.abspath(os.path.dirname(__file__))


with open(os.path.join(directory, "README.md")) as f:
LONG_DESCRIPTION = f.read()


setup(
name="asyncio_tools",
version=VERSION,
description="Useful utilities for working with asyncio.",
long_description=LONG_DESCRIPTION,
long_description_content_type="text/markdown",
author="Daniel Townsend",
author_email="[email protected]",
python_requires=">=3.8.0",
url="https://github.com/piccolo-orm/asyncio_tools",
py_modules=["asyncio_tools"],
package_data={"piccolo": ["py.typed"]},
data_files=[("", ["py.typed"])],
install_requires=[],
license="MIT",
classifiers=[
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: Implementation :: CPython",
],
)

0 comments on commit 7e7cbf1

Please sign in to comment.