-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
executable file
·60 lines (54 loc) · 1.45 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
#!/usr/bin/env python
from setuptools import setup, find_packages, Command
import glob
import os
import sys
import unittest
from glob import glob
# Get version from pkg index
from pwswimmeets import __version__
from pwswimmeets import __author__
from pwswimmeets import __maintainer__
from pwswimmeets import __url__
from pwswimmeets import __email__
from pwswimmeets import __doc__
from pwswimmeets import __shortdesc__
from pwswimmeets import __name__ as __packagename__
desc = __shortdesc__
long_desc = __doc__
# Names of required packages
requires = [
'requests',
'python-dateutil'
]
class CleanCommand(Command):
user_options = []
def initialize_options(self):
self.cwd = None
def finalize_options(self):
self.cwd = os.getcwd()
def run(self):
assert os.getcwd() == self.cwd, 'Must be in package root: %s' % self.cwd
os.system ('rm -rf ./build ./dist ./*.pyc ./*.tgz ./*.egg-info')
setup(
name=__packagename__,
url=__url__,
version=__version__,
author=__author__,
author_email=__email__,
packages=find_packages(exclude=['tests']),
license='',
description=desc,
long_description=long_desc,
scripts=[],
data_files=[(__packagename__+'/examples', glob('examples/*'))],
package_data={__packagename__: ['data/*.json']},
#include_package_data=True,
install_requires=requires,
keywords = [
'swim'
],
cmdclass={
'clean': CleanCommand
}
)