Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Added setup, version, etc.
- Loading branch information
Showing
5 changed files
with
52 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
include *.md | ||
include LICENSE | ||
prune .git | ||
prune dist | ||
prune build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
from .manager import Manager | ||
from .classes import * | ||
from ._version import __version__, VERSION |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
__version__ = "0.0.1" | ||
VERSION = tuple([(int(v) if v.isdigit() else v) | ||
for v in __version__.split(".")]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[metadata] | ||
license_file = LICENSE.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
import io | ||
import sys | ||
try: | ||
import pypandoc | ||
except: | ||
pypandoc = None | ||
|
||
from setuptools import find_packages, setup | ||
|
||
with io.open('activitypub/_version.py', encoding='utf-8') as fid: | ||
for line in fid: | ||
if line.startswith('__version__'): | ||
version = line.strip().split()[-1][1:-1] | ||
break | ||
|
||
with io.open('README.md', encoding='utf-8') as fp: | ||
long_desc = fp.read() | ||
if pypandoc is not None: | ||
try: | ||
long_desc = pypandoc.convert(long_desc, "rst", "markdown_github") | ||
except: | ||
pass | ||
|
||
|
||
setup(name='activitypub', | ||
version=version, | ||
description='A general Python ActivityPub library', | ||
long_description=long_desc, | ||
author='Douglas S. Blank', | ||
author_email='doug.blank@gmail.com', | ||
url='https://github.com/dsblank/activitypub', | ||
install_requires=['pymongo'], | ||
packages=find_packages(include=['activitypub', 'activitypub.*']), | ||
include_data_files = True, | ||
test_suite = 'nose.collector', | ||
classifiers=[ | ||
'Framework :: IPython', | ||
'License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)', | ||
'Programming Language :: Python :: 3', | ||
] | ||
) |