Skip to content
This repository has been archived by the owner on Jun 3, 2023. It is now read-only.

Commit

Permalink
generate setup.py instead of calling bin/revision from it.
Browse files Browse the repository at this point in the history
  • Loading branch information
benkamphaus committed Feb 26, 2016
2 parents ea79348 + 1d18596 commit 59def19
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 2 deletions.
2 changes: 2 additions & 0 deletions bin/make-release
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/bash
m4 -DREVISION=`bin/revision` setup.py.m4 > setup.py
3 changes: 1 addition & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,9 @@

from setuptools import setup, find_packages
import subprocess
revision = subprocess.check_output("./bin/revision")

setup(name="transit-python",
version="0.8."+revision,
version="0.8.279",
description="Transit marshalling for Python",
author="Cognitect",
url="https://github.com/cognitect/transit-python",
Expand Down
27 changes: 27 additions & 0 deletions setup.py.m4
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#!/usr/bin/env python

## Copyright 2014 Cognitect. All Rights Reserved.
##
## Licensed 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.

from setuptools import setup, find_packages
import subprocess

setup(name="transit-python",
version="0.8.REVISION",
description="Transit marshalling for Python",
author="Cognitect",
url="https://github.com/cognitect/transit-python",
packages=find_packages(),
install_requires=["python-dateutil", "msgpack-python"])

0 comments on commit 59def19

Please sign in to comment.