-
Notifications
You must be signed in to change notification settings - Fork 15
/
setup.py
68 lines (55 loc) · 1.66 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
from os.path import dirname
from os.path import join
from setuptools import find_packages
from setuptools import setup
with open('README.md') as fh:
long_description = fh.read()
def read_version():
version_contents = {}
with open(join(dirname(__file__), 'magic_admin', 'version.py')) as fh:
exec(fh.read(), version_contents)
return version_contents['VERSION']
def load_readme():
with open(join(dirname(__file__), 'README.md')) as fh:
long_description = fh.read()
return long_description
def load_requirements():
with open(join(dirname(__file__), 'requirements.txt')) as fh:
requirements = fh.readlines()
return requirements
setup(
name='magic-admin',
version=read_version(),
description='Magic Python Library',
long_description=load_readme(),
long_description_content_type='text/markdown',
author='Magic',
author_email='support@magic.link',
url='https://magic.link',
license='MIT',
keywords='magic python sdk',
packages=find_packages(
exclude=[
'tests',
'tests.*',
'testing',
'testing.*',
'virtualenv_run',
'virtualenv_run.*',
],
),
zip_safe=False,
install_requires=load_requirements(),
python_requires='>=3.6',
project_urls={
'Website': 'https://magic.link',
},
classifiers=[
'Development Status :: 3 - Alpha',
'Programming Language :: Python',
'Programming Language :: Python :: 3.6',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
],
)