Skip to content

Commit c79180e

Browse files
authored
Update setup config to upload to PiPy (#31)
* Add setup-cfg * Add download URL to setup * clean setup.py * add line at the end * Adding version.py * Add versioning prefix * Include version in package
1 parent 9be415b commit c79180e

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

lambda_cron/__init__.py

+2
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,6 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15+
__version__ = '0.2.0'
16+
1517
__all__ = ["cli", "aws"]

setup.cfg

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[metadata]
2+
description-file = README.md

setup.py

+6-3
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,22 @@
11
#!/usr/bin/env python
22

3+
import lambda_cron
34
try:
45
from setuptools import setup
56
except ImportError:
67
from distutils.core import setup
78

9+
version = lambda_cron.__version__
10+
811
setup(
912
name='lambda-cron',
10-
version='0.2.0',
13+
version=version,
1114
author='MediaMath',
1215
author_email='[email protected]',
1316
description='Serverless cron tool to run on AWS',
1417
keywords='cron lambda aws serverless mediamath',
1518
url='https://github.com/mediaMath/lambda-cron',
19+
download_url='https://github.com/mediamath/lambda-cron/archive/v{0}.tar.gz'.format(version),
1620
packages=[
1721
'lambda_cron', 'lambda_cron.aws', 'lambda_cron.aws.lib', 'lambda_cron.cli', 'lambda_cron.cli.command'
1822
],
@@ -42,6 +46,5 @@
4246
'Natural Language :: English',
4347
'Operating System :: Unix',
4448
'Operating System :: MacOS',
45-
4649
]
47-
)
50+
)

0 commit comments

Comments
 (0)