Minor updates to package setup.
@@ -9,11 +9,27 @@ from setuptools.command.install import install as _install
this_dir = os.path.dirname(os.path.abspath(__file__))
-with open(os.path.join(this_dir, "README.rst"), "r") as f:
- long_description = f.read()
+# workaround to change the installed law script to _not_ use pkg_resources
+class install(_install):
+
+ def run(self):
+ _install.run(self)
+
+ if os.getenv("LAW_INSTALL_CUSTOM_SCRIPT", "0") == "1":
+ try:
+ with open(os.path.join(this_dir, "law", "cli", "law")) as f:
+ content = f.read()
+ with open(os.path.join(self.install_scripts, "law"), "w") as f:
+ f.write(content)
+ except Exception as e:
+ print("could not update the law executable: {}".format(e))
+
+# package keyworkds
keywords = ["luigi", "workflow", "pipeline", "remote", "submission", "grid"]
+
+# package classifiers
classifiers = [
"Programming Language :: Python",
"Programming Language :: Python :: 2",
@@ -27,25 +43,15 @@ classifiers = [
"Topic :: System :: Monitoring",
]
-install_requires = []
-with open(os.path.join(this_dir, "requirements.txt"), "r") as f:
- install_requires.extend(line.strip() for line in f.readlines() if line.strip())
-
-# workaround to change the installed law script to _not_ use pkg_resources
-class install(_install):
+# read the readme file
+with open(os.path.join(this_dir, "README.rst"), "r") as f:
+ long_description = f.read()
- def run(self):
- _install.run(self)
- if os.getenv("LAW_INSTALL_CUSTOM_SCRIPT", "0") == "1":
- try:
- with open(os.path.join(this_dir, "law", "cli", "law")) as f:
- content = f.read()
- with open(os.path.join(self.install_scripts, "law"), "w") as f:
- f.write(content)
- except Exception as e:
- print("could not update the law executable: {}".format(e))
+# load installation requirements
+with open(os.path.join(this_dir, "requirements.txt"), "r") as f:
+ install_requires = [line.strip() for line in f.readlines() if line.strip()]
# load package infos
