-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
63 lines (51 loc) · 1.92 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
62
63
#!/usr/bin/env python
# Standard library modules.
import os
# Third party modules.
from setuptools import setup, find_packages
# Local modules.
import versioneer
# Globals and constants variables.
BASEDIR = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(BASEDIR, "README.md"), "r") as fp:
LONG_DESCRIPTION = fp.read()
PACKAGES = find_packages()
PACKAGE_DATA = {}
penepmadir = os.path.join(BASEDIR, "pymontecarlo_penepma", "penepma")
for root, _dirnames, filenames in os.walk(penepmadir):
dirpath = os.path.join("penepma", root[len(penepmadir) + 1 :])
for filename in filenames:
relpath = os.path.join(dirpath, filename)
PACKAGE_DATA.setdefault("pymontecarlo_penepma", []).append(relpath)
with open(os.path.join(BASEDIR, "requirements.txt"), "r") as fp:
INSTALL_REQUIRES = fp.read().splitlines()
EXTRAS_REQUIRE = {}
CMDCLASS = versioneer.get_cmdclass()
ENTRY_POINTS = {}
setup(
name="pyMonteCarlo-PENEPMA",
version=versioneer.get_version(),
url="https://github.com/pymontecarlo",
description="Interface of Monte Carlo simulation program PENEPMA with pyMonteCarlo",
long_description=LONG_DESCRIPTION,
long_description_content_type="text/markdown",
author="Hendrix Demers and Philippe T. Pinard",
author_email="[email protected]",
license="Apache License version 2.0",
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: End Users/Desktop",
"License :: OSI Approved :: GNU General Public License (GPL)",
"Natural Language :: English",
"Programming Language :: Python",
"Operating System :: OS Independent",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Physics",
],
packages=PACKAGES,
package_data=PACKAGE_DATA,
install_requires=INSTALL_REQUIRES,
extras_require=EXTRAS_REQUIRE,
cmdclass=CMDCLASS,
entry_points=ENTRY_POINTS,
)