-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.py
More file actions
60 lines (51 loc) · 2.02 KB
/
setup.py
File metadata and controls
60 lines (51 loc) · 2.02 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
48
49
50
51
52
53
54
55
56
57
58
59
60
import os
import fnmatch
from setuptools import find_packages, setup
with open(os.path.join(os.path.dirname(__file__), 'README.md')) as readme:
long_description = readme.read()
with open(os.path.join(os.path.dirname(__file__), 'requirements.txt')) as f:
requirements = f.read().splitlines()
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
def package_version():
from basiclive.version import get_version
return get_version()
def package_files(directory, exclude=()):
if os.path.exists(directory):
return [
os.path.join(path, filename)
for (path, directories, filenames) in os.walk(directory)
for filename in filenames
if not any(fnmatch.fnmatch(filename, pattern) for pattern in exclude)
]
return []
setup(
name='basiclive',
version=package_version(),
packages=find_packages(),
url='https://github.com/katyjg/basic-live',
license='MIT',
author='Kathryn Janzen, Michel Fodje',
author_email='kathryn.janzen@lightsource.ca, michel.fodje@lightsource.ca',
description='A Framework for creating beamline LIMS',
long_description=long_description,
long_description_content_type="text/markdown",
install_requires=requirements,
package_data = {
'basiclive':
package_files('basiclive/core/lims/static') +
package_files('basiclive/core/lims/templates') +
package_files('basiclive/core/acl/templates') +
package_files('basiclive/core/crm/templates') +
package_files('basiclive/core/publicatons/templates') +
package_files('basiclive/core/schedule/templates') +
package_files('basiclive/core/schedule/static')
},
classifiers=[
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3.7',
],
)