-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.py
More file actions
47 lines (41 loc) · 1.52 KB
/
setup.py
File metadata and controls
47 lines (41 loc) · 1.52 KB
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
import os
from setuptools import find_packages, setup
base_dir = os.path.dirname(os.path.abspath(__file__))
with open(os.path.join(base_dir, 'README.md')) as readme:
README = readme.read()
def read_requirements(path):
requirements = []
with open(path) as requirements_file:
for raw_line in requirements_file:
line = raw_line.strip()
if not line or line.startswith('#') or line.startswith('-e '):
continue
requirements.append(line)
return requirements
install_requires = read_requirements(os.path.join(base_dir, 'wcoa', 'requirements.txt'))
setup(
name='wcoa',
version='0.1',
packages=find_packages(),
install_requires=install_requires,
include_package_data=True,
license='BSD License', # example license
description='A simple Django app for wcoa.',
long_description=README,
url='https://www.wcoa.com/',
author='Your Name',
author_email='yourname@example.com',
classifiers=[
'Environment :: Web Environment',
'Framework :: Django',
'Framework :: Django :: X.Y', # replace "X.Y" as appropriate
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License', # example license
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Topic :: Internet :: WWW/HTTP',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
],
)