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

Commit 59def19

Browse files
committed
generate setup.py instead of calling bin/revision from it.
2 parents ea79348 + 1d18596 commit 59def19

File tree

3 files changed

+30
-2
lines changed

3 files changed

+30
-2
lines changed

bin/make-release

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/bin/bash
2+
m4 -DREVISION=`bin/revision` setup.py.m4 > setup.py

setup.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,9 @@
1616

1717
from setuptools import setup, find_packages
1818
import subprocess
19-
revision = subprocess.check_output("./bin/revision")
2019

2120
setup(name="transit-python",
22-
version="0.8."+revision,
21+
version="0.8.279",
2322
description="Transit marshalling for Python",
2423
author="Cognitect",
2524
url="https://github.com/cognitect/transit-python",

setup.py.m4

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
#!/usr/bin/env python
2+
3+
## Copyright 2014 Cognitect. All Rights Reserved.
4+
##
5+
## Licensed under the Apache License, Version 2.0 (the "License");
6+
## you may not use this file except in compliance with the License.
7+
## You may obtain a copy of the License at
8+
##
9+
## http://www.apache.org/licenses/LICENSE-2.0
10+
##
11+
## Unless required by applicable law or agreed to in writing, software
12+
## distributed under the License is distributed on an "AS-IS" BASIS,
13+
## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
## See the License for the specific language governing permissions and
15+
## limitations under the License.
16+
17+
from setuptools import setup, find_packages
18+
import subprocess
19+
20+
setup(name="transit-python",
21+
version="0.8.REVISION",
22+
description="Transit marshalling for Python",
23+
author="Cognitect",
24+
url="https://github.com/cognitect/transit-python",
25+
packages=find_packages(),
26+
install_requires=["python-dateutil", "msgpack-python"])
27+

0 commit comments

Comments
 (0)