-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
149 additions
and
134 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
include setup_*.py | ||
include setup_build.py | ||
include setup_dependencies.py | ||
recursive-include bin * | ||
include requirements.txt | ||
include LICENSE | ||
include NOTICE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,35 @@ | ||
# All dependencies needed to run WMAgent | ||
Cheetah==2.4.0 | ||
CherryPy==17.4.0 | ||
Markdown==3.0.1 | ||
MySQL-python==1.2.5 | ||
SQLAlchemy==1.3.3 | ||
Sphinx==1.3.5 | ||
cx-Oracle==5.2.1 | ||
dbs-client==3.3.160 | ||
decorator==3.4.2 | ||
future==0.18.2 | ||
nose2==0.9.2 | ||
mock==2.0.0 | ||
coverage==4.5.4 | ||
funcsigs==1.0.2 | ||
httplib2==0.18.0 | ||
psutil==5.6.6 | ||
py==1.7.0 | ||
pyOpenSSL==18.0.0 | ||
pycurl-client==3.3.160 | ||
pycurl==7.19.3 | ||
python-cjson==1.2.1 | ||
pyzmq==17.1.2 | ||
retry==0.9.1 | ||
setuptools==39.2.0 | ||
stomp.py==4.1.15 | ||
rucio-clients==1.23.0 | ||
CMSMonitoring>=0.3.4 | ||
# All dependencies needed to run MicroServices | ||
pymongo==3.10.1 | ||
# All dependencies needed to run Global WorkQueue | ||
# All dependencies needed to run ReqMgr2 | ||
# All dependencies needed to run WMCore software | ||
# This file is parsed by tools/build_pypi_packages.sh to create requirements.txt | ||
# files for each piece of software built from WMCore and uploaded to PyPI | ||
# Format: | ||
# PackageName==X.Y.Z # <comma separated list of WMCore software needing the package> | ||
|
||
Cheetah==2.4.0 # wmagent,reqmgr2 | ||
CherryPy==17.4.0 # wmagent,reqmgr2 | ||
Markdown==3.0.1 # wmagent | ||
MySQL-python==1.2.5 # wmagent | ||
SQLAlchemy==1.3.3 # wmagent | ||
Sphinx==1.3.5 # wmagent,reqmgr2 | ||
cx-Oracle==5.2.1 # wmagent | ||
dbs-client==3.7.8 # wmagent,reqmgr2 | ||
decorator==3.4.2 # wmagent | ||
future==0.18.2 # wmagent,reqmgr2 | ||
nose2==0.9.2 # wmagent | ||
mock==2.0.0 # wmagent | ||
coverage==4.5.4 # wmagent | ||
funcsigs==1.0.2 # wmagent | ||
httplib2==0.18.0 # wmagent,reqmgr2 | ||
psutil==5.6.6 # wmagent,reqmgr2 | ||
py==1.7.0 # wmagent | ||
pyOpenSSL==18.0.0 # wmagent | ||
pycurl-client==3.3.160 # wmagent | ||
pycurl==7.19.3 # wmagent,reqmgr2 | ||
python-cjson==1.2.1 # wmagent | ||
pyzmq==17.1.2 # wmagent | ||
retry==0.9.1 # wmagent,reqmgr2 | ||
setuptools==39.2.0 # wmagent | ||
stomp.py==4.1.15 # wmagent | ||
rucio-clients==1.23.0 # wmagent | ||
CMSMonitoring>=0.3.4 # wmagent | ||
pymongo==3.10.1 # reqmgr2ms | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
#!/usr/bin/env python | ||
|
||
# This template for the setup script is used to build several pypi packages | ||
# from the WMCore codebase. The variable package_name controls which package | ||
# is built. PACKAGE_TO_BUILD is manipulated via tools/build_pypi_packages.sh | ||
# at build time. | ||
# | ||
# The version number comes from WMCore/__init__.py and needs to | ||
# follow PEP 440 conventions | ||
|
||
from __future__ import print_function, division | ||
import os | ||
import sys | ||
from setuptools import setup, Command | ||
from setup_build import list_static_files, things_to_build | ||
from setup_dependencies import dependencies | ||
|
||
# get the WMCore version (thanks rucio devs) | ||
sys.path.insert(0, os.path.abspath('src/python')) | ||
from WMCore import __version__ | ||
wmcore_version = __version__ | ||
|
||
# the contents of package_name are modified via tools/build_pypi_packages.sh | ||
package_name = "PACKAGE_TO_BUILD" | ||
packages, py_modules = things_to_build(package_name, pypi=True) | ||
data_files = list_static_files(dependencies[package_name]) | ||
|
||
# we need to override 'clean' command to remove specific files | ||
class CleanCommand(Command): | ||
user_options = [] | ||
def initialize_options(self): | ||
pass | ||
def finalize_options(self): | ||
pass | ||
def run(self): | ||
os.system ('rm -rfv ./dist ./src/python/*.egg-info') | ||
|
||
def parse_requirements(requirements_file): | ||
""" | ||
Create a list for the 'install_requires' component of the setup function | ||
by parsing a requirements file | ||
""" | ||
|
||
if os.path.exists(requirements_file): | ||
# return a list that contains each line of the requirements file | ||
return open(requirements_file, 'r').read().splitlines() | ||
else: | ||
print("ERROR: requirements file " + requirements_file + " not found.") | ||
sys.exit(1) | ||
|
||
setup(name=package_name, | ||
version=wmcore_version, | ||
package_dir={'': 'src/python/'}, | ||
packages=packages, | ||
py_modules=py_modules, | ||
data_files=data_files, | ||
install_requires=parse_requirements("requirements.txt"), | ||
maintainer='CMS DMWM Group', | ||
maintainer_email='[email protected]', | ||
cmdclass={ | ||
'clean': CleanCommand, | ||
}, | ||
url="https://github.com/dmwm/WMCore", | ||
license="Apache License, Version 2.0", | ||
) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters