forked from soimort/python-romkan
-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
executable file
·41 lines (29 loc) · 1.1 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
#!/usr/bin/env python
PROJ_NAME = 'romkan'
PACKAGE_NAME = 'romkan'
PROJ_METADATA = '%s.json' % PROJ_NAME
import os, json, importlib
here = os.path.abspath(os.path.dirname(__file__))
proj_info = json.loads(open(os.path.join(here, PROJ_METADATA)).read())
README = open(os.path.join(here, "README.rst"), encoding="utf-8").read()
CHANGELOG = open(os.path.join(here, "CHANGELOG.rst"), encoding="utf-8").read()
VERSION = importlib.import_module(name="src.%s.version" % PACKAGE_NAME).__version__
from setuptools import setup, find_packages
setup(
name = proj_info['name'],
version = VERSION,
author = proj_info['author'],
author_email = proj_info['author_email'],
url = proj_info['url'],
license = proj_info['license'],
description = proj_info['description'],
keywords = proj_info['keywords'],
long_description = README + '\n\n' + CHANGELOG,
packages = find_packages('src'),
package_dir = {'' : 'src'},
test_suite = 'tests',
platforms = 'any',
zip_safe = False,
include_package_data = True,
classifiers = proj_info['classifiers'],
)