-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
executable file
·117 lines (98 loc) · 2.68 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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
#!/usr/bin/env python
import os
from shiftmedia.version import version
from setuptools import setup, find_packages
# ----------------------------------------------------------------------------
# Building
#
# Create source distribution:
# ./setup.py sdist
#
#
# Create binary distribution (non-univeral, python 3 only):
# ./setup.py bdist_wheel --python-tag=py3
#
# Register on PyPI:
# twine register dist/mypkg.whl
#
#
# Upload to PyPI:
# twine upload dist/*
#
# ----------------------------------------------------------------------------
# project version
version = version
# development status
# dev_status = '1 - Planning'
# dev_status = '2 - Pre-Alpha'
dev_status = '3 - Alpha'
# dev_status = '4 - Beta'
# dev_status = '5 - Production/Stable'
# dev_status = '6 - Mature'
# dev_status = '7 - Inactive'
# github repository url
repo = 'https://github.com/projectshift/shift-media'
license_type = 'MIT License'
# monkey patch os for vagrant hardlinks
del os.link
# run setup
setup(**dict(
# author
author='Dmitry Belyakov',
author_email='[email protected]',
# project meta
name='shiftmedia',
version=version,
url=repo,
download_url=repo + '/archive/v' + version + '.tar.gz',
description='External media and file storage for applications',
keywords=[
'python3',
'aws',
's3',
'media',
'images',
'video',
'storage',
],
# classifiers
# see: https://pypi.python.org/pypi?%3Aaction=list_classifiers
classifiers=[
# maturity
'Development Status :: ' + dev_status,
# license
'License :: OSI Approved :: ' + license_type,
# audience
'Intended Audience :: Developers',
'Intended Audience :: Information Technology',
# pythons
'Programming Language :: Python :: 3',
# categories
'Environment :: Console',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Topic :: Software Development :: Libraries :: Application Frameworks',
'Topic :: System :: Archiving',
'Topic :: Utilities'
],
# project packages
packages=find_packages(
exclude=[
'shiftmedia.tests*',
'shiftmedia.testing*'
]
),
# include none-code data files from manifest.in (http://goo.gl/Uf0Yxc)
include_package_data=True,
# project dependencies
install_requires=[
'Pillow>=8.2.0,<9.0.0',
'boto3>=1.17.78,<2.0',
'click>=8.0.0,<9.0.0',
'python-magic>=0.4.22,<1.0.0',
'piexif>=1.1.3,<2'
],
# project license
license=license_type
))