Skip to content

Commit

Permalink
HUE-521. version specification duplication
Browse files Browse the repository at this point in the history
We hard code the version number in every setup.py in the whole distro.
We should just import it.
It's important that we dereference all of the version.py symlinks before the
tarball.
  • Loading branch information
newalex committed Mar 29, 2011
1 parent c2e824d commit fb0e526
Show file tree
Hide file tree
Showing 24 changed files with 54 additions and 12 deletions.
2 changes: 1 addition & 1 deletion Makefile.tarball
Expand Up @@ -78,7 +78,7 @@ $(BLD_DIR_PROD): apps crepo docs
@echo "--- Preparing general distribution tree at $@" @echo "--- Preparing general distribution tree at $@"
@rm -rf $@ @rm -rf $@
@mkdir -p $@ @mkdir -p $@
tar -cf - $(PROD_INCLUDES) | tar -C $(BLD_DIR_PROD) -xf - tar -h -cf - $(PROD_INCLUDES) | tar -C $(BLD_DIR_PROD) -xf -


@echo "---- Removing exclusions" @echo "---- Removing exclusions"
@for i in $(PROD_EXCLUDES) ; do rm -rf $(BLD_DIR_PROD)/$$i ; done @for i in $(PROD_EXCLUDES) ; do rm -rf $(BLD_DIR_PROD)/$$i ; done
Expand Down
20 changes: 20 additions & 0 deletions VERSION
@@ -0,0 +1,20 @@
# Licensed to Cloudera, Inc. under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. Cloudera, Inc. licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# This file should be the one source of truth for for versions within HUE.
# It is at least included by each of the default hue app's setup.py.

VERSION="1.2.0"
1 change: 1 addition & 0 deletions apps/about/hueversion.py
3 changes: 2 additions & 1 deletion apps/about/setup.py
Expand Up @@ -14,10 +14,11 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
from setuptools import setup, find_packages from setuptools import setup, find_packages
from hueversion import VERSION


setup( setup(
name = "about", name = "about",
version = "1.2.0", version = VERSION,
author = "HUE", author = "HUE",
url = 'http://github.com/cloudera/hue', url = 'http://github.com/cloudera/hue',
description = "Displays 'about' info for easier trouble-shooting", description = "Displays 'about' info for easier trouble-shooting",
Expand Down
1 change: 1 addition & 0 deletions apps/beeswax/hueversion.py
3 changes: 2 additions & 1 deletion apps/beeswax/setup.py
Expand Up @@ -14,10 +14,11 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
from setuptools import setup, find_packages from setuptools import setup, find_packages
from hueversion import VERSION


setup( setup(
name = "beeswax", name = "beeswax",
version = "1.2.0", version = VERSION,
author = "HUE", author = "HUE",
url = 'http://github.com/cloudera/hue', url = 'http://github.com/cloudera/hue',
description = "Hive Interface on HUE", description = "Hive Interface on HUE",
Expand Down
1 change: 1 addition & 0 deletions apps/filebrowser/hueversion.py
3 changes: 2 additions & 1 deletion apps/filebrowser/setup.py
Expand Up @@ -14,10 +14,11 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
from setuptools import setup, find_packages from setuptools import setup, find_packages
from hueversion import VERSION


setup( setup(
name = "filebrowser", name = "filebrowser",
version = "1.2.0", version = VERSION,
author = "HUE", author = "HUE",
url = 'http://github.com/cloudera/hue', url = 'http://github.com/cloudera/hue',
description = "HDFS browser", description = "HDFS browser",
Expand Down
1 change: 1 addition & 0 deletions apps/hello/hueversion.py
3 changes: 2 additions & 1 deletion apps/hello/setup.py
Expand Up @@ -14,10 +14,11 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
from setuptools import setup, find_packages from setuptools import setup, find_packages
from hueversion import VERSION


setup( setup(
name = "hello", name = "hello",
version = "1.2.0", version = VERSION,
author = "HUE", author = "HUE",
url = 'http://github.com/cloudera/hue', url = 'http://github.com/cloudera/hue',
description = "HUE Hello Example", description = "HUE Hello Example",
Expand Down
1 change: 1 addition & 0 deletions apps/help/hueversion.py
3 changes: 2 additions & 1 deletion apps/help/setup.py
Expand Up @@ -14,10 +14,11 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
from setuptools import setup, find_packages from setuptools import setup, find_packages
from hueversion import VERSION


setup( setup(
name = "help", name = "help",
version = "1.2.0", version = VERSION,
author = "HUE", author = "HUE",
url = 'http://github.com/cloudera/hue', url = 'http://github.com/cloudera/hue',
description = "HUE Help", description = "HUE Help",
Expand Down
1 change: 1 addition & 0 deletions apps/jframegallery/hueversion.py
3 changes: 2 additions & 1 deletion apps/jframegallery/setup.py
Expand Up @@ -14,10 +14,11 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
from setuptools import setup, find_packages from setuptools import setup, find_packages
from hueversion import VERSION


setup( setup(
name = "jframegallery", name = "jframegallery",
version = "1.2.0", version = VERSION,
author = "HUE", author = "HUE",
url = 'http://github.com/cloudera/hue', url = 'http://github.com/cloudera/hue',
description = "HUE JFrame Gallery", description = "HUE JFrame Gallery",
Expand Down
1 change: 1 addition & 0 deletions apps/jobbrowser/hueversion.py
3 changes: 2 additions & 1 deletion apps/jobbrowser/setup.py
Expand Up @@ -14,10 +14,11 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
from setuptools import setup, find_packages from setuptools import setup, find_packages
from hueversion import VERSION


setup( setup(
name = "jobbrowser", name = "jobbrowser",
version = "1.2.0", version = VERSION,
url = 'http://github.com/cloudera/hue', url = 'http://github.com/cloudera/hue',
author = "HUE", author = "HUE",
description = "Hadoop Job Browser", description = "Hadoop Job Browser",
Expand Down
1 change: 1 addition & 0 deletions apps/jobsub/hueversion.py
3 changes: 2 additions & 1 deletion apps/jobsub/setup.py
Expand Up @@ -14,10 +14,11 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
from setuptools import setup, find_packages from setuptools import setup, find_packages
from hueversion import VERSION


setup( setup(
name = "jobsub", name = "jobsub",
version = "1.2.0", version = VERSION,
url = 'http://github.com/cloudera/hue', url = 'http://github.com/cloudera/hue',
author = "HUE", author = "HUE",
description = "Hadoop Job Submission", description = "Hadoop Job Submission",
Expand Down
1 change: 1 addition & 0 deletions apps/proxy/hueversion.py
3 changes: 2 additions & 1 deletion apps/proxy/setup.py
Expand Up @@ -14,10 +14,11 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
from setuptools import setup, find_packages from setuptools import setup, find_packages
from hueversion import VERSION


setup( setup(
name = "proxy", name = "proxy",
version = "1.2.0", version = VERSION,
url = 'http://github.com/cloudera/hue', url = 'http://github.com/cloudera/hue',
author = "HUE", author = "HUE",
description = "Reverse Proxy", description = "Reverse Proxy",
Expand Down
1 change: 1 addition & 0 deletions apps/useradmin/hueversion.py
3 changes: 2 additions & 1 deletion apps/useradmin/setup.py
Expand Up @@ -14,10 +14,11 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
from setuptools import setup, find_packages from setuptools import setup, find_packages
from hueversion import VERSION


setup( setup(
name = "useradmin", name = "useradmin",
version = "1.2.0", version = VERSION,
author = "HUE", author = "HUE",
url = 'http://github.com/cloudera/hue', url = 'http://github.com/cloudera/hue',
description = "HUE User Administration", description = "HUE User Administration",
Expand Down
1 change: 1 addition & 0 deletions desktop/core/hueversion.py
3 changes: 2 additions & 1 deletion desktop/core/setup.py
Expand Up @@ -14,10 +14,11 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
from setuptools import setup, find_packages from setuptools import setup, find_packages
from hueversion import VERSION


setup( setup(
name = "desktop", name = "desktop",
version = "1.2.0", version = VERSION,
url = 'http://github.com/cloudera/hue', url = 'http://github.com/cloudera/hue',
description = "HUE core", description = "HUE core",
packages = find_packages('src'), packages = find_packages('src'),
Expand Down

0 comments on commit fb0e526

Please sign in to comment.