2017-06-05 21:26:08 +02:00
|
|
|
from setuptools import find_packages, setup, Extension
|
2017-06-06 14:33:10 +02:00
|
|
|
import sys
|
2017-04-02 22:11:58 +02:00
|
|
|
|
|
|
|
|
|
|
|
def read_file(path):
|
|
|
|
with open(path) as file:
|
|
|
|
return file.read()
|
|
|
|
|
|
|
|
|
2017-06-06 14:33:10 +02:00
|
|
|
def run_setup():
|
|
|
|
install_requirements = [
|
2017-04-10 15:44:09 +02:00
|
|
|
"appdirs >= 1.4.3",
|
2017-06-10 21:04:23 +02:00
|
|
|
"humanfriendly",
|
|
|
|
"better_bencode >= 0.2.1"
|
2017-04-02 22:11:58 +02:00
|
|
|
]
|
2017-06-06 14:33:10 +02:00
|
|
|
|
|
|
|
if sys.platform in ["linux", "darwin"]:
|
|
|
|
install_requirements.append("uvloop >= 0.8.0")
|
|
|
|
|
|
|
|
setup(
|
|
|
|
name="magneticod",
|
2017-06-14 10:35:35 +02:00
|
|
|
version="0.6.0",
|
2017-06-06 14:33:10 +02:00
|
|
|
description="Autonomous BitTorrent DHT crawler and metadata fetcher.",
|
|
|
|
long_description=read_file("README.rst"),
|
|
|
|
url="http://magnetico.org",
|
|
|
|
author="Mert Bora ALPER",
|
|
|
|
author_email="bora@boramalper.org",
|
|
|
|
license="GNU Affero General Public License v3 or later (AGPLv3+)",
|
|
|
|
packages=find_packages(),
|
|
|
|
zip_safe=False,
|
|
|
|
entry_points={
|
|
|
|
"console_scripts": ["magneticod=magneticod.__main__:main"]
|
|
|
|
},
|
|
|
|
|
|
|
|
install_requires=install_requirements,
|
|
|
|
|
|
|
|
classifiers=[
|
|
|
|
"Development Status :: 2 - Pre-Alpha",
|
|
|
|
"Environment :: No Input/Output (Daemon)",
|
|
|
|
"Intended Audience :: End Users/Desktop",
|
|
|
|
"License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)",
|
|
|
|
"Natural Language :: English",
|
|
|
|
"Operating System :: POSIX :: Linux",
|
|
|
|
"Programming Language :: Python :: 3 :: Only",
|
|
|
|
"Programming Language :: Python :: Implementation :: CPython",
|
2017-06-12 19:28:24 +02:00
|
|
|
]
|
2017-06-06 14:33:10 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
run_setup()
|