-
Notifications
You must be signed in to change notification settings - Fork 7
/
setup.py
82 lines (72 loc) · 2.6 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
#! /usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import (
absolute_import,
division,
print_function,
)
import os
from setuptools import find_packages, setup
def load_requirements(filename):
basedir = os.path.dirname(os.path.abspath(__file__))
with open(os.path.join(basedir, "requirements", filename), "r") as f:
return [
line.rstrip("\n")
for line in f.readlines()
if not line.startswith(("#", "-r")) and line.rstrip("\n")
]
install_requires = load_requirements("base.in")
test_requires = load_requirements("test.in")
build_requires = load_requirements("build.in")
trove_classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Environment :: Web Environment",
"License :: OSI Approved :: GNU General Public License (GPL)",
"License :: DFSG approved",
"License :: Other/Proprietary License",
"Intended Audience :: Developers",
"Intended Audience :: End Users/Desktop",
"Intended Audience :: System Administrators",
"Operating System :: Microsoft",
"Operating System :: Microsoft :: Windows",
"Operating System :: Unix",
"Operating System :: POSIX :: Linux",
"Operating System :: POSIX",
"Operating System :: MacOS :: MacOS X",
"Operating System :: OS Independent",
"Natural Language :: English",
"Programming Language :: Python",
"Topic :: Utilities",
"Topic :: System :: Systems Administration",
"Topic :: System :: Filesystems",
"Topic :: System :: Distributed Computing",
"Topic :: Software Development :: Libraries",
"Topic :: System :: Archiving :: Mirroring",
"Topic :: System :: Archiving",
]
setup(
name="magic-folder",
# no version= because setuptools_scm
description="Tahoe-LAFS-based file synchronization",
long_description=open("README.rst", "r").read(),
author="the Tahoe-LAFS developers, the Magic-Folder developers",
author_email="[email protected]",
url="https://github.com/LeastAuthority/magic-folder/",
license="GNU GPL", # see README.rst -- there is an alternative licence
package_dir={"": "src"},
packages=find_packages("src") + ["twisted.plugins", "magic_folder.test.plugins"],
classifiers=trove_classifiers,
install_requires=install_requires,
extras_require={
"test": test_requires,
"build": build_requires,
},
include_package_data=True,
entry_points={
"console_scripts": [
"magic-folder = magic_folder.cli:_entry",
"magic-folder-api = magic_folder.api_cli:_entry",
],
},
)