-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathsetup.py
executable file
·61 lines (55 loc) · 1.8 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Set up for olx-utils"""
import os
import os.path
from setuptools import setup
def package_data(pkg, root_list):
"""Generic function to find package_data for `pkg` under `root`."""
data = []
for root in root_list:
for dirname, _, files in os.walk(os.path.join(pkg, root)):
for fname in files:
data.append(os.path.relpath(os.path.join(dirname, fname), pkg))
return {pkg: data}
setup(
name='olx-utils',
use_scm_version=True,
description='Utilities for edX OLX courses',
long_description=open('README.rst').read(),
url='https://github.com/hastexo/olx-utils',
author='hastexo',
author_email='[email protected]',
license='AGPL-3.0',
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Education',
'License :: OSI Approved :: GNU Affero General Public License v3',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Topic :: Education :: Computer Aided Instruction (CAI)',
'Topic :: Education',
],
packages=['olxutils'],
install_requires=[
'Mako>=1.0.3',
'markdown2>=2.3.0',
'Pygments>=2.0.1',
'python-swiftclient>=2.2.0',
'requests',
'xmltodict',
],
entry_points={
'console_scripts': [
'olx=olxutils.cli:main',
'olx-new-run=olxutils.cli:main',
'new_run.py=olxutils.cli:main',
],
},
package_data=package_data("olxutils", ["templates"]),
setup_requires=['setuptools-scm'],
)