-
Notifications
You must be signed in to change notification settings - Fork 13
/
setup.py
38 lines (34 loc) · 1.21 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
import os
from setuptools import setup, find_packages
import python_field
CURRENT_DIR = os.path.abspath(os.path.dirname(__file__))
def get_reqs(*fns):
lst = []
for fn in fns:
for package in open(os.path.join(CURRENT_DIR, fn)).readlines():
package = package.strip()
if not package:
continue
lst.append(package.strip())
return lst
setup(
name="django-python-code-field",
version=python_field.__version__,
description="Store python source code (syntax checked) in database.",
url="https://github.com/chrisspen/django-python-code-field/",
author="Chris Spencer",
author_email="[email protected]",
packages=find_packages(),
#https://pypi.python.org/pypi?%3Aaction=list_classifiers
classifiers=[
'Programming Language :: Python',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Framework :: Django',
'Programming Language :: Python :: 2.7',
'Environment :: Web Environment',
],
zip_safe=False,
install_requires=get_reqs('pip-requirements-min-django.txt', 'pip-requirements.txt'),
tests_require=get_reqs('pip-requirements-test.txt'),
)