-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
59 lines (50 loc) · 1.66 KB
/
setup.py
File metadata and controls
59 lines (50 loc) · 1.66 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
# (C) Copyright 2010-2020 Enthought, Inc., Austin, TX
# All rights reserved.
import os
from setuptools import setup, find_packages
VERSION = "0.4.0.dev"
# Read description
with open('README.rst', 'r') as readme:
README_TEXT = readme.read()
def write_version_py():
plugins = [
'enthought_example',
'eggbox_potential_sampler',
'troughs_and_waves',
'monte_carlo',
]
for plugin in plugins:
filename = os.path.join(
os.path.dirname(__file__),
plugin,
'version.py')
ver = "__version__ = '{}'\n"
with open(filename, 'w') as fh:
fh.write(ver.format(VERSION))
write_version_py()
setup(
name="enthought_example",
version=VERSION,
# The entry point "force.bdss.extensions" is where the extension mechanism
# takes place. You have to specify a path to the plugin class, as given
# below. The name (before the '=') of the plugin is irrelevant, but try to
# use the name of the module.
# Also, it is good practice to use the name of your organization, like
# we did here.
entry_points={
"force.bdss.extensions": [
"enthought_example = "
"enthought_example.example_plugin:ExamplePlugin",
"eggbox_potential_sampler = "
"eggbox_potential_sampler.eggbox_plugin:EggboxPlugin",
"troughs_and_waves = "
"troughs_and_waves.troughs_and_waves_plugin:TroughsAndWavesPlugin",
"monte_carlo = "
"monte_carlo.monte_carlo_plugin:MonteCarloPlugin",
]
},
packages=find_packages(),
install_requires=[
"force_bdss >= 0.4.0",
]
)